summaryrefslogtreecommitdiff
path: root/audio/terminatorx/Makefile
blob: 5b44a509dfe1392034f6c8124c55f4c69ef97cec (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
40
41
42
43
44
45
46
47
48
# New ports collection Makefile for: 	terminatorx
# Date created:			13 May 2002
# Whom:				Tilman Linneweh <freebsdports@arved.de
#
# $FreeBSD$

PORTNAME=	terminatorx
PORTVERSION=	3.72
CATEGORIES=	audio
MASTER_SITES=	http://www.terminatorx.cx/
DISTNAME=	terminatorX-${PORTVERSION}

MAINTAINER=	freebsdports@arved.de

BUILD_DEPENDS=	${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
.if !defined(WITHOUT_SOX)
BUILD_DEPENDS+=	sox:${PORTSDIR}/audio/sox
.endif
.if !defined(WITHOUT_VORBIS)
BUILD_DEPENDS+=	oggenc:${PORTSDIR}/audio/vorbis-tools
.endif

USE_GTK=	yes
GNU_CONFIGURE=	yes

pre-everything:
.if !defined(WITHOUT_SOX)
	@${ECHO_MSG} "You can disable support for sox by defining WITHOUT_SOX."
.endif
.if !defined(WITHOUT_VORBIS)
	@${ECHO_MSG} "You can disable support for vorbis by defining WITHOUT_VORBIS."
.endif

post-patch:

.for i in main.cc \
	tX_audiofile.cc \
	tX_flash.c \
	tX_seqpar.cc \
	tX_vtt.cc \
	tX_widget.c
	${MV} ${WRKSRC}/src/$i ${WRKSRC}/src/$i.sed
	${SED} -e "s:malloc.h:stdlib.h:g" \
		${WRKSRC}/src/$i.sed >${WRKSRC}/src/$i
	${RM} ${WRKSRC}/src/$i.sed
.endfor

.include <bsd.port.mk>