void-packages/srcpkgs/chuck/template
2021-12-01 21:28:18 -03:00

31 lines
985 B
Bash

# Template file for 'chuck'
pkgname=chuck
version=1.4.1.0
revision=1
build_wrksrc=src
build_style=gnu-makefile
make_use_env=yes
make_build_target="linux-jack"
hostmakedepends="bison flex"
makedepends="jack-devel libsndfile-devel liblo-devel"
short_desc="Concurrent, on-the-fly audio programming language"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://chuck.cs.princeton.edu"
changelog="https://chuck.cs.princeton.edu/release/VERSIONS"
distfiles="http://chuck.cs.princeton.edu/release/files/$pkgname-$version.tgz"
checksum=74bf99ad515e3113c55b833152936fad02a3cf006a54105ff11777c473194928
post_extract() {
# use CC, CXX and LD from environment
vsed -e '/^CC=/d' -e '/^CXX=/d' -e '/^LD=/d' -i src/makefile -i src/core/makefile
# fix parallel builds for make in sub directories
vsed -e 's/^\tmake /\t+$(MAKE) /' -i src/makefile
# use CC instead of LD when linking
vsed -e 's/$(LD)/$(CC)/g' -i src/makefile
}
do_install() {
vbin chuck
}