f6fcc31847
Bump revision to trigger rebuild for platform that were cross-compiled.
55 lines
1.4 KiB
Bash
55 lines
1.4 KiB
Bash
# Template file for 'Carla'
|
|
pkgname=Carla
|
|
version=2.0.0
|
|
revision=3
|
|
archs="x86_64* i686* aarch64* arm*"
|
|
build_style=gnu-makefile
|
|
pycompile_dirs="usr/share/carla"
|
|
hostmakedepends="pkg-config python3-PyQt5-devel-tools which"
|
|
makedepends="python3-PyQt5 libmagic file-devel
|
|
liblo-devel alsa-lib-devel pulseaudio-devel libX11-devel gtk+3-devel
|
|
gtk+-devel qt5-devel fluidsynth-devel fftw-devel zlib-devel
|
|
python3-rdflib"
|
|
depends="python3 python3-PyQt5 python3-PyQt5-svg which"
|
|
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/v${version}.tar.gz"
|
|
checksum=d0c8d8417f8cce9abe807f6359231f187d60db7121ec1dccce3b596a22ef6c41
|
|
pycompile_version=$py3_ver
|
|
|
|
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() {
|
|
sed -e '1,1i#include <unistd.h>' \
|
|
-i source/modules/water/text/CharacterFunctions.h
|
|
|
|
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() {
|
|
vbin bin/carla-lv2-export
|
|
}
|
|
|
|
Carla-devel_package() {
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/bin/carla-lv2-export
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/include
|
|
}
|
|
}
|