27 lines
655 B
Plaintext
Executable File
27 lines
655 B
Plaintext
Executable File
#!/usr/bin/env modbuild
|
|
|
|
pbuild::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'
|
|
pbuild::add_to_group 'Programming'
|
|
pbuild::set_build_dependencies 'gmp' 'mpfr' 'mpc'
|
|
pbuild::set_docfiles 'COPYING' 'COPYING.LIB' 'COPYING.RUNTIME' 'COPYING3' 'COPYING3.LIB' 'NEWS' 'README'
|
|
pbuild::make_all
|
|
|