New package: Carla-1.9.8

This commit is contained in:
nutcase84 2018-06-17 14:53:51 -04:00 committed by maxice8
parent af57bc5434
commit 61a4bc48cd
4 changed files with 72 additions and 0 deletions

1
srcpkgs/Carla-devel Symbolic link
View File

@ -0,0 +1 @@
Carla

View File

@ -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

View File

@ -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));

48
srcpkgs/Carla/template Normal file
View File

@ -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 <nutcase84@protonmail.com>"
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
}
}