diff --git a/srcpkgs/Carla-devel b/srcpkgs/Carla-devel new file mode 120000 index 00000000000..817012ce210 --- /dev/null +++ b/srcpkgs/Carla-devel @@ -0,0 +1 @@ +Carla \ No newline at end of file diff --git a/srcpkgs/Carla/patches/aarch64.patch b/srcpkgs/Carla/patches/aarch64.patch new file mode 100644 index 00000000000..480b454c842 --- /dev/null +++ b/srcpkgs/Carla/patches/aarch64.patch @@ -0,0 +1,11 @@ +--- source/modules/water/memory/ByteOrder.h 2018-01-22 21:05:35.000000000 +0000 ++++ - 2018-06-18 09:58:25.563913205 +0000 +@@ -153,7 +153,7 @@ + { + #ifdef CARLA_OS_MAC + return OSSwapInt32 (n); +- #elif defined(CARLA_OS_WIN) || ! (defined (__arm__) || defined (__arm64__)) ++ #elif defined(CARLA_OS_WIN) || ! (defined (__arm__) || ! defined (__arm64__)) + asm("bswap %%eax" : "=a"(n) : "a"(n)); + return n; + #else diff --git a/srcpkgs/Carla/patches/musl.patch b/srcpkgs/Carla/patches/musl.patch new file mode 100644 index 00000000000..5166cb20da7 --- /dev/null +++ b/srcpkgs/Carla/patches/musl.patch @@ -0,0 +1,12 @@ +--- source/modules/hylia/link/asio/impl/error_code.ipp 2018-01-22 21:05:35.000000000 +0000 ++++ - 2018-06-18 09:13:32.145486974 +0000 +@@ -101,7 +101,7 @@ + #elif defined(__MACH__) && defined(__APPLE__) \ + || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) \ + || defined(_AIX) || defined(__hpux) || defined(__osf__) \ +- || defined(__ANDROID__) ++ || defined(__ANDROID__) || !defined(__GLIBC__) + char buf[256] = ""; + using namespace std; + strerror_r(value, buf, sizeof(buf)); + diff --git a/srcpkgs/Carla/template b/srcpkgs/Carla/template new file mode 100644 index 00000000000..a9be2390fdf --- /dev/null +++ b/srcpkgs/Carla/template @@ -0,0 +1,48 @@ +# Template file for 'Carla' +pkgname=Carla +version=1.9.8 +revision=1 +build_style=gnu-makefile +hostmakedepends="pkg-config" +makedepends=" + python3-PyQt5-devel-tools python3-PyQt5 libmagic file-devel liblo-devel + alsa-lib-devel pulseaudio-devel libX11-devel gtk+3-devel gtk+-devel qt5-devel + qt-devel fluidsynth-devel fftw-devel mxml-devel zlib-devel python3-rdflib" +depends="python3 python3-PyQt5 python3-PyQt5-svg" +short_desc="Audio plugin host" +maintainer="nutcase84 " +license="GPL-2.0-or-later" +homepage="http://kxstudio.linuxaudio.org/Applications:Carla" +distfiles="https://github.com/falkTX/Carla/archive/${version}.tar.gz" +checksum=966647c508bf92eafb03d0aaf687acb399c687782461154fad40d64745786e67 + +case $XBPS_TARGET_MACHINE in + x86_64* | i686*);; + *) make_build_args+=" NOOPT=true" + make_install_args+=" NOOPT=true";; +esac + +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" Carla-devel" +fi + +pre_build() { + if [ "$CROSS_BUILD" ]; then + sed -i -e 's#\./carla-lv2-export#/usr/bin/carla-lv2-export#g' \ + source/plugin/Makefile + fi + + make ${make_build_args} features +} + +post_install() { + mv ${DESTDIR}/usr/lib/python3{,.5} + vbin bin/carla-lv2-export +} + +Carla-devel_package() { + short_desc+=" - development files" + pkg_install() { + vmove usr/bin/carla-lv2-export + } +}