void-packages/srcpkgs/giada/template

36 lines
1.0 KiB
Bash

# Template file for 'giada'
pkgname=giada
version=0.16.4
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=a425151ff571d4b0e79a3faaa6dd872c8f2693ffcada975b282365c865130b38
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
}