all build scripts moved to a sub-directory according their name

This commit is contained in:
2015-01-20 16:18:09 +01:00
parent 1aa5fef253
commit d9be0b6af2
50 changed files with 0 additions and 0 deletions

37
scripts/Tools/Modules.build Executable file
View File

@@ -0,0 +1,37 @@
#!/bin/bash
source "$(dirname $0)/../lib/libem.bash"
TCL_VERSION='8.6.3'
TCL_DIR="${PSI_PREFIX}/Programming/Tcl/${TCL_VERSION}"
PATH="${TCL_DIR}/bin:${PATH}"
case ${OS} in
Linux )
declare -x LIBS="-lz -lpthread"
;;
Darwin )
declare -x LIBS="-lz -framework CoreFoundation"
;;
esac
function em.configure() {
CPPFLAGS="-DUSE_INTERP_ERRORLINE" "${MODULE_SRCDIR}"/configure \
--prefix="${PSI_PREFIX}/${MODULE_FAMILY}" \
--with-module-path="${PSI_PREFIX}/${PSI_MODULES_ROOT}" \
--with-tcl="${TCL_DIR}/lib" \
--without-x \
|| exit 1
}
# fake module command
module() {
:
}
# use system gcc to compile
declare -rx CC=gcc
em.add_to_family 'Tools'
em.set_build_dependencies "Tcl/${TCL_VERSION}"
em.make_all

13
scripts/Tools/dialog.build Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
source "$(dirname $0)/../lib/libem.bash"
function em.configure() {
"${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \
|| exit 1
}
em.add_to_family 'Tools'
em.set_build_dependencies "${COMPILER}"
em.make_all

66
scripts/Tools/emacs.build Executable file
View File

@@ -0,0 +1,66 @@
#!/bin/bash
source "$(dirname $0)/../lib/libem.bash"
module use 'Libraries'
build_dependencies="${COMPILER} libungif tiff"
case ${OS} in
Darwin )
configure_args='--with-ns'
build_dependencies="libungif tiff"
CC=''
CXX=''
COMPILER=''
COMPILER_VERSION=''
function em.post_install() {
mkdir -p "${PREFIX}"
cp -rv "${MODULE_BUILDDIR}"/nextstep/Emacs.app "${PREFIX}"
}
;;
*)
;;
esac
function em.configure() {
"${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \
${configure_args} \
|| exit 1
}
function em.post_install() {
mkdir "${PREFIX}/bin"
cat > "${PREFIX}/bin/Emacs" <<\EOF
#!/bin/bash
declare -r OS=$(uname -s)
if [[ "${OS}" == "Darwin" ]]; then
open "${EMACS_DIR}/Emacs.app" --args "$@"
else
"${EMACS_DIR}/bin/emacs" "$@"
fi
EOF
cat > "${PREFIX}/bin/Emacsclient" <<\EOF
#!/bin/bash
declare -r OS=$(uname -s)
if [[ "${OS}" == "Darwin" ]]; then
"${EMACS_DIR}/Emacs.app/Contents/MacOS/bin/emacsclient" -c "$@"
else
"${EMACS_DIR}/bin/emacsclient" -c "$@" &
fi
EOF
chmod 0755 "${PREFIX}/bin/Emacs"
chmod 0755 "${PREFIX}/bin/Emacsclient"
}
em.add_to_family 'Tools'
em.set_build_dependencies ${build_dependencies}
em.make_all

22
scripts/Tools/global.build Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
source "$(dirname $0)/../lib/libem.bash"
function em.configure() {
"${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \
--with-pic=yes \
--with-included-ltdl \
|| exit 1
}
em.add_to_family 'Tools'
em.set_docfiles 'AUTHORS' 'COPYING' 'COPYING.LIB' 'LICENSE' 'README' 'THANKS'
em.set_build_dependencies "gcc/4.8.3"
em.make_all
# Local Variables:
# mode: sh
# sh-basic-offset: 8
# tab-width: 8
# End:

22
scripts/Tools/gnuplot.build Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
source "$(dirname $0)/../lib/libem.bash"
function em.configure() {
"${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \
--with-gif=no \
--with-tiff=no \
|| exit 1
}
em.add_to_family 'Tools'
em.set_docfiles 'Copyright' 'ChangeLog' 'NEWS' 'README' 'README.1ST'
em.set_build_dependencies "${COMPILER}"
em.make_all
# Local Variables:
# mode: sh
# sh-basic-offset: 8
# tab-width: 8
# End: