build-scripts reviewed

This commit is contained in:
Achim Gsell
2018-10-11 23:08:23 +02:00
parent 94ab320acc
commit b74fd7bce4
45 changed files with 138 additions and 229 deletions
+6 -10
View File
@@ -1,14 +1,6 @@
#!/usr/bin/env modbuild
SOURCE_URL="http://www.mpfr.org/$P-$V/$P-$V.tar.gz"
pbuild::configure() {
"${SRC_DIR}"/configure \
--prefix="${PREFIX}" \
--with-gmp=$GMP_PREFIX \
--disable-shared \
|| exit 1
}
pbuild::set_download_url "http://www.mpfr.org/$P-$V/$P-$V.tar.gz"
# use system gcc to compile
declare -rx CC=gcc
@@ -16,4 +8,8 @@ declare -rx CC=gcc
module use 'Libraries'
pbuild::add_to_group 'Libraries'
pbuild::make_all
pbuild::pre_configure() {
pbuild::add_configure_args "--with-gmp=${GMP_PREFIX}"
pbuild::add_configure_args "--disable-shared"
}