2013-08-19 09:11:07 +02:00
|
|
|
# Template build file for 'libmpc'
|
|
|
|
pkgname=libmpc
|
2014-01-19 09:17:11 +01:00
|
|
|
version=1.0.2
|
|
|
|
revision=1
|
2014-05-19 10:20:09 +02:00
|
|
|
bootstrap=yes
|
2013-08-19 09:11:07 +02:00
|
|
|
wrksrc="mpc-${version}"
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2012-01-11 19:27:30 +01:00
|
|
|
configure_args="EGREP=egrep"
|
2012-05-23 18:26:56 +02:00
|
|
|
makedepends="gmp-devel mpfr-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
replaces="mpc-0.9_2"
|
2010-04-15 19:04:48 +02:00
|
|
|
short_desc="C library for the arithmetic of complex numbers"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-02-16 16:51:40 +01:00
|
|
|
homepage="http://www.multiprecision.org"
|
|
|
|
license="LGPL-3"
|
|
|
|
distfiles="http://www.multiprecision.org/mpc/download/mpc-${version}.tar.gz"
|
2014-01-19 09:17:11 +01:00
|
|
|
checksum=b561f54d8a479cee3bc891ee52735f18ff86712ba30f036f8b8537bae380c488
|
2013-04-11 09:52:59 +02:00
|
|
|
|
2014-05-19 10:20:09 +02:00
|
|
|
if [ -z "$CHROOT_READY" ]; then
|
|
|
|
CFLAGS="-I${XBPS_MASTERDIR}/usr/include"
|
|
|
|
LDFLAGS="-L${XBPS_MASTERDIR}/usr/lib"
|
|
|
|
fi
|
|
|
|
|
2013-08-19 09:11:07 +02:00
|
|
|
post_install() {
|
|
|
|
mv ${DESTDIR}/usr/share/info/{mpc,libmpc}.info
|
|
|
|
}
|
|
|
|
|
|
|
|
libmpc-devel_package() {
|
2013-08-19 09:43:56 +02:00
|
|
|
replaces="mpc-devel>=0"
|
2014-01-19 09:17:11 +01:00
|
|
|
depends="gmp-devel mpfr-devel libmpc>=${version}_${revision}"
|
2013-04-11 09:52:59 +02:00
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
2013-08-19 09:11:07 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-11 09:52:59 +02:00
|
|
|
vmove usr/share
|
|
|
|
}
|
|
|
|
}
|