aboutsummaryrefslogtreecommitdiffstats
path: root/audio/praat/Makefile
blob: 57a5af455278c2d88c71f942002b7bcf0c4b53d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# New ports collection Makefile for:    praat
# Date created:     21-Feb-2006
# Whom:         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
DOS2UNIX_REGEX= .*Makefile
USE_MOTIF=  yes
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 +=|' "{}" \;
    @${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>