blob: 80c67ef688887bf8d61a862dc79e32d9e3e6bf25 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
# Created by: Tilman Linneweh <arved@FreeBSD.org>
# $FreeBSD$
# $MCom: ports/audio/terminatorx/Makefile,v 1.6 2007/08/04 03:51:28 marcus Exp $
PORTNAME= terminatorx
PORTVERSION= 3.84
PORTREVISION= 2
CATEGORIES= audio
MASTER_SITES= http://terminatorx.org/dist/
DISTNAME= terminatorX-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Realtime audio synthesizer that allows you to "scratch" on audio data
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa \
rarian-sk-config:${PORTSDIR}/textproc/rarian
LIB_DEPENDS= audiofile:${PORTSDIR}/audio/libaudiofile \
lrdf:${PORTSDIR}/textproc/liblrdf
OPTIONS_DEFINE= ALSA JACK MPG123 SOX VORBIS MAD
OPTIONS_DEFAULT= JACK MPG123 SOX VORBIS MAD
SOX_DESC= sox (.au) support
MPG123_DESC= mpg123 support
USE_BZIP2= yes
USE_XORG= x11 xext xi xxf86dga ice sm
USES= gmake pathfix pkgconfig
USE_GNOME= gnomehier gtk20 libxml2
USE_AUTOTOOLS= aclocal autoheader automake autoconf
ACLOCAL_ARGS= -I ${LOCALBASE}/share/aclocal
AUTOMAKE_ARGS= --add-missing
CONFIGURE_ARGS= --disable-alsamidi \
--disable-scheduler
INSTALLS_OMF= yes
MAN1= terminatorX.1
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MALSA}
CONFIGURE_ARGS+= --disable-alsa
.else
LIB_DEPENDS+= asound:${PORTSDIR}/audio/alsa-lib
.endif
.if ${PORT_OPTIONS:MJACK}
LIB_DEPENDS+= jack:${PORTSDIR}/audio/jack
.else
CONFIGURE_ARGS+= --disable-jack
.endif
.if ${PORT_OPTIONS:MMPG123}
BUILD_DEPENDS+= mpg123:${PORTSDIR}/audio/mpg123
.else
CONFIGURE_ARGS+= --disable-mpg123
.endif
.if ${PORT_OPTIONS:MSOX}
BUILD_DEPENDS+= sox:${PORTSDIR}/audio/sox
.else
CONFIGURE_ARGS+= --disable-sox
.endif
.if ${PORT_OPTIONS:MVORBIS}
BUILD_DEPENDS+= oggenc:${PORTSDIR}/audio/vorbis-tools
LIB_DEPENDS+= vorbis:${PORTSDIR}/audio/libvorbis
.else
CONFIGURE_ARGS+= --disable-vorbis
.endif
.if ${PORT_OPTIONS:MMAD}
LIB_DEPENDS+= mad:${PORTSDIR}/audio/mad
.else
CONFIGURE_ARGS+= --disable-mad
.endif
post-patch:
@${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|malloc\.h|stdlib.h|g'
@${GREP} -lR "%%LOCALBASE%%" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|%%LOCALBASE%%|${LOCALBASE}|g'
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/terminatorX ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/terminatorX.1 ${MANPREFIX}/man/man1
.for file in terminatorX-app.png terminatorX-mime.png
${INSTALL_DATA} ${WRKSRC}/gnome-support/${file} \
${PREFIX}/share/pixmaps
.endfor
.for f in terminatorX.mime terminatorX.keys
${INSTALL_DATA} ${WRKSRC}/gnome-support/${f} \
${PREFIX}/share/mime-info
.endfor
@${MKDIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/gnome-support/terminatorX.desktop \
${PREFIX}/share/applications
@${MKDIR} ${PREFIX}/share/gnome/help/terminatorX/C
${INSTALL_DATA} ${WRKSRC}/doc/terminatorX-manual/C/terminatorX-manual.xml \
${PREFIX}/share/gnome/help/terminatorX/C/terminatorX.xml
@${MKDIR} ${PREFIX}/share/gnome/help/terminatorX/C/figures
${INSTALL_DATA} ${WRKSRC}/doc/terminatorX-manual/C/figures/signalflow.png \
${PREFIX}/share/gnome/help/terminatorX/C/figures
@${MKDIR} ${PREFIX}/share/omf/terminatorX
${INSTALL_DATA} ${WRKSRC}/doc/terminatorX-manual/C/terminatorX-manual-C.omf \
${PREFIX}/share/omf/terminatorX/terminatorX-C.omf
@scrollkeeper-install -q ${PREFIX}/share/omf/terminatorX/terminatorX-C.omf 2>/dev/null || ${TRUE}
.include <bsd.port.mk>
|