1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/audio/praat/Makefile
Danilo Egea Gondolfo 4d2e869c75 - Update from 4.6.39 to 5.3.59
- Add stage support
while here
- Convert USE_DOS2UNIX to USES
- Add pkgconfig and gtk20 as dependencies

PR:		ports/184398
Submitted by:	Jason Bacon <jwbacon@tds.net> (maintainer)
2013-12-01 03:48:54 +00:00

45 lines
1.3 KiB
Makefile

# Created by: Jason Bacon <jwbacon@tds.net>
# $FreeBSD$
PORTNAME= praat
PORTVERSION= 5.3.59
CATEGORIES= audio science
MASTER_SITES= http://www.fon.hum.uva.nl/praat/
DISTNAME= praat5359_sources
MAINTAINER= jwbacon@tds.net
COMMENT= Phonetics by Computer
LICENSE= GPLv2
DOS2UNIX_REGEX= .*Makefile
USES= dos2unix iconv motif pkgconfig
USE_GNOME= gtk20
WRKSRC= ${WRKDIR}/sources_5359
MAKEFILE= makefile
PLIST_FILES= bin/praat man/man1/praat.1.gz
LIB_DEPENDS+= libasound.so:${PORTSDIR}/audio/alsa-lib
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.mk>