void-packages/srcpkgs/giada/template

36 lines
1.0 KiB
Bash

# Template file for 'giada'
pkgname=giada
version=0.16.3.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=a2ee69e66bfb4504ce4f91e758315d42e6b83d7b8b0db2eb1d89ab245342f73c
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
}