1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00
freebsd-ports/audio/praat/Makefile

39 lines
1009 B
Makefile

# Created by: Jason Bacon <jwbacon@tds.net>
# $FreeBSD$
PORTNAME= praat
PORTVERSION= 4.6.39
PORTREVISION= 3
CATEGORIES= audio science
MASTER_SITES= http://personalpages.tds.net/~jwbacon/Ports/distfiles/
DISTNAME= praat4639_sources
MAINTAINER= jwbacon@tds.net
COMMENT= Phonetics by Computer
USE_DOS2UNIX= yes
NO_STAGE= yes
DOS2UNIX_REGEX= .*Makefile
USES= iconv motif
WRKSRC= ${WRKDIR}/sources_4639
MAKEFILE= makefile
PLIST_FILES= bin/praat
MAKE_JOBS_UNSAFE= yes
MAN1= praat.1
post-patch:
@${REINPLACE_CMD} -e 's/ log2/ NUMlog2/' ${WRKSRC}/dwtools/Sound_extensions.c
@${FIND} ${WRKSRC} -name Makefile -exec \
${REINPLACE_CMD} -e 's|^CFLAGS =|CFLAGS +=|' "{}" \;
@${REINPLACE_CMD} -e 's/%%ICONV_LIB%%/${ICONV_LIB}/' \
${WRKSRC}/makefiles/makefile.defs.freebsd.dynamic
@${CP} ${WRKSRC}/makefiles/makefile.defs.freebsd.dynamic \
${WRKSRC}/makefile.defs
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/praat ${PREFIX}/bin
${INSTALL_MAN} ${FILESDIR}/praat.1 ${PREFIX}/man/man1
.include <bsd.port.mk>