void-packages/srcpkgs/cdparanoia/template

60 lines
1.7 KiB
Bash

# Template file for 'cdparanoia'.
pkgname=cdparanoia
version=10.2
revision=13
wrksrc="${pkgname}-III-${version}"
hostmakedepends="libtool automake"
build_style=gnu-configure
short_desc="CDDA reading utility with extra data verification features"
homepage="https://www.xiph.org/paranoia/"
license="GPL-2"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="http://downloads.xiph.org/releases/$pkgname/$pkgname-III-$version.src.tgz"
checksum=005db45ef4ee017f5c32ec124f913a0546e77014266c6a1c50df902a55fe64df
CFLAGS="-Du_int16_t=uint16_t -Du_int32_t=uint32_t"
disable_parallel_build=yes
if [ -n "$CROSS_BUILD" ]; then
configure_args+=" ac_cv_have_stdint_h=yes"
configure_args+=" ac_cv_type_short=yes ac_cv_sizeof_short=2"
configure_args+=" ac_cv_type_int=yes ac_cv_sizeof_int=4"
configure_args+=" ac_cv_type_long=yes"
configure_args+=" ac_cv_type_long_long=yes ac_cv_sizeof_long_long=8"
configure_args+=" ac_cv_type_int16_t=yes ac_cv_sizeof_int16_t=2"
configure_args+=" ac_cv_type_int32_t=yes ac_cv_sizeof_int32_t=4"
case "$XBPS_TARGET_MACHINE" in
arm*|mips*|i686*) # 32 bit architectures
configure_args+=" ac_cv_sizeof_long=4"
;;
*)
configure_args+=" ac_cv_sizeof_long=8"
;;
esac
fi
pre_configure() {
autoreconf -i
}
do_install() {
make prefix=${DESTDIR}/usr BINDIR=${DESTDIR}/usr/bin MANDIR=${DESTDIR}/usr/share/man LIBDIR=${DESTDIR}/usr/lib install
}
libcdparanoia_package() {
replaces="${sourcepkg}<10.2_10"
short_desc+=" - runtime library"
pkg_install() {
vmove usr/lib/*.so.*
}
}
libcdparanoia-devel_package() {
replaces="${sourcepkg}-devel<10.2_10"
depends="lib${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}