mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 14:43:52 +02:00
Carla: update to 2.5.8.
This commit is contained in:
parent
ed77afa4a2
commit
207242e077
2 changed files with 93 additions and 7 deletions
1
srcpkgs/Carla-bridge-win
Symbolic link
1
srcpkgs/Carla-bridge-win
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
Carla
|
99
srcpkgs/Carla/template
Normal file → Executable file
99
srcpkgs/Carla/template
Normal file → Executable file
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'Carla'
|
# Template file for 'Carla'
|
||||||
pkgname=Carla
|
pkgname=Carla
|
||||||
version=2.5.1
|
version=2.5.8
|
||||||
revision=4
|
revision=1
|
||||||
archs="x86_64* i686* aarch64* arm*"
|
archs="x86_64* i686* aarch64* arm*"
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
pycompile_dirs="usr/share/carla"
|
pycompile_dirs="usr/share/carla"
|
||||||
|
@ -16,19 +16,59 @@ maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="GPL-2.0-or-later"
|
license="GPL-2.0-or-later"
|
||||||
homepage="https://kx.studio/Applications:Carla"
|
homepage="https://kx.studio/Applications:Carla"
|
||||||
distfiles="https://github.com/falkTX/Carla/archive/v${version}.tar.gz"
|
distfiles="https://github.com/falkTX/Carla/archive/v${version}.tar.gz"
|
||||||
checksum=c47eea999b2880bde035fbc30d7b42b49234a81327127048a56967ec884dfdba
|
checksum=4ec96d06342ff28da4b80d4a76bc08fcaa5703726f96e5174afcdc4f7fc6195d
|
||||||
python_version=3
|
python_version=3
|
||||||
|
|
||||||
|
build_options="win linux32"
|
||||||
|
desc_option_win="Enable building windows bridge"
|
||||||
|
desc_option_linux32="Enable building linux32 bridge"
|
||||||
|
|
||||||
|
subpackages="Carla-devel"
|
||||||
|
|
||||||
|
if [ -z "$CROSS_BUILD" ]; then
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
x86_64)
|
||||||
|
build_options_default=" win linux32"
|
||||||
|
subpackages+=" Carla-bridge-win"
|
||||||
|
;;
|
||||||
|
i686)
|
||||||
|
build_options_default=" win"
|
||||||
|
subpackages+=" Carla-bridge-win"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
hostmakedepends+=" Carla-devel qt5-host-tools"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$build_option_win" ]; then
|
||||||
|
case $XBPS_TARGET_MACHINE in
|
||||||
|
x86_64)
|
||||||
|
hostmakedepends+=" cross-x86_64-w64-mingw32 wine-tools"
|
||||||
|
makedepends+=" wine-devel"
|
||||||
|
;;
|
||||||
|
i686)
|
||||||
|
hostmakedepends+=" cross-i686-w64-mingw32 wine-tools"
|
||||||
|
makedepends+=" wine-devel"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$build_option_linux32" ]; then
|
||||||
|
case $XBPS_TARGET_MACHINE in
|
||||||
|
x86_64)
|
||||||
|
makedepends+=" gcc-multilib freetype-devel-32bit libX11-devel-32bit"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
case $XBPS_TARGET_MACHINE in
|
case $XBPS_TARGET_MACHINE in
|
||||||
x86_64* | i686*);;
|
x86_64* | i686*);;
|
||||||
*) make_build_args+=" NOOPT=true"
|
*) make_build_args+=" NOOPT=true"
|
||||||
make_install_args+=" NOOPT=true";;
|
make_install_args+=" NOOPT=true";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
|
||||||
hostmakedepends+=" Carla-devel"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
||||||
makedepends+=" libexecinfo-devel musl-fts-devel"
|
makedepends+=" libexecinfo-devel musl-fts-devel"
|
||||||
export LDFLAGS="-lfts"
|
export LDFLAGS="-lfts"
|
||||||
|
@ -45,6 +85,27 @@ pre_build() {
|
||||||
make ${make_build_args} features
|
make ${make_build_args} features
|
||||||
}
|
}
|
||||||
|
|
||||||
|
post_build() {
|
||||||
|
if [ "$build_option_win" ]; then
|
||||||
|
case $XBPS_TARGET_MACHINE in
|
||||||
|
x86_64)
|
||||||
|
CXXFLAGS="" CFLAGS="" LDFLAGS="" \
|
||||||
|
make ${makejobs} ${make_build_args} win64 CC="x86_64-w64-mingw32-gcc" CXX="x86_64-w64-mingw32-g++"
|
||||||
|
make ${make_build_args} wine64
|
||||||
|
;;
|
||||||
|
i686)
|
||||||
|
CXXFLAGS="" CFLAGS="" LDFLAGS="" \
|
||||||
|
make ${makejobs} ${make_build_args} win32 CC="i686-w64-mingw32-gcc" CXX="i686-w64-mingw32-g++"
|
||||||
|
make ${make_build_args} wine32
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$build_option_linux32" ]; then
|
||||||
|
make posix32
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vbin bin/carla-lv2-export
|
vbin bin/carla-lv2-export
|
||||||
}
|
}
|
||||||
|
@ -57,3 +118,27 @@ Carla-devel_package() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Carla-bridge-win_package() {
|
||||||
|
lib32mode=full
|
||||||
|
lib32symlinks="carla/carla-bridge-win32.exe
|
||||||
|
carla/carla-discovery-win32.exe
|
||||||
|
carla/jackbridge-wine32.dll
|
||||||
|
vst/carla.vst/carla-bridge-win32.exe
|
||||||
|
vst/carla.vst/carla-carla-win32.exe
|
||||||
|
vst/carla.vst/jackbridge-wine32.dll
|
||||||
|
lv2/carla.lv2/carla-bridge-win32.exe
|
||||||
|
lv2/carla.lv2/carla-carla-win32.exe
|
||||||
|
lv2/carla.lv2/jackbridge-wine32.dll"
|
||||||
|
|
||||||
|
depends="Carla>=${version} wine"
|
||||||
|
short_desc+=" - windows bridge"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/lib/carla/*.exe
|
||||||
|
vmove usr/lib/carla/*.dll
|
||||||
|
vmove usr/lib/vst/carla.vst/*.exe
|
||||||
|
vmove usr/lib/vst/carla.vst/*.dll
|
||||||
|
vmove usr/lib/lv2/carla.lv2/*.exe
|
||||||
|
vmove usr/lib/lv2/carla.lv2/*.dll
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue