wavpack: rebuild with -fPIC.

This commit is contained in:
Juan RP 2011-07-03 18:34:35 +02:00
parent 64ca8869db
commit 1470449855
3 changed files with 22 additions and 6 deletions

View file

@ -5,10 +5,11 @@ long_desc="${long_desc}
This package contains the shared library."
revision=1
Add_dependency run glibc
do_install()
{
mkdir -p ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/*.so* ${DESTDIR}/usr/lib
vmove "usr/lib/*.so*" usr/lib
}

View file

@ -1,6 +1,7 @@
# Template file for 'wavpack'
pkgname=wavpack
version=4.60.1
revision=1
distfiles="http://www.wavpack.com//${pkgname}-${version}.tar.bz2"
build_style=gnu_configure
configure_args="--enable-mmx"
@ -18,3 +19,15 @@ subpackages="libwavpack $pkgname-devel"
Add_dependency run glibc
Add_dependency run libwavpack
Add_dependency build pkg-config
do_build()
{
export CFLAGS="$XBPS_CFLAGS -fPIC"
./configure --prefix=/usr --enable-mmx
make ${makejobs}
}
do_install()
{
make DESTDIR=${DESTDIR} install
}

View file

@ -5,12 +5,14 @@ long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
revision=1
Add_dependency run glib-devel
Add_dependency run libwavpack
do_install()
{
mkdir -p ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/*.*a ${DESTDIR}/usr/lib
vmove usr/include usr
vmove usr/lib/pkgconfig usr/lib
vmove "usr/lib/*.a" usr/lib
}