11# Template file for 'praat'
22pkgname=praat
3- version=6.4.39
3+ version=6.4.50
44revision=1
55create_wrksrc=yes
66hostmakedepends="pkg-config"
77makedepends="gtk+3-devel $(vopt_if alsa alsa-lib-devel) $(vopt_if jack jack-devel)
8- $(vopt_if pulseaudio 'alsa-lib-devel pulseaudio-devel')"
8+ $(vopt_if pulseaudio 'alsa-lib-devel jack-devel pulseaudio-devel')"
99checkdepends="cantarell-fonts"
1010short_desc="Speech analysis, synthesis, and manipulation"
1111maintainer="newbluemoon <
[email protected] >"
1212license="GPL-2.0-or-later"
1313homepage="https://www.fon.hum.uva.nl/praat/"
1414changelog="https://www.fon.hum.uva.nl/praat/manual/What_s_new_.html"
1515distfiles="https://github.com/praat/praat/archive/v${version}.tar.gz"
16- checksum=a432faee3f00710fb969dcc3ef09aec518332a7cf9c6512a320d657a0155fb24
16+ checksum=cbe05e086d31c525fffafed90d2b732874750eb5c721432eb960ce8331ffe02c
1717
1818# there are a number of pre-defined Makefiles for certain configurations
1919# build options are used to choose which one to use among a selected few
@@ -30,6 +30,14 @@ vopt_conflict alsa pulseaudio
3030
3131do_build() {
3232 for _variant in $(vopt_if alsa alsa) $(vopt_if jack jack) $(vopt_if pulseaudio pulse-gcc) nogui; do
33+ # Makefiles have suffix .LE for little endian targets
34+ # and .BE for big endian respectively
35+ if [ $XBPS_TARGET_ENDIAN = "le" ]; then
36+ _variant+=.LE
37+ else
38+ _variant+=.BE
39+ fi
40+
3341 cp -a "praat.github.io-${version}" $_variant
3442 cd $_variant
3543
@@ -42,12 +50,6 @@ do_build() {
4250 -e 's/-no-pie//' \
4351 makefile.defs
4452
45- if [ $XBPS_TARGET_ENDIAN = "le" ]; then
46- CFLAGS+=" -DPA_LITTLE_ENDIAN"
47- else
48- CFLAGS+=" -DPA_BIG_ENDIAN"
49- fi
50-
5153 # see https://github.com/praat/praat/issues/2433
5254 case "$XBPS_TARGET_MACHINE" in
5355 i686*)
0 commit comments