gmp, mpfr: converted to subpkgs.

--HG--
extra : convert_revision : 8ce5b84c7d3adf91880e38466ba360bd028a464b
This commit is contained in:
Juan RP 2009-02-20 06:26:27 +01:00
parent 04a0248ef1
commit c8163148da
6 changed files with 72 additions and 2 deletions

View File

@ -0,0 +1,17 @@
# Template file for 'gmp-dev'.
#
short_desc="${short_desc} (development files)"
long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
run_depends="gmp-libs-4.2.4"
do_install()
{
local destdir=${XBPS_DESTDIR}/${pkgname}-${version}
mkdir -p ${destdir}/usr/lib
mv ${XBPS_DESTDIR}/${sourcepkg}-${version}/usr/include ${destdir}/usr
mv ${XBPS_DESTDIR}/${sourcepkg}-${version}/usr/lib/libgmp.*a \
${destdir}/usr/lib
}

View File

@ -0,0 +1,17 @@
# Template file for 'gmp-libs'.
#
short_desc="${short_desc} (libraries)"
long_desc="${long_desc}
This package contains only the ${sourcepkg} shared libraries."
run_depends="glibc-2.8"
do_install()
{
local destdir=${XBPS_DESTDIR}/${pkgname}-${version}
# Move the shared lib.
mkdir -p ${destdir}/usr/lib
mv ${XBPS_DESTDIR}/${sourcepkg}-${version}/usr/lib/libgmp.so* \
${destdir}/usr/lib
}

View File

@ -1,5 +1,6 @@
# Template build file for 'gmp'
pkgname=gmp
sourcepkg=gmp
version=4.2.4
distfiles="ftp://ftp.gmplib.org/pub/$pkgname-$version.tar.bz2"
build_style=gnu_configure
@ -23,7 +24,7 @@ long_desc="
operations, since GNU MP in many cases has asymptotically faster algorithms."
base_chroot=yes
run_depends="glibc-2.8"
subpackages="dev libs"
pre_configure()
{

View File

@ -0,0 +1,17 @@
# Template file for 'mpfr-dev'.
#
short_desc="${short_desc} (development files)"
long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
run_depends="mpfr-libs-4.2.4"
do_install()
{
local destdir=${XBPS_DESTDIR}/${pkgname}-${version}
mkdir -p ${destdir}/usr/lib
mv ${XBPS_DESTDIR}/${sourcepkg}-${version}/usr/include ${destdir}/usr
mv ${XBPS_DESTDIR}/${sourcepkg}-${version}/usr/lib/libmpfr.*a \
${destdir}/usr/lib
}

View File

@ -0,0 +1,17 @@
# Template file for 'mpfr-libs'.
#
short_desc="${short_desc} (libraries)"
long_desc="${long_desc}
This package contains only the ${sourcepkg} shared libraries."
run_depends="glibc-2.8 gmp-libs-4.2.4"
do_install()
{
local destdir=${XBPS_DESTDIR}/${pkgname}-${version}
# Move the shared lib.
mkdir -p ${destdir}/usr/lib
mv ${XBPS_DESTDIR}/${sourcepkg}-${version}/usr/lib/libmpfr.so* \
${destdir}/usr/lib
}

View File

@ -1,5 +1,6 @@
# Template build file for 'mpfr'
pkgname=mpfr
sourcepkg=mpfr
version=2.4.0
distfiles="http://www.mpfr.org/mpfr-current/$pkgname-$version.tar.bz2"
build_style=gnu_configure
@ -17,4 +18,4 @@ long_desc="
base_chroot=yes
build_depends="gmp-4.2.4"
run_depends="glibc-2.8 gmp-4.2.4"
subpackages="dev libs"