New package: zynaddsubfx-2.5.1

+ Add dependency mxml-2.9 (Minimal XML library)
This commit is contained in:
Jürgen Buchmüller 2015-10-03 16:26:04 +02:00
parent d688388c45
commit b80fda9067
7 changed files with 117 additions and 0 deletions

View file

@ -2220,3 +2220,4 @@ libkeximain.so.14 calligra-kexi-2.9.7_1
libcalligrastageprivate.so.14 calligra-stage-2.9.7_1
libfts.so.0 musl-fts-1.2_2
libgavl.so.1 gavl-1.40_1
libmxml.so.1 mxml-2.9_1

1
srcpkgs/mxml-devel Symbolic link
View file

@ -0,0 +1 @@
mxml

37
srcpkgs/mxml/template Normal file
View file

@ -0,0 +1,37 @@
# Template file for 'mxml'
pkgname=mxml
version=2.9
revision=1
build_style=gnu-configure
configure_args="--enable-static --enable-shared"
short_desc="Minimal XML library"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2"
homepage="http://www.minixml.org/"
distfiles="http://www.msweet.org/files/project3/${pkgname}-${version}.tar.gz"
checksum=cded54653c584b24c4a78a7fa1b3b4377d49ac4f451ddf170ebbc8161d85ff92
pre_configure() {
# Disable testxml (fixes cross builds)
sed -i Makefile.in \
-e "s;testmxml mxml.xml;mxml.xml;"
if [ "$CROSS_BUILD" ]; then
# Disable generating mxml.xml
sed -i Makefile.in \
-e "/.*\.\/mxmldoc-static.*/d"
fi
}
do_install() {
make DSTROOT="${DESTDIR}" install
}
mxml-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.a
vmove usr/lib/*.so
}
}

1
srcpkgs/zynaddsubfx-data Symbolic link
View file

@ -0,0 +1 @@
zynaddsubfx

View file

@ -0,0 +1,11 @@
--- src/globals.h 2015-06-28 00:25:59.000000000 +0200
+++ src/globals.h 2015-10-03 15:34:18.914712672 +0200
@@ -25,6 +25,8 @@
#ifndef GLOBALS_H
#define GLOBALS_H
+#include <string.h> /* memset(3) */
+
#if defined(__clang__)
#define REALTIME __attribute__((annotate("realtime")))
#define NONREALTIME __attribute__((annotate("nonrealtime")))

View file

@ -0,0 +1,15 @@
--- src/DSP/FFTwrapper.h 2015-06-28 00:25:59.000000000 +0200
+++ src/DSP/FFTwrapper.h 2015-10-03 16:51:40.456350543 +0200
@@ -58,10 +58,10 @@
FFTpolar(const _Tp& __rho, const _Tp& __theta = _Tp(0))
{
_Tp __x = __rho * cos(__theta);
- if (isnan(__x))
+ if (std::isnan(__x))
__x = 0;
_Tp __y = __rho * sin(__theta);
- if (isnan(__y))
+ if (std::isnan(__y))
__y = 0;
return std::complex<_Tp>(__x, __y);
}

View file

@ -0,0 +1,51 @@
# Template file for 'zynaddsubfx'
pkgname=zynaddsubfx
version=2.5.1
revision=1
build_style=cmake
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.gz"
checksum=e2e3b92cfc4c2add5e7af6afc81dc74e31509459034b0680372dabbf68d98405
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}
}
}