52 lines
1.5 KiB
Bash
52 lines
1.5 KiB
Bash
# Template file for 'zynaddsubfx'
|
|
pkgname=zynaddsubfx
|
|
version=2.5.3
|
|
revision=1
|
|
build_style=cmake
|
|
nocross=yes
|
|
configure_args="-DDefaultOutput=jack -DDefaultInput=jack -DGuiModule=fltk"
|
|
hostmakedepends="cmake doxygen fltk pkg-config"
|
|
makedepends="fltk-devel fftw-devel liblo-devel libXpm-devel mxml-devel
|
|
jack-devel portaudio-devel"
|
|
depends="zynaddsubfx-data>=0"
|
|
short_desc="Open Source software synthesizer"
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
license="GPL-2"
|
|
homepage="http://zynaddsubfx.sourceforge.net/"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}.tar.bz2"
|
|
checksum=ebed173107cb5419806c8ab8628fc38146bde45aead46d2a2feedc142e29aa11
|
|
|
|
pre_configure() {
|
|
case "${XBPS_TARGET_MACHINE}" in
|
|
armv[67]*)
|
|
# Disable sse, sse2 and fpmath=sse
|
|
sed -i src/CMakeLists.txt \
|
|
-e "s; -msse -msse2 -mfpmath=sse;;"
|
|
sed -i src/globals.h \
|
|
-e "/#ifdef ASM_F2I_YES/i #undef ASM_F2I_YES"
|
|
;;
|
|
esac
|
|
}
|
|
post_build() {
|
|
local ext
|
|
for ext in Spliter Controller; do
|
|
cd ${wrksrc}/ExternalPrograms/${ext}
|
|
# Replace gcc with the target C compiler
|
|
sed -i Makefile -e "s;gcc;${CC};g"
|
|
# Build external program
|
|
make ${makejobs}
|
|
done
|
|
}
|
|
post_install() {
|
|
# Install external programs
|
|
vbin ${wrksrc}/ExternalPrograms/Spliter/spliter
|
|
vdoc ${wrksrc}/ExternalPrograms/Spliter/readme.txt SPLITER.txt
|
|
vbin ${wrksrc}/ExternalPrograms/Controller/controller
|
|
}
|
|
zynaddsubfx-data_package() {
|
|
short_desc+=" - data"
|
|
noarch=yes
|
|
pkg_install() {
|
|
vmove usr/share/${sourcepkg}
|
|
}
|
|
}
|