Imported from LFS (http://www.linuxfromscratch.org/lfs/view/development/chapter06/mpfr.html) For the source see: http://www.mpfr.org/mpfr-current/allpatches Incorporate patch p11 as well
30 lines
807 B
Bash
30 lines
807 B
Bash
# Template build file for 'mpfr'
|
|
pkgname=mpfr
|
|
version=3.1.2
|
|
revision=4
|
|
bootstrap=yes
|
|
build_style=gnu-configure
|
|
configure_args="--enable-thread-safe"
|
|
makedepends="gmp-devel"
|
|
short_desc="Library for multiple-precision floating-point computations"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="LGPL-3"
|
|
homepage="http://www.mpfr.org"
|
|
distfiles="${homepage}/mpfr-current/$pkgname-$version.tar.bz2"
|
|
checksum=79c73f60af010a30a5c27a955a1d2d01ba095b72537dab0ecaad57f5a7bb1b6b
|
|
|
|
if [ -z "$CHROOT_READY" ]; then
|
|
CFLAGS="-I${XBPS_MASTERDIR}/usr/include"
|
|
LDFLAGS="-L${XBPS_MASTERDIR}/usr/lib"
|
|
fi
|
|
|
|
mpfr-devel_package() {
|
|
depends="gmp-devel mpfr>=${version}_${revision}"
|
|
short_desc+=" -- development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/share
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|