21 lines
397 B
Plaintext
Executable File
21 lines
397 B
Plaintext
Executable File
#!/usr/bin/env modbuild
|
|
|
|
SOURCE_URL="ftp://ftp.gnu.org/gnu/$P/$P-$V_MAJOR.$V_MINOR.$V_PATCHLVL.tar.gz"
|
|
|
|
pbuild::configure() {
|
|
"${MODULE_SRCDIR}"/configure \
|
|
--prefix="${PREFIX}" \
|
|
--with-gmp=$GMP_PREFIX \
|
|
--with-mpfr=$MPFR_PREFIX \
|
|
--disable-shared \
|
|
|| exit 1
|
|
}
|
|
|
|
# use system gcc to compile
|
|
declare -rx CC=gcc
|
|
|
|
module use 'Libraries'
|
|
pbuild::add_to_group 'Libraries'
|
|
pbuild::make_all
|
|
|