all build scripts moved to a sub-directory according their name
This commit is contained in:
21
scripts/Programming/Python.build
Executable file
21
scripts/Programming/Python.build
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
function em.post_install() {
|
||||
ln -fs "${PREFIX}/bin/python${V%%.*}" "${PREFIX}/bin/python"
|
||||
ln -fs "${PREFIX}/include/python${V%.*}m" "${PREFIX}/include/python"
|
||||
ln -fs "${PREFIX}/include/python${V%.*}m" "${PREFIX}/include/python${V%.*}"
|
||||
}
|
||||
|
||||
em.add_to_family 'Programming'
|
||||
em.set_runtime_dependencies ""
|
||||
em.set_build_dependencies "${COMPILER}"
|
||||
em.make_all
|
||||
|
||||
27
scripts/Programming/Tcl.build
Executable file
27
scripts/Programming/Tcl.build
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
case ${OS} in
|
||||
Linux )
|
||||
srcdir="${MODULE_SRCDIR}/unix"
|
||||
;;
|
||||
Darwin )
|
||||
srcdir="${MODULE_SRCDIR}/macosx"
|
||||
;;
|
||||
esac
|
||||
"${srcdir}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--enable-shared=no \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
function em.post_install() {
|
||||
{ cd "${PREFIX}"/bin && rm -f tclsh && ln -fs tclsh${V%.*} tclsh; };
|
||||
}
|
||||
|
||||
em.add_to_family 'Programming'
|
||||
em.set_docfiles 'license.terms' 'README'
|
||||
em.set_build_dependencies "${COMPILER}"
|
||||
em.make_all
|
||||
31
scripts/Programming/autoconf.build
Executable file
31
scripts/Programming/autoconf.build
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
# use system gcc to compile
|
||||
declare -rx CC=gcc
|
||||
|
||||
em.add_to_family 'Programming'
|
||||
em.set_docfiles \
|
||||
AUTHORS \
|
||||
COPYING \
|
||||
COPYING.EXCEPTION \
|
||||
COPYINGv3 \
|
||||
NEWS \
|
||||
README \
|
||||
THANKS
|
||||
|
||||
em.set_build_dependencies "m4"
|
||||
em.make_all
|
||||
|
||||
# Local Variables:
|
||||
# mode: sh
|
||||
# sh-basic-offset: 8
|
||||
# tab-width: 8
|
||||
# End:
|
||||
31
scripts/Programming/automake.build
Executable file
31
scripts/Programming/automake.build
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
# use system gcc to compile
|
||||
declare -rx CC=gcc
|
||||
|
||||
em.add_to_family 'Programming'
|
||||
em.set_docfiles \
|
||||
AUTHORS \
|
||||
COPYING \
|
||||
ChangeLog \
|
||||
HACKING \
|
||||
NEWS \
|
||||
README \
|
||||
THANKS
|
||||
em.set_build_dependencies 'm4' 'autoconf'
|
||||
em.make_all
|
||||
|
||||
# Local Variables:
|
||||
# mode: sh
|
||||
# sh-basic-offset: 8
|
||||
# tab-width: 8
|
||||
# End:
|
||||
|
||||
12
scripts/Programming/cmake.build
Executable file
12
scripts/Programming/cmake.build
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
"${MODULE_SRCDIR}/bootstrap" --prefix="${PREFIX}"
|
||||
}
|
||||
|
||||
em.add_to_family 'Programming'
|
||||
em.set_build_dependencies "${COMPILER}"
|
||||
em.make_all
|
||||
|
||||
28
scripts/Programming/gcc.build
Executable file
28
scripts/Programming/gcc.build
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--enable-languages=c,c++,objc,obj-c++,lto,fortran \
|
||||
--with-gmp="${GMP_PREFIX}" \
|
||||
--with-mpfr="${MPFR_PREFIX}" \
|
||||
--with-mpc="${MPC_PREFIX}" \
|
||||
--enable-lto \
|
||||
--disable-multilib \
|
||||
--with-pkgversion="PSI Environment Module" \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
|
||||
# use system gcc to compile
|
||||
declare -rx CC=gcc
|
||||
declare -rx CXX=g++
|
||||
|
||||
module use 'Libraries'
|
||||
em.add_to_family 'Programming'
|
||||
em.set_build_dependencies 'gmp' 'mpfr' 'mpc'
|
||||
em.set_docfiles 'COPYING' 'COPYING.LIB' 'COPYING.RUNTIME' 'COPYING3' 'COPYING3.LIB' 'NEWS' 'README'
|
||||
em.make_all
|
||||
|
||||
9
scripts/Programming/gtest.build
Executable file
9
scripts/Programming/gtest.build
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
em.add_to_family 'Programming'
|
||||
em.set_runtime_dependencies ""
|
||||
em.set_build_dependencies "${COMPILER}"
|
||||
em.make_all
|
||||
|
||||
18
scripts/Programming/libtool.build
Executable file
18
scripts/Programming/libtool.build
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
# use system gcc to compile
|
||||
declare -rx CC=gcc
|
||||
|
||||
em.add_to_family 'Programming'
|
||||
em.set_docfiles 'AUTHORS' 'COPYING' 'NEWS' 'README' 'THANKS'
|
||||
em.set_build_dependencies 'autoconf' 'automake'
|
||||
em.make_all
|
||||
|
||||
25
scripts/Programming/lua.build
Executable file
25
scripts/Programming/lua.build
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Lua cannot be build in a seperate directory!
|
||||
#
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
cd "${MODULE_SRCDIR}"
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
function em.build() {
|
||||
cd "${MODULE_SRCDIR}"
|
||||
|
||||
make -j ${JOBS}
|
||||
}
|
||||
|
||||
em.supported_os ''
|
||||
em.add_to_family 'Programming'
|
||||
em.set_build_dependencies "${COMPILER}"
|
||||
em.make_all
|
||||
em.cleanup_src
|
||||
15
scripts/Programming/m4.build
Executable file
15
scripts/Programming/m4.build
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
# use system gcc to compile
|
||||
declare -rx CC=gcc
|
||||
|
||||
em.add_to_family 'Programming'
|
||||
em.make_all
|
||||
19
scripts/Programming/psi-python27.build
Executable file
19
scripts/Programming/psi-python27.build
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
:
|
||||
}
|
||||
|
||||
function em.build() {
|
||||
:
|
||||
}
|
||||
|
||||
function em.install() {
|
||||
cd "${MODULE_SRCDIR}"
|
||||
rsync --exclude=".info" --delete --verbose --archive . "${PREFIX}"
|
||||
}
|
||||
|
||||
em.add_to_family 'Programming'
|
||||
em.make_all
|
||||
Reference in New Issue
Block a user