1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/audio/praat/Makefile
Adriaan de Groot a046e71a60 audio/praat update to latest upstream release.
Release notes are always on
	https://www.fon.hum.uva.nl/praat/manual/What_s_new_.html
there's one bug fixed, "more reliable choice of input device".

This release also vanishes some bundled code, so we no longer have
to patch out hard CPPFLAGS setting from Makefiles (well, two of them,
which no longer exist).

Reported by:	portscout
2020-06-07 18:57:06 +00:00

60 lines
1.6 KiB
Makefile

# $FreeBSD$
PORTNAME= praat
DISTVERSIONPREFIX= v
DISTVERSION= 6.1.16
CATEGORIES= audio science
MAINTAINER= adridg@FreeBSD.org
COMMENT= Phonetics by Computer
LICENSE= GPLv2
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libjack.so:audio/jack \
libasound.so:audio/alsa-lib
USES= compiler:c++11-lang dos2unix gnome iconv pkgconfig
USE_GNOME= cairo gdkpixbuf2 gtk20
USE_GITHUB= yes
DOS2UNIX_REGEX= .*Makefile
PLIST_FILES= bin/praat man/man1/praat.1.gz
HARDCPPFLAGS= ${WRKSRC}/EEG/Makefile \
${WRKSRC}/FFNet/Makefile \
${WRKSRC}/LPC/Makefile \
${WRKSRC}/artsynth/Makefile \
${WRKSRC}/dwsys/Makefile \
${WRKSRC}/dwtools/Makefile \
${WRKSRC}/external/espeak/Makefile \
${WRKSRC}/external/flac/Makefile \
${WRKSRC}/external/gsl/Makefile \
${WRKSRC}/external/mp3/Makefile \
${WRKSRC}/fon/Makefile \
${WRKSRC}/gram/Makefile \
${WRKSRC}/kar/Makefile \
${WRKSRC}/main/Makefile \
${WRKSRC}/melder/Makefile \
${WRKSRC}/stat/Makefile \
${WRKSRC}/sys/Makefile
post-patch:
@${REINPLACE_CMD} -e 's|^CPPFLAGS =|CPPFLAGS +=|' ${HARDCPPFLAGS}
@${CP} ${FILESDIR}/makefile.defs.freebsd.alsa \
${WRKSRC}/makefile.defs
@${REINPLACE_CMD} -e 's|%%WRKSRC%%|${WRKSRC}|g' \
-e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/makefile.defs
@${REINPLACE_CMD} -e 's| log2| NUMlog2|g' \
-e 's|feof (f)|feof (f.get_ptr())|g' \
-e 's|ferror (f)|ferror (f.get_ptr())|g' \
${WRKSRC}/dwtools/Sound_extensions.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/praat ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${FILESDIR}/praat.1 ${STAGEDIR}${PREFIX}/man/man1
.include <bsd.port.mk>