Lines 2-9
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= audacity |
4 |
PORTNAME= audacity |
5 |
PORTVERSION= 2.0.5 |
5 |
PORTVERSION= 2.0.6 |
6 |
PORTREVISION= 3 |
|
|
7 |
CATEGORIES= audio |
6 |
CATEGORIES= audio |
8 |
MASTER_SITES= GOOGLE_CODE \ |
7 |
MASTER_SITES= GOOGLE_CODE \ |
9 |
SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} |
8 |
SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} |
Lines 18-26
Link Here
|
18 |
|
17 |
|
19 |
WRKSRC= ${WRKDIR}/${PORTNAME}-src-${PORTVERSION} |
18 |
WRKSRC= ${WRKDIR}/${PORTNAME}-src-${PORTVERSION} |
20 |
|
19 |
|
21 |
USE_AUTOTOOLS= aclocal autoconf |
|
|
22 |
GNU_CONFIGURE= yes |
20 |
GNU_CONFIGURE= yes |
23 |
USES= tar:xz desktop-file-utils gmake gettext pkgconfig shared-mime-info |
21 |
USES= desktop-file-utils gettext gmake pkgconfig shared-mime-info \ |
|
|
22 |
tar:xz |
24 |
USE_WX= 2.8 |
23 |
USE_WX= 2.8 |
25 |
WX_UNICODE= yes |
24 |
WX_UNICODE= yes |
26 |
WX_COMPS= wx |
25 |
WX_COMPS= wx |
Lines 30-36
Link Here
|
30 |
OPTIONS_DEFINE= DEBUG DOCS FFMPEG FLAC ID3TAG LADSPA LAME MAD MIDI NYQUIST \ |
29 |
OPTIONS_DEFINE= DEBUG DOCS FFMPEG FLAC ID3TAG LADSPA LAME MAD MIDI NYQUIST \ |
31 |
PORTMIXER SBSMS SOUNDTOUCH TWOLAME VAMP VORBIS |
30 |
PORTMIXER SBSMS SOUNDTOUCH TWOLAME VAMP VORBIS |
32 |
OPTIONS_RADIO= SAMPLERATED |
31 |
OPTIONS_RADIO= SAMPLERATED |
33 |
OPTIONS_RADIO_SAMPLERATED= RESAMPLE SAMPLERATE SOXR |
32 |
OPTIONS_RADIO_SAMPLERATED= SAMPLERATE SOXR |
34 |
OPTIONS_DEFAULT= FFMPEG FLAC ID3TAG LADSPA MAD MIDI NYQUIST \ |
33 |
OPTIONS_DEFAULT= FFMPEG FLAC ID3TAG LADSPA MAD MIDI NYQUIST \ |
35 |
PORTMIXER SBSMS SOUNDTOUCH SOXR TWOLAME VAMP VORBIS |
34 |
PORTMIXER SBSMS SOUNDTOUCH SOXR TWOLAME VAMP VORBIS |
36 |
|
35 |
|
Lines 39-45
Link Here
|
39 |
MAD_DESC= Use libmad for mp2/3 decoding support |
38 |
MAD_DESC= Use libmad for mp2/3 decoding support |
40 |
MIDI_DESC= Use portSMF for Midi support |
39 |
MIDI_DESC= Use portSMF for Midi support |
41 |
NYQUIST_DESC= Nyquist plug-in support |
40 |
NYQUIST_DESC= Nyquist plug-in support |
42 |
RESAMPLE_DESC= Use libresample for sample rate conversion |
|
|
43 |
SAMPLERATE_DESC= Use libsamplerate for sample rate conversion |
41 |
SAMPLERATE_DESC= Use libsamplerate for sample rate conversion |
44 |
SAMPLERATED_DESC= Default sample rate conversion support |
42 |
SAMPLERATED_DESC= Default sample rate conversion support |
45 |
PORTMIXER_DESC= Compile with PortMixer support |
43 |
PORTMIXER_DESC= Compile with PortMixer support |
Lines 50-64
Link Here
|
50 |
TWOLAME_DESC= Use libtwolame for MP2 export support |
48 |
TWOLAME_DESC= Use libtwolame for MP2 export support |
51 |
VAMP_DESC= Vamp plug-in support |
49 |
VAMP_DESC= Vamp plug-in support |
52 |
|
50 |
|
53 |
ACLOCAL_ARGS+= -I ${WRKSRC}/m4 |
|
|
54 |
AUTOCONF_ARGS+= -I ${WRKSRC}/m4 |
55 |
|
51 |
|
56 |
CONFIGURE_ARG+= --destdir=/ |
|
|
57 |
|
58 |
CONFIGURE_ENV+= WX_CONFIG="${WX_CONFIG}" |
52 |
CONFIGURE_ENV+= WX_CONFIG="${WX_CONFIG}" |
59 |
|
53 |
|
60 |
CONFIGURE_ARGS+= --with-lib-preference="local system" \ |
54 |
CONFIGURE_ARGS+= --with-lib-preference="local system" \ |
61 |
--with-portaudio --enable-unicode |
55 |
--enable-portaudio --enable-unicode --without-lv2 |
62 |
|
56 |
|
63 |
.if ${MACHINE_CPU:Msse} |
57 |
.if ${MACHINE_CPU:Msse} |
64 |
CONFIGURE_ARGS+= --enable-sse |
58 |
CONFIGURE_ARGS+= --enable-sse |
Lines 69-79
Link Here
|
69 |
DEBUG_CONFIGURE_WITH= debug |
63 |
DEBUG_CONFIGURE_WITH= debug |
70 |
|
64 |
|
71 |
FFMPEG_CONFIGURE_WITH= ffmpeg |
65 |
FFMPEG_CONFIGURE_WITH= ffmpeg |
72 |
FFMPEG_RUN_DEPENDS= ffmpeg0:${PORTSDIR}/multimedia/ffmpeg0 |
66 |
FFMPEG_RUN_DEPENDS= ${LOCALBASE}/bin/ffmpeg:${PORTSDIR}/multimedia/ffmpeg |
73 |
FFMPEG_BUILD_DEPENDS= ffmpeg0>=0:${PORTSDIR}/multimedia/ffmpeg0 |
67 |
FFMPEG_CFLAGS= -I${LOCALBASE}/include/ffmpeg |
74 |
FFMPEG_CFLAGS= -I${LOCALBASE}/include/ffmpeg0 |
68 |
FFMPEG_CPPFLAGS= -I${LOCALBASE}/include/ffmpeg |
75 |
FFMPEG_CPPFLAGS= -I${LOCALBASE}/include/ffmpeg0 |
69 |
FFMPEG_CXXFLAGS= -I${LOCALBASE}/include/ffmpeg |
76 |
FFMPEG_CXXFLAGS= -I${LOCALBASE}/include/ffmpeg0 |
|
|
77 |
|
70 |
|
78 |
FLAC_CONFIGURE_WITH= libflac |
71 |
FLAC_CONFIGURE_WITH= libflac |
79 |
FLAC_LIB_DEPENDS= libFLAC.so:${PORTSDIR}/audio/flac |
72 |
FLAC_LIB_DEPENDS= libFLAC.so:${PORTSDIR}/audio/flac |
Lines 98-105
Link Here
|
98 |
|
91 |
|
99 |
PORTMIXER_CONFIGURE_WITH= portmixer |
92 |
PORTMIXER_CONFIGURE_WITH= portmixer |
100 |
|
93 |
|
101 |
RESAMPLE_CONFIGURE_WITH= libresample |
|
|
102 |
|
103 |
SAMPLERATE_CONFIGURE_WITH= libsamplerate |
94 |
SAMPLERATE_CONFIGURE_WITH= libsamplerate |
104 |
SAMPLERATE_LIB_DEPENDS= libsamplerate.so:${PORTSDIR}/audio/libsamplerate |
95 |
SAMPLERATE_LIB_DEPENDS= libsamplerate.so:${PORTSDIR}/audio/libsamplerate |
105 |
|
96 |
|
Lines 122-140
Link Here
|
122 |
.include <bsd.port.pre.mk> |
113 |
.include <bsd.port.pre.mk> |
123 |
|
114 |
|
124 |
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} |
115 |
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} |
125 |
CPPFLAGS+= -I${WRKSRC}/lib-src/portsmf -I${WRKSRC}/lib-src/portaudio-v19/include -I${LOCALBASE}/include ${PTHREAD_CFLAGS} |
116 |
CPPFLAGS+= -I${WRKSRC}/lib-src/portsmf ${PTHREAD_CFLAGS} |
126 |
CXXFLAGS+= -I${WRKSRC}/lib-src/portsmf -I${WRKSRC}/lib-src/portaudio-v19/include -I${LOCALBASE}/include ${PTHREAD_CFLAGS} |
117 |
CXXFLAGS+= -I${WRKSRC}/lib-src/portsmf ${PTHREAD_CFLAGS} |
127 |
CFLAGS+= -I${WRKSRC}/lib-src/portsmf -I${WRKSRC}/lib-src/portaudio-v19/include -I${LOCALBASE}/include ${PTHREAD_CFLAGS} |
118 |
CFLAGS+= -I${WRKSRC}/lib-src/portsmf -I${WRKSRC}/lib-src/portaudio-v19/include -I${WRKSRC}/lib-src/lame -I${LOCALBASE}/include ${PTHREAD_CFLAGS} |
128 |
|
119 |
|
129 |
post-patch: |
120 |
post-patch: |
130 |
#audacity links to some dependencies if present, even if explicitly disabled. |
121 |
.if ! ${PORT_OPTIONS:MPORTMIXER} |
131 |
#these must be patched out for the case when they are installed but |
122 |
@${REINPLACE_CMD} -e 's/ portmixer / /' ${WRKSRC}/lib-src/Makefile.in |
132 |
#option-disabled to avoid unrecorded dependencies. |
|
|
133 |
|
134 |
.if empty(PORT_OPTIONS:MSAMPLERATE) |
135 |
@${REINPLACE_CMD} -e 's|libresample.a -lsamplerate $(LIBS)|libresample.a $(LIBS)|' ${WRKSRC}/lib-src/libresample/Makefile.in |
136 |
.endif |
123 |
.endif |
137 |
|
|
|
138 |
@${REINPLACE_CMD} -e 's|inline void|static inline void|' ${WRKSRC}/lib-src/libnyquist/nyquist/ffts/src/fftlib.c |
124 |
@${REINPLACE_CMD} -e 's|inline void|static inline void|' ${WRKSRC}/lib-src/libnyquist/nyquist/ffts/src/fftlib.c |
139 |
|
125 |
|
140 |
post-install: |
126 |
post-install: |