blob: aab2d5f1188971f776f5531d7fa5cf74b18f4799 (
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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
|
# New ports collection makefile for: audacity
# Date created: 21 Jul 2001
# Whom: Marc van Woerkom <3d@freebsd.org>
#
# $FreeBSD$
PORTNAME= audacity
PORTVERSION= 2.0.0
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= GOOGLE_CODE \
SF/${PORTNAME}/${PORTNAME}-unstable/${PORTVERSION}
DISTNAME= ${PORTNAME}-minsrc-${PORTVERSION}
MAINTAINER= xxjack12xx@gmail.com
COMMENT= Audacity is a GUI editor for digital audio waveforms
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
LIB_DEPENDS= sndfile.1:${PORTSDIR}/audio/libsndfile
CONFLICTS= audacity-devel-[0-9]*
WRKSRC= ${WRKDIR}/${PORTNAME}-src-${PORTVERSION}
USE_AUTOTOOLS= aclocal autoconf
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_GETTEXT= yes
USE_BZIP2= yes
USE_WX= 2.8
WX_UNICODE= yes
WX_COMPS= wx
INSTALLS_ICONS= yes
MAKE_JOBS_SAFE= yes
MAN1= audacity.1
MANCOMPRESSED= yes
OPTIONS= FFMPEG "Use ffmpeg for import and export support" on \
FLAC "Use libFLAC for FLAC support" on \
ID3TAG "Use libid3tag for mp3 id3 tag support" on \
JACK "Use JACK audio server" on \
LADSPA "LADSPA plug-in support" on \
MAD "Use libmad for mp2/3 decoding support" on \
NYQUIST "Nyquist plug-in support" on \
PORTMIXER "Compile with PortMixer" on \
SAMPLERATE "Use libsamplerate for sample rate conversion" on \
SBSMS "Use libsbsms for pitch and tempo changing" on \
SOUNDTOUCH "Use libSoundTouch for pitch and tempo changing" on\
TAGLIB "Use TagLib for metadata support" on \
TWOLAME "Use libtwolame for MP2 export support" on \
VORBIS "Use libvorbis for Ogg Vorbis support" on \
VAMP "Use libvamp for Vamp plug-in support" on
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
SSE_CFLAGS= -mno-sse -mno-sse2
.endif
ACLOCAL_ARGS+= -I ${WRKSRC}/m4
AUTOCONF_ARGS+= -I ${WRKSRC}/m4
CONFIGURE_ARG+ =--destdir=/
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
CPPFLAGS+= -I${WRKSRC}/lib-src/portsmf -I${WRKSRC}/lib-src/portaudio-v19/include -I${LOCALBASE}/include ${SSE_CFLAGS} ${PTHREAD_CFLAGS}
CXXFLAGS+= -I${WRKSRC}/lib-src/portsmf -I${WRKSRC}/lib-src/portaudio-v19/include -I${LOCALBASE}/include ${SSE_CFLAGS} ${PTHREAD_CFLAGS}
CFLAGS+= -I${WRKSRC}/lib-src/portsmf -I${WRKSRC}/lib-src/portaudio-v19/include -I${LOCALBASE}/include ${SSE_CFLAGS} ${PTHREAD_CFLAGS}
CONFIGURE_ENV+= WX_CONFIG="${WX_CONFIG}"
.if !defined(NOPORTDOCS)
MAKE_ENV= DOC=yes
.endif
CONFIGURE_ARGS+= --with-lib-preference="local system"
CONFIGURE_ARGS+= --with-portaudio
CONFIGURE_ARGS+= --enable-unicode
.if defined(WITH_FFMPEG)
RUN_DEPENDS+= ffmpeg:${PORTSDIR}/multimedia/ffmpeg
CONFIGURE_ARGS+= --with-ffmpeg
.else
CONFIGURE_ARGS+= --without-ffmpeg
.endif
.if defined(WITH_FLAC)
LIB_DEPENDS+= FLAC.10:${PORTSDIR}/audio/flac
CONFIGURE_ARGS+= --with-libflac
.else
CONFIGURE_ARGS+= --without-libflac
.endif
.if defined(WITH_ID3TAG)
LIB_DEPENDS+= id3tag.0:${PORTSDIR}/audio/libid3tag
CONFIGURE_ARGS+= --with-libid3tag
.else
CONFIGURE_ARGS+= --without-libid3tag
.endif
.if defined(WITH_JACK)
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack
CONFIGURE_ARGS+= --with-jack
.else
CONFIGURE_ARGS+= --without-jack
.endif
.if defined(WITH_LADSPA)
RUN_DEPENDS+= listplugins:${PORTSDIR}/audio/ladspa
CONFIGURE_ARGS+= --enable-ladspa
.else
CONFIGURE_ARGS+= --disable-ladspa
.endif
.if defined(WITH_MAD)
LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad
CONFIGURE_ARGS+= --with-libmad
.else
CONFIGURE_ARGS+= --without-libmad
.endif
.if defined(WITH_NYQUIST)
CONFIGURE_ARGS+= --enable-nyquist
.else
CONFIGURE_ARGS+= --disable-nyquist
.endif
.if defined(WITH_PORTMIXER)
CONFIGURE_ARGS+= --with-portmixer
.else
CONFIGURE_ARGS+= --without-portmixer
.endif
.if defined(WITH_SAMPLERATE)
LIB_DEPENDS+= samplerate.1:${PORTSDIR}/audio/libsamplerate
CONFIGURE_ARGS+= --with-libsamplerate
.else
CONFIGURE_ARGS+= --without-libsamplerate
.endif
.if defined(WITH_SBSMS)
CONFIGURE_ARGS+= --with-sbsms
.else
CONFIGURE_ARGS+= --without-sbsms
.endif
.if defined(WITH_SOUNDTOUCH)
LIB_DEPENDS+= SoundTouch.0:${PORTSDIR}/audio/soundtouch
CONFIGURE_ARGS+= --with-soundtouch
.else
CONFIGURE_ARGS+= --without-soundtouch
.endif
.if defined(WITH_TWOLAME)
LIB_DEPENDS+= twolame.0:${PORTSDIR}/audio/twolame
CONFIGURE_ARGS+= --with-libtwolame
.else
CONFIGURE_ARGS+= --without-libtwolame
.endif
.if defined(WITH_TAGLIB)
LIB_DEPENDS+= tag.1:${PORTSDIR}/audio/taglib
CONFIGURE_ARGS+= --with-taglib
.else
CONFIGURE_ARGS+= --without-taglib
.endif
.if defined(WITH_VAMP)
CONFIGURE_ARGS+= --with-libvamp
.else
CONFIGURE_ARGS+= --without-libvamp
.endif
.if defined(WITH_VORBIS)
LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis
CONFIGURE_ARGS+= --with-libvorbis
.else
CONFIGURE_ARGS+= --without-libvorbis
.endif
post-patch:
#audacity links to some dependencies if present, even if explicitly disabled.
#these must be patched out for the case when they are installed but
#option-disabled to avoid unrecorded dependencies.
.if defined(WITHOUT_JACK)
@${REINPLACE_CMD} -e 's|PKG_CHECK_MODULES(JACK, jack, have_jack=yes, have_jack=no)|have_jack=no|' ${WRKSRC}/configure.in
.endif
.if defined(WITHOUT_SAMPLERATE)
@${REINPLACE_CMD} -e 's|libresample.a -lsamplerate $(LIBS)|libresample.a $(LIBS)|' ${WRKSRC}/lib-src/libresample/Makefile.in
.endif
.include <bsd.port.post.mk>
|