summaryrefslogtreecommitdiffstats
path: root/audio/praat/Makefile
blob: cb64ed81ee4a285924ab734e9d7ded9ae51d11e0 (plain)
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
40
41
42
43
44
# Created by: Jason Bacon <bacon4000@gmail.com>
# $FreeBSD$

PORTNAME=	praat
PORTVERSION=	5.4.08
DISTVERSIONPREFIX=	v
PORTREVISION=	3
CATEGORIES=	audio science

MAINTAINER=	bacon4000@gmail.com
COMMENT=	Phonetics by Computer

LICENSE=	GPLv2

BROKEN_powerpc64=	fails to compile: cc1plus: unrecognized command line option "-std=gnu++11"

USE_GITHUB=	yes
DOS2UNIX_REGEX=	.*Makefile
USES=		dos2unix iconv pkgconfig
USE_GNOME=	gtk20
MAKEFILE=	makefile
PLIST_FILES=	bin/praat man/man1/praat.1.gz

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>
OpenPOWER on IntegriCloud