53 lines
1.4 KiB
Bash
53 lines
1.4 KiB
Bash
# Template file for 'praat'
|
|
pkgname=praat
|
|
version=6.0.47
|
|
revision=1
|
|
create_wrksrc=yes
|
|
hostmakedepends="pkg-config"
|
|
makedepends="alsa-lib-devel gtk+-devel jack-devel
|
|
$(vopt_if pulseaudio pulseaudio-devel)"
|
|
short_desc="Speech analysis, synthesis, and manipulation"
|
|
maintainer="newbluemoon <blaumolch@mailbox.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://www.praat.org/"
|
|
changelog="http://www.fon.hum.uva.nl/praat/manual/What_s_new_.html"
|
|
distfiles="https://github.com/praat/praat/archive/v${version}.tar.gz"
|
|
checksum=4dfa563b8c8c4aef07ec1a73c466fa2268389d8dd0fe5300f03444b9a2f11f9d
|
|
|
|
build_options="pulseaudio"
|
|
build_options_default="pulseaudio"
|
|
|
|
do_build() {
|
|
for _variant in $(vopt_if pulseaudio pulse alsa) nogui; do
|
|
cp -a "${pkgname}-${version}" $_variant
|
|
cd $_variant
|
|
|
|
cp makefiles/makefile.defs.linux.${_variant} ./makefile.defs
|
|
sed -i -e 's/$(LIBS)/& $(LDFLAGS)/' Makefile
|
|
sed -i -e 's/CC = gcc/CC = "${CC}"/' \
|
|
-e 's/CXX = g++/CXX = "${CXX}"/' \
|
|
-e 's/LINK = g++/LINK = "${CXX}"/' \
|
|
-e 's/AR = ar/AR = "${AR}"/' \
|
|
-e 's/-O\(1\|3\)//' \
|
|
-e 's/CFLAGS =/CFLAGS +=/' \
|
|
-e 's/CXXFLAGS =/CXXFLAGS +=/' \
|
|
makefile.defs
|
|
|
|
make ${makejobs} CC="$CC" CXX="$CXX" LD="$LD" AR="$AR"
|
|
|
|
mv praat* ..
|
|
cd ..
|
|
done
|
|
}
|
|
|
|
do_install() {
|
|
vbin praat
|
|
vbin praat_nogui
|
|
}
|
|
|
|
praat-nogui_package() {
|
|
short_desc+=" (nogui)"
|
|
pkg_install() {
|
|
vmove usr/bin/praat_nogui
|
|
}
|
|
}
|