2010-12-13 23:56:02 +00:00
|
|
|
# Template file for 'wavpack'
|
|
|
|
pkgname=wavpack
|
2013-10-26 08:41:57 +00:00
|
|
|
version=4.70.0
|
2014-07-06 17:37:03 +00:00
|
|
|
revision=3
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2010-12-13 23:56:02 +00:00
|
|
|
short_desc="An audio codec (lossy and lossless)"
|
2013-03-31 07:52:13 +00:00
|
|
|
homepage="http://www.wavpack.com/"
|
|
|
|
license="BSD"
|
2010-12-13 23:56:02 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2014-11-26 11:50:48 +00:00
|
|
|
update_site="${homepage}downloads.html"
|
2013-10-26 08:41:57 +00:00
|
|
|
distfiles="http://www.wavpack.com/${pkgname}-${version}.tar.bz2"
|
|
|
|
checksum=2cade379b0aba99fbc4e442ccc6dac6c609f6212e46516a083e24c8c364430a4
|
2010-12-13 23:56:02 +00:00
|
|
|
|
2013-05-26 14:31:49 +00:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
|
|
configure_args="--enable-mmx"
|
|
|
|
fi
|
|
|
|
|
2014-07-06 17:37:03 +00:00
|
|
|
pre_configure() {
|
|
|
|
sed -i 's/^prefix=.*/&\nexec_&/' wavpack.pc.in
|
|
|
|
}
|
|
|
|
|
2013-04-14 15:36:49 +00:00
|
|
|
libwavpack_package() {
|
2013-05-26 14:31:49 +00:00
|
|
|
short_desc+=" - shared library"
|
2013-04-14 15:36:49 +00:00
|
|
|
pkg_install() {
|
2013-10-26 08:41:57 +00:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-14 15:36:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
wavpack-devel_package() {
|
2014-02-16 09:52:25 +00:00
|
|
|
depends="libwavpack>=${version}_${revision}"
|
2013-05-26 14:31:49 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-14 15:36:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.a"
|
2013-10-26 08:41:57 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-14 15:36:49 +00:00
|
|
|
}
|
|
|
|
}
|