void-packages/srcpkgs/Carla/template

57 lines
1.5 KiB
Bash
Raw Normal View History

2018-06-17 20:53:51 +02:00
# Template file for 'Carla'
pkgname=Carla
2019-01-15 20:59:08 +01:00
version=1.9.13
revision=1
2018-06-17 20:53:51 +02:00
build_style=gnu-makefile
2018-12-21 23:25:13 +01:00
make_build_args="DEFAULT_QT=5"
make_install_args="DEFAULT_QT=5"
pycompile_module="carla_utils.py carla_backend.py"
pycompile_dirs="usr/share/carla"
hostmakedepends="pkg-config python3"
2018-12-21 23:25:13 +01:00
makedepends="python3-PyQt5-devel-tools python3-PyQt5 libmagic file-devel
liblo-devel alsa-lib-devel pulseaudio-devel libX11-devel gtk+3-devel
2019-01-15 20:59:08 +01:00
gtk+-devel qt5-devel fluidsynth-devel fftw-devel zlib-devel
2018-12-21 23:25:13 +01:00
python3-rdflib"
2018-06-17 20:53:51 +02:00
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"
2019-01-15 20:59:08 +01:00
distfiles="https://github.com/falkTX/Carla/archive/v${version}.tar.gz"
checksum=cc6639dd23b22279f8ab1ae9b51e71d5480b86112c475110daa68cf68fb8cf63
2018-06-17 20:53:51 +02:00
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() {
2019-01-15 20:59:08 +01:00
sed -e '1,1i#include <unistd.h>' \
-i source/modules/water/text/CharacterFunctions.h
2018-06-17 20:53:51 +02:00
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
2018-06-17 20:53:51 +02:00
}
}