mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
71c5bb8a43
Portaudio doesn't work with alsa-plugins-oss, so switch to native OSS. ALSA lib confmisc.c:768:(parse_card) cannot find card '0' ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory [...] PR: 208728 Reported by: kaltheat@gmail.com Approved by: Jason Bacon <bacon4000@gmail.com> (maintainer) MFH: 2016Q2
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
# Created by: Jason Bacon <bacon4000@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= praat
|
|
PORTVERSION= 5.4.08
|
|
DISTVERSIONPREFIX= v
|
|
PORTREVISION= 2
|
|
CATEGORIES= audio science
|
|
|
|
MAINTAINER= bacon4000@gmail.com
|
|
COMMENT= Phonetics by Computer
|
|
|
|
LICENSE= GPLv2
|
|
|
|
USE_GITHUB= yes
|
|
DOS2UNIX_REGEX= .*Makefile
|
|
USES= dos2unix iconv pkgconfig
|
|
USE_GNOME= gtk20
|
|
MAKEFILE= makefile
|
|
PLIST_FILES= bin/praat man/man1/praat.1.gz
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} < 1000000
|
|
# Requires std=g++11
|
|
USE_GCC= yes
|
|
.endif
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -name Makefile -exec \
|
|
${REINPLACE_CMD} -e 's|^CFLAGS =|CFLAGS +=|' "{}" \;
|
|
@${FIND} ${WRKSRC} -name Makefile -exec \
|
|
${REINPLACE_CMD} -e 's|^CPPFLAGS =|CPPFLAGS +=|' "{}" \;
|
|
@${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 \
|
|
${WRKSRC}/fon/Sound_files.cpp
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/praat ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${FILESDIR}/praat.1 ${STAGEDIR}${PREFIX}/man/man1
|
|
|
|
.include <bsd.port.post.mk>
|