void-packages/srcpkgs/zita-resampler/template

38 lines
1.0 KiB
Bash

# Template file for 'zita-resampler'
pkgname=zita-resampler
version=1.8.0
revision=1
build_wrksrc="source"
build_style=gnu-makefile
make_install_args="LIBDIR=/usr/lib"
hostmakedepends="pkg-config"
short_desc="Library for resampling audio signals"
maintainer="silvernode <mollusk@homebutter.com>"
license="GPL-3.0-or-later"
homepage="http://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html"
distfiles="http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pkgname}-${version}.tar.bz2"
checksum=e5744f23c54dd15b3f783a687bd879eee2a690a4545a15b49c4cf037aa464aa2
CXXFLAGS="-fPIC -ffast-math"
pre_build() {
case "${XBPS_TARGET_MACHINE}" in
x86_64*|i686*) CXXFLAGS+=" -msse2" ;;
*) vsed -i '/DENABLE_SSE2/d' Makefile ;;
esac
}
post_install() {
# add missing symlink
ln -s libzita-resampler.so.${version} ${PKGDESTDIR}/usr/lib/libzita-resampler.so.${version%%.*}
}
zita-resampler-devel_package() {
depends="${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
}
}