void-packages/srcpkgs/libsoxr/template
Enno Boland f40cd77686 srcpkgs: remove pullmoll from maintainers field. 😢
Set them to Orphaned for now.

If you'd like to pick up a package, feel free.
2021-04-10 16:34:44 +02:00

42 lines
1.2 KiB
Bash

# Template file for 'libsoxr'
pkgname=libsoxr
version=0.1.3
revision=2
wrksrc="${pkgname#lib}-${version}-Source"
build_style=cmake
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"
makedepends="libgomp-devel"
short_desc="SoX resampler library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="http://sourceforge.net/p/soxr/wiki/Home/"
distfiles="${SOURCEFORGE_SITE}/soxr/soxr-${version}-Source.tar.xz"
checksum=b111c15fdc8c029989330ff559184198c161100a59312f5dc19ddeb9b5a15889
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
libsoxr-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}
libsoxr-doc_package() {
short_desc+=" - documentation and examples"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/share/doc
}
}