void-packages/srcpkgs/portaudio/template

57 lines
1.5 KiB
Bash

# Template file for 'portaudio'
pkgname=portaudio
version=19.20140130
revision=10
wrksrc=portaudio
build_style=gnu-configure
configure_args="--enable-cxx --with-jack"
hostmakedepends="automake libtool pkg-config"
makedepends="alsa-lib-devel jack-devel"
homepage="http://www.portaudio.com"
license="PA, GPL"
short_desc="Portable cross-platform audio I/O library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="http://www.${pkgname}.com/archives/pa_stable_v${version%.*}_${version#*.}.tgz"
checksum=8fe024a5f0681e112c6979808f684c3516061cc51d3acc0b726af98fc96c8d57
disable_parallel_build=yes
pre_configure() {
# depcomp is required when building the bindings/cpp extension
# but will be removed by autoreconf + libtool >= 2.4.6
# Protect it from removal
mv depcomp{,~}
autoreconf -fi
# Restore depcomp
mv depcomp{~,}
}
portaudio-devel_package() {
depends="portaudio>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove "usr/include/*.h"
vmove usr/lib/libportaudio.a
vmove usr/lib/libportaudio.so
vmove usr/lib/pkgconfig/portaudio-2.0.pc
}
}
portaudio-cpp_package() {
short_desc+=" - C++ Bindings"
pkg_install() {
vmove "usr/lib/libportaudiocpp.so.*"
}
}
portaudio-cpp-devel_package() {
depends="portaudio-cpp>=${version}_${revision} portaudio-devel>=${version}_${revision}"
short_desc+=" - C++ bindings development files"
pkg_install() {
vmove usr/include/portaudiocpp
vmove usr/lib/pkgconfig/portaudiocpp.pc
vmove usr/lib/libportaudiocpp.a
vmove usr/lib/libportaudiocpp.so
}
}