40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template file for 'pd'
|
|
pkgname=pd
|
|
version=0.50.0
|
|
revision=2
|
|
_ver=${version%.*}-${version##*.}
|
|
wrksrc="$pkgname-$_ver"
|
|
build_style=gnu-configure
|
|
configure_args="--enable-alsa --enable-jack --disable-portaudio --enable-fftw"
|
|
hostmakedepends="automake libtool pkg-config"
|
|
makedepends="alsa-lib-devel jack-devel tk-devel fftw-devel"
|
|
depends="tk"
|
|
short_desc="The Pure Data real-time music and multimedia environment"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://puredata.info"
|
|
distfiles="http://msp.ucsd.edu/Software/pd-$_ver.src.tar.gz"
|
|
checksum=faeacdc24054cc6ce6be801ff5dd3eb7890352295d56c03406c5b85256b1e441
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) # Causes pd to fail if qsort is used without thread local storage.
|
|
CFLAGS="-DMICROSOFT_STUPID_SORT" ;;
|
|
esac
|
|
|
|
pre_configure() {
|
|
./autogen.sh
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE.txt
|
|
# fix a broken symlink
|
|
ln -sf /usr/bin/pd "${DESTDIR}/usr/lib/pd/bin/pd"
|
|
}
|
|
|
|
pd-devel_package() {
|
|
depends="pd>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|