2016-10-11 09:08:45 +02:00
|
|
|
# Template file for 'libsoxr'
|
|
|
|
pkgname=libsoxr
|
|
|
|
version=0.1.2
|
2016-10-11 09:49:55 +02:00
|
|
|
revision=2
|
2016-10-11 09:08:45 +02:00
|
|
|
wrksrc="${pkgname#lib}-${version}-Source"
|
|
|
|
build_style=cmake
|
2016-10-11 09:49:55 +02:00
|
|
|
configure_args="-Wno-dev -DBUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=ON
|
|
|
|
-DVISIBILITY_HIDDEN=ON -DWITH_AVFFT=ON -DWITH_DOUBLE_PRECISION=ON
|
|
|
|
-DWITH_LSR_BINDINGS=ON -DWITH_OPENMP=ON -DWITH_PFFFT=ON"
|
2016-10-11 09:08:45 +02:00
|
|
|
makedepends="libgomp-devel"
|
|
|
|
short_desc="SoX resampler library"
|
2016-10-11 09:49:55 +02:00
|
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
2016-10-11 09:08:45 +02:00
|
|
|
license="GPL-2"
|
|
|
|
homepage="http://sourceforge.net/p/soxr/wiki/Home/"
|
2017-07-11 15:13:02 +02:00
|
|
|
distfiles="${SOURCEFORGE_SITE}/soxr/soxr-${version}-Source.tar.xz"
|
2016-10-11 09:08:45 +02:00
|
|
|
checksum=54e6f434f1c491388cd92f0e3c47f1ade082cc24327bdc43762f7d1eefe0c275
|
2016-10-11 09:49:55 +02:00
|
|
|
|
|
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
|
|
configure_args+=" -DBUILD_TESTS=OFF -DHAVE_WORDS_BIGENDIAN_EXITCODE=0"
|
|
|
|
fi
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
i686*|x86_64*) configure_args+=" -DWITH_SIMD=ON" ;;
|
|
|
|
*) configure_args+=" -DWITH_SIMD=OFF" ;;
|
|
|
|
esac
|
2016-10-11 09:08:45 +02:00
|
|
|
|
|
|
|
libsoxr-devel_package() {
|
2017-07-11 15:13:02 +02:00
|
|
|
short_desc+=" - development files"
|
2016-10-11 09:08:45 +02:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/*.so
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libsoxr-doc_package() {
|
2017-07-11 15:13:02 +02:00
|
|
|
short_desc+=" - documentation and examples"
|
2016-10-11 09:08:45 +02:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
|
|
noarch=yes
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/share/doc
|
|
|
|
}
|
|
|
|
}
|