Lines 6-13
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= sox |
8 |
PORTNAME= sox |
9 |
PORTVERSION= 14.2.0 |
9 |
PORTVERSION= 14.3.0 |
10 |
PORTREVISION= 2 |
|
|
11 |
CATEGORIES= audio |
10 |
CATEGORIES= audio |
12 |
MASTER_SITES= SF |
11 |
MASTER_SITES= SF |
13 |
|
12 |
|
Lines 25-30
Link Here
|
25 |
USE_AUTOTOOLS= libltdl |
24 |
USE_AUTOTOOLS= libltdl |
26 |
USE_GNOME= pkgconfig |
25 |
USE_GNOME= pkgconfig |
27 |
|
26 |
|
|
|
27 |
# Default LAME to off for packages so we don't end up RESTRICTED |
28 |
.if defined(PACKAGE_BUILDING) |
28 |
.if defined(PACKAGE_BUILDING) |
29 |
_LAME= off |
29 |
_LAME= off |
30 |
.else |
30 |
.else |
Lines 37-47
Link Here
|
37 |
FFMPEG "Enable ffmpeg en/decoding" on \ |
37 |
FFMPEG "Enable ffmpeg en/decoding" on \ |
38 |
FLAC "Enable flac en/decoding with libflac" on \ |
38 |
FLAC "Enable flac en/decoding with libflac" on \ |
39 |
GSM "Use libgsm from ports (else use bundled lib)" on \ |
39 |
GSM "Use libgsm from ports (else use bundled lib)" on \ |
|
|
40 |
ID3TAG "Enable mp3 tagging with libid3tag" on \ |
40 |
LADSPA "Audio plugin support" off \ |
41 |
LADSPA "Audio plugin support" off \ |
41 |
LAME "Enable mp3 encoding with LAME" ${_LAME} \ |
42 |
LAME "Enable mp3 encoding with LAME" ${_LAME} \ |
42 |
MAD "Enable mp3 decoding with MAD" on \ |
43 |
MAD "Enable mp3 decoding with MAD" on \ |
43 |
PNG "Enable PNG spectrogram creation" on \ |
44 |
PNG "Enable PNG spectrogram creation" on \ |
44 |
SAMPLERATE "Enable libsamplerate" on \ |
|
|
45 |
SNDFILE "Enable libsndfile" on \ |
45 |
SNDFILE "Enable libsndfile" on \ |
46 |
VORBIS "Enable Ogg Vorbis support" on \ |
46 |
VORBIS "Enable Ogg Vorbis support" on \ |
47 |
WAVPACK "Enable Wavpack support" off |
47 |
WAVPACK "Enable Wavpack support" off |
Lines 52-116
Link Here
|
52 |
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} |
52 |
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} |
53 |
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" |
53 |
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" |
54 |
CONFIGURE_ARGS+= --with-pkgconfigdir="${PREFIX}/libdata/pkgconfig" |
54 |
CONFIGURE_ARGS+= --with-pkgconfigdir="${PREFIX}/libdata/pkgconfig" |
55 |
|
55 |
CONFIGURE_ARGS+= --with-distro="${CONFIGURE_TARGET} ${PKGNAME}" |
56 |
.if !defined(WITH_LAME) && !defined(WITH_MAD) |
|
|
57 |
PLIST_SUB+= PLIST_MP3="@comment " |
58 |
.else |
59 |
PLIST_SUB+= PLIST_MP3="" |
60 |
.endif |
61 |
|
56 |
|
62 |
.if defined(WITH_AO) |
57 |
.if defined(WITH_AO) |
63 |
CONFIGURE_ARGS+= --enable-libao |
58 |
CONFIGURE_ARGS+= --with-ao |
64 |
LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao |
59 |
LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao |
65 |
PLIST_SUB+= PLIST_AO="" |
|
|
66 |
.else |
60 |
.else |
67 |
CONFIGURE_ARGS+= --disable-libao |
61 |
CONFIGURE_ARGS+= --without-ao |
68 |
PLIST_SUB+= PLIST_AO="@comment " |
|
|
69 |
.endif |
62 |
.endif |
70 |
|
63 |
|
71 |
.if defined(WITH_AMRNB) |
64 |
.if defined(WITH_AMRNB) |
72 |
CONFIGURE_ARGS+= --with-amr-nb |
65 |
CONFIGURE_ARGS+= --with-amrnb |
73 |
LIB_DEPENDS+= amrnb.3:${PORTSDIR}/audio/libamrnb |
66 |
LIB_DEPENDS+= amrnb.3:${PORTSDIR}/audio/libamrnb |
74 |
PLIST_SUB+= PLIST_AMRNB="" |
|
|
75 |
.else |
67 |
.else |
76 |
CONFIGURE_ARGS+= --without-amr-nb |
68 |
CONFIGURE_ARGS+= --without-amrnb |
77 |
PLIST_SUB+= PLIST_AMRNB="@comment " |
|
|
78 |
.endif |
69 |
.endif |
79 |
|
70 |
|
80 |
.if defined(WITH_AMRWB) |
71 |
.if defined(WITH_AMRWB) |
81 |
CONFIGURE_ARGS+= --with-amr-wb |
72 |
CONFIGURE_ARGS+= --with-amrwb |
82 |
LIB_DEPENDS+= amrwb.3:${PORTSDIR}/audio/libamrwb |
73 |
LIB_DEPENDS+= amrwb.3:${PORTSDIR}/audio/libamrwb |
83 |
PLIST_SUB+= PLIST_AMRWB="" |
|
|
84 |
.else |
74 |
.else |
85 |
CONFIGURE_ARGS+= --without-amr-wb |
75 |
CONFIGURE_ARGS+= --without-amrwb |
86 |
PLIST_SUB+= PLIST_AMRWB="@comment " |
|
|
87 |
.endif |
76 |
.endif |
88 |
|
77 |
|
89 |
.if defined(WITH_FFMPEG) |
78 |
.if defined(WITH_FFMPEG) |
90 |
CONFIGURE_ARGS+= --with-ffmpeg |
79 |
CONFIGURE_ARGS+= --with-ffmpeg |
91 |
LIB_DEPENDS+= avformat:${PORTSDIR}/multimedia/ffmpeg |
80 |
LIB_DEPENDS+= avformat:${PORTSDIR}/multimedia/ffmpeg |
92 |
PLIST_SUB+= PLIST_FFMPEG="" |
|
|
93 |
.else |
81 |
.else |
94 |
CONFIGURE_ARGS+= --without-ffmpeg |
82 |
CONFIGURE_ARGS+= --without-ffmpeg |
95 |
PLIST_SUB+= PLIST_FFMPEG="@comment " |
|
|
96 |
.endif |
83 |
.endif |
97 |
|
84 |
|
98 |
.if defined(WITH_VORBIS) |
85 |
.if defined(WITH_VORBIS) |
99 |
CONFIGURE_ARGS+= --with-ogg |
86 |
CONFIGURE_ARGS+= --with-oggvorbis |
100 |
LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis |
87 |
LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis |
101 |
PLIST_SUB+= PLIST_VORBIS="" |
|
|
102 |
.else |
88 |
.else |
103 |
CONFIGURE_ARGS+= --without-ogg |
89 |
CONFIGURE_ARGS+= --without-oggvorbis |
104 |
PLIST_SUB+= PLIST_VORBIS="@comment " |
|
|
105 |
.endif |
90 |
.endif |
106 |
|
91 |
|
107 |
.if defined(WITH_SNDFILE) |
92 |
.if defined(WITH_SNDFILE) |
108 |
CONFIGURE_ARGS+= --with-sndfile |
93 |
CONFIGURE_ARGS+= --with-sndfile |
109 |
LIB_DEPENDS+= sndfile.1:${PORTSDIR}/audio/libsndfile |
94 |
LIB_DEPENDS+= sndfile.1:${PORTSDIR}/audio/libsndfile |
110 |
PLIST_SUB+= PLIST_SNDFILE="" |
|
|
111 |
.else |
95 |
.else |
112 |
CONFIGURE_ARGS+= --without-sndfile |
96 |
CONFIGURE_ARGS+= --without-sndfile |
113 |
PLIST_SUB+= PLIST_SNDFILE="@comment " |
|
|
114 |
.endif |
97 |
.endif |
115 |
|
98 |
|
116 |
.if defined(WITH_LADSPA) |
99 |
.if defined(WITH_LADSPA) |
Lines 131-140
Link Here
|
131 |
.if defined(WITH_FLAC) |
114 |
.if defined(WITH_FLAC) |
132 |
CONFIGURE_ARGS+= --with-flac |
115 |
CONFIGURE_ARGS+= --with-flac |
133 |
LIB_DEPENDS+= FLAC.10:${PORTSDIR}/audio/flac |
116 |
LIB_DEPENDS+= FLAC.10:${PORTSDIR}/audio/flac |
134 |
PLIST_SUB+= PLIST_FLAC="" |
|
|
135 |
.else |
117 |
.else |
136 |
CONFIGURE_ARGS+= --without-flac |
118 |
CONFIGURE_ARGS+= --without-flac |
137 |
PLIST_SUB+= PLIST_FLAC="@comment " |
|
|
138 |
.endif |
119 |
.endif |
139 |
|
120 |
|
140 |
.if defined(WITH_MAD) |
121 |
.if defined(WITH_MAD) |
Lines 152-181
Link Here
|
152 |
.endif |
133 |
.endif |
153 |
|
134 |
|
154 |
.if defined(WITH_GSM) |
135 |
.if defined(WITH_GSM) |
155 |
CONFIGURE_ARGS+= --with-external-gsm |
136 |
CONFIGURE_ARGS+= --with-gsm |
156 |
LIB_DEPENDS+= gsm.1:${PORTSDIR}/audio/gsm |
137 |
LIB_DEPENDS+= gsm.1:${PORTSDIR}/audio/gsm |
157 |
PLIST_SUB+= PLIST_GSM="" |
|
|
158 |
.else |
138 |
.else |
159 |
CONFIGURE_ARGS+= --without-external-gsm |
139 |
CONFIGURE_ARGS+= --with-gsm |
160 |
# Above configure flag does not exist, so workaround with the below line |
140 |
# We cannot ask for gsm to be enabled without it trying to use external gsm, |
|
|
141 |
# so workaround with the below line |
161 |
CONFIGURE_ENV+= ac_cv_header_gsm_h=no |
142 |
CONFIGURE_ENV+= ac_cv_header_gsm_h=no |
162 |
PLIST_SUB+= PLIST_GSM="@comment " |
|
|
163 |
.endif |
143 |
.endif |
164 |
|
144 |
|
165 |
.if defined(WITH_SAMPLERATE) |
145 |
.if defined(WITH_ID3TAG) |
166 |
CONFIGURE_ARGS+= --with-samplerate |
146 |
CONFIGURE_ARGS+= --with-id3tag |
167 |
LIB_DEPENDS+= samplerate.1:${PORTSDIR}/audio/libsamplerate |
147 |
LIB_DEPENDS+= id3-3.8.3:${PORTSDIR}/audio/id3lib |
168 |
.else |
148 |
.else |
169 |
CONFIGURE_ARGS+= --without-samplerate |
149 |
CONFIGURE_ARGS+= --without-id3tag |
170 |
.endif |
150 |
.endif |
171 |
|
151 |
|
172 |
.if defined(WITH_WAVPACK) |
152 |
.if defined(WITH_WAVPACK) |
173 |
CONFIGURE_ARGS+= --with-wavpack |
153 |
CONFIGURE_ARGS+= --with-wavpack |
174 |
LIB_DEPENDS+= wavpack.1:${PORTSDIR}/audio/wavpack |
154 |
LIB_DEPENDS+= wavpack.1:${PORTSDIR}/audio/wavpack |
175 |
PLIST_SUB+= PLIST_WAVPACK="" |
|
|
176 |
.else |
155 |
.else |
177 |
CONFIGURE_ARGS+= --without-wavpack |
156 |
CONFIGURE_ARGS+= --without-wavpack |
178 |
PLIST_SUB+= PLIST_WAVPACK="@comment " |
|
|
179 |
.endif |
157 |
.endif |
180 |
|
158 |
|
181 |
# Tell configure that libgsm's headers are in $LOCALDIR/include |
159 |
# Tell configure that libgsm's headers are in $LOCALDIR/include |