void-packages/srcpkgs/giada/template
2020-03-08 01:38:15 +01:00

35 lines
1 KiB
Bash

# Template file for 'giada'
pkgname=giada
version=0.16.2.1
revision=1
build_style=gnu-configure
configure_args="--target=linux"
hostmakedepends="automake"
makedepends="fltk-devel jack-devel libsamplerate-devel
libsndfile-devel libXpm-devel pulseaudio-devel rtmidi-devel libXcursor-devel
json-c++"
short_desc="Loop machine, audio tool for DJs, live performers and musicians"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="GPL-3.0-only"
homepage="https://www.giadamusic.com/"
distfiles="https://github.com/monocasual/giada/archive/v${version}.tar.gz"
checksum=202f655dcf596366de6018babbd62d65e7439e3585d2a913ca91d939f0d28d82
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
fi
post_extract() {
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
vsed -e 's/\($(ldAdd)\)/\1 -latomic/g' -i Makefile.am
fi
vsed -e 's;deps/json/single_include/\(nlohmann/json.hpp\);\1;' -i \
src/core/init.cpp \
src/core/midiMapConf.cpp \
src/core/conf.cpp \
src/core/patch.cpp
}
pre_configure() {
autoreconf -fi
}