Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions srcpkgs/praat/template
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# Template file for 'praat'
pkgname=praat
version=6.4.39
version=6.4.53
revision=1
create_wrksrc=yes
hostmakedepends="pkg-config"
makedepends="gtk+3-devel $(vopt_if alsa alsa-lib-devel) $(vopt_if jack jack-devel)
$(vopt_if pulseaudio 'alsa-lib-devel pulseaudio-devel')"
$(vopt_if pulseaudio 'alsa-lib-devel jack-devel pulseaudio-devel')"
checkdepends="cantarell-fonts"
short_desc="Speech analysis, synthesis, and manipulation"
maintainer="newbluemoon <[email protected]>"
license="GPL-2.0-or-later"
homepage="https://www.fon.hum.uva.nl/praat/"
changelog="https://www.fon.hum.uva.nl/praat/manual/What_s_new_.html"
distfiles="https://github.com/praat/praat/archive/v${version}.tar.gz"
checksum=a432faee3f00710fb969dcc3ef09aec518332a7cf9c6512a320d657a0155fb24
checksum=48dc12b5aec317c227bf4cdcd1ba41f4b11b952e7980c2c2b3265d69c60ffeb2

# there are a number of pre-defined Makefiles for certain configurations
# build options are used to choose which one to use among a selected few
Expand All @@ -30,6 +30,14 @@ vopt_conflict alsa pulseaudio

do_build() {
for _variant in $(vopt_if alsa alsa) $(vopt_if jack jack) $(vopt_if pulseaudio pulse-gcc) nogui; do
# Makefiles have suffix .LE for little endian targets
# and .BE for big endian respectively
if [ $XBPS_TARGET_ENDIAN = "le" ]; then
_variant+=.LE
else
_variant+=.BE
fi

cp -a "praat.github.io-${version}" $_variant
cd $_variant

Expand All @@ -42,12 +50,6 @@ do_build() {
-e 's/-no-pie//' \
makefile.defs

if [ $XBPS_TARGET_ENDIAN = "le" ]; then
CFLAGS+=" -DPA_LITTLE_ENDIAN"
else
CFLAGS+=" -DPA_BIG_ENDIAN"
fi

# see https://github.com/praat/praat/issues/2433
case "$XBPS_TARGET_MACHINE" in
i686*)
Expand Down