Lines 3-8
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= sox |
4 |
PORTNAME= sox |
5 |
PORTVERSION= 14.4.1 |
5 |
PORTVERSION= 14.4.1 |
|
|
6 |
PORTREVISION= 1 |
6 |
CATEGORIES= audio |
7 |
CATEGORIES= audio |
7 |
MASTER_SITES= SF |
8 |
MASTER_SITES= SF |
8 |
|
9 |
|
Lines 20-30
Link Here
|
20 |
USE_AUTOTOOLS= aclocal autoconf automake libltdl |
21 |
USE_AUTOTOOLS= aclocal autoconf automake libltdl |
21 |
|
22 |
|
22 |
OPTIONS_DEFINE= ALSA AO AMRNB AMRWB FFMPEG FLAC GSM ID3TAG LADSPA LAME \ |
23 |
OPTIONS_DEFINE= ALSA AO AMRNB AMRWB FFMPEG FLAC GSM ID3TAG LADSPA LAME \ |
23 |
MAD PNG SNDFILE VORBIS WAVPACK |
24 |
MAD PNG PULSEAUDIO SNDFILE VORBIS WAVPACK |
24 |
OPTIONS_DEFAULT= AO FFMPEG FLAC GSM ID3TAG MAD PNG SNDFILE VORBIS |
25 |
OPTIONS_DEFAULT= AO FFMPEG FLAC GSM ID3TAG MAD PNG SNDFILE VORBIS |
25 |
# Default LAME to off for packages so we don't end up RESTRICTED |
26 |
# Default LAME to off for packages so we don't end up RESTRICTED |
26 |
.if !defined(PACKAGE_BUILDING) |
27 |
.if !defined(PACKAGE_BUILDING) |
27 |
OPTIONS_DEFAULT= LAME |
28 |
OPTIONS_DEFAULT+= LAME |
28 |
.endif |
29 |
.endif |
29 |
|
30 |
|
30 |
AMRNB_DESC= AMR Speech Codec (Narrowband) |
31 |
AMRNB_DESC= AMR Speech Codec (Narrowband) |
Lines 32-135
Link Here
|
32 |
GSM_DESC= Use libgsm from ports (else use bundled lib) |
33 |
GSM_DESC= Use libgsm from ports (else use bundled lib) |
33 |
PNG_DESC= PNG spectrogram creation |
34 |
PNG_DESC= PNG spectrogram creation |
34 |
|
35 |
|
35 |
.include <bsd.port.options.mk> |
|
|
36 |
|
37 |
CPPFLAGS+= -I${LOCALBASE}/include |
36 |
CPPFLAGS+= -I${LOCALBASE}/include |
38 |
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} |
37 |
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} |
39 |
CONFIGURE_ARGS+= --with-pkgconfigdir="${PREFIX}/libdata/pkgconfig" |
38 |
CONFIGURE_ARGS+= --with-pkgconfigdir="${PREFIX}/libdata/pkgconfig" |
40 |
CONFIGURE_ARGS+= --with-distro="${CONFIGURE_TARGET} ${PKGNAME}" |
39 |
CONFIGURE_ARGS+= --with-distro="${CONFIGURE_TARGET} ${PKGNAME}" \ |
|
|
40 |
--with-gsm |
41 |
|
41 |
|
42 |
.if ${PORT_OPTIONS:MALSA} |
42 |
ALSA_CONFIGURE_WITH= alsa |
43 |
LIB_DEPENDS+= asound.2:${PORTSDIR}/audio/alsa-lib |
43 |
ALSA_LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib |
44 |
RUN_DEPENDS+= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins |
44 |
ALSA_RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins |
45 |
CONFIGURE_ARGS+= --with-alsa |
|
|
46 |
.else |
47 |
CONFIGURE_ARGS+= --without-alsa |
48 |
.endif |
49 |
|
45 |
|
50 |
.if ${PORT_OPTIONS:MAO} |
46 |
AO_CONFIGURE_WITH= ao |
51 |
CONFIGURE_ARGS+= --with-ao |
47 |
AO_LIB_DEPENDS= libao.so:${PORTSDIR}/audio/libao |
52 |
LIB_DEPENDS+= ao.4:${PORTSDIR}/audio/libao |
|
|
53 |
.else |
54 |
CONFIGURE_ARGS+= --without-ao |
55 |
.endif |
56 |
|
48 |
|
57 |
.if ${PORT_OPTIONS:MAMRNB} |
49 |
AMRNB_CONFIGURE_WITH= amrnb |
58 |
CONFIGURE_ARGS+= --with-amrnb |
50 |
AMRNB_LIB_DEPENDS= libamrnb.so:${PORTSDIR}/audio/libamrnb |
59 |
LIB_DEPENDS+= amrnb.3:${PORTSDIR}/audio/libamrnb |
|
|
60 |
.else |
61 |
CONFIGURE_ARGS+= --without-amrnb |
62 |
.endif |
63 |
|
51 |
|
64 |
.if ${PORT_OPTIONS:MAMRWB} |
52 |
AMRWB_CONFIGURE_WITH= amrwb |
65 |
CONFIGURE_ARGS+= --with-amrwb |
53 |
AMRWB_LIB_DEPENDS= libamrwb.so:${PORTSDIR}/audio/libamrwb |
66 |
LIB_DEPENDS+= amrwb.3:${PORTSDIR}/audio/libamrwb |
|
|
67 |
.else |
68 |
CONFIGURE_ARGS+= --without-amrwb |
69 |
.endif |
70 |
|
54 |
|
71 |
.if ${PORT_OPTIONS:MFFMPEG} |
55 |
FFMPEG_CONFIGURE_WITH= ffmpeg |
72 |
CONFIGURE_ARGS+= --with-ffmpeg |
56 |
FFMPEG_LIB_DEPENDS= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg |
73 |
LIB_DEPENDS+= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg |
|
|
74 |
.else |
75 |
CONFIGURE_ARGS+= --without-ffmpeg |
76 |
.endif |
77 |
|
57 |
|
78 |
.if ${PORT_OPTIONS:MVORBIS} |
58 |
VORBIS_CONFIGURE_WITH= oggvorbis |
79 |
CONFIGURE_ARGS+= --with-oggvorbis |
59 |
VORBIS_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis |
80 |
LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis |
|
|
81 |
.else |
82 |
CONFIGURE_ARGS+= --without-oggvorbis |
83 |
.endif |
84 |
|
60 |
|
85 |
.if ${PORT_OPTIONS:MSNDFILE} |
61 |
SNDFILE_CONFIGURE_WITH= sndfile |
86 |
CONFIGURE_ARGS+= --with-sndfile |
62 |
SNDFILE_LIB_DEPENDS= libsndfile.so:${PORTSDIR}/audio/libsndfile |
87 |
LIB_DEPENDS+= sndfile.1:${PORTSDIR}/audio/libsndfile |
|
|
88 |
.else |
89 |
CONFIGURE_ARGS+= --without-sndfile |
90 |
.endif |
91 |
|
63 |
|
92 |
.if ${PORT_OPTIONS:MLADSPA} |
64 |
LADSPA_CONFIGURE_WITH= ladspa |
93 |
CONFIGURE_ARGS+= --with-ladspa |
65 |
LADSPA_RUN_DEPENDS= ${LOCALBASE}/lib/ladspa/filter.so:${PORTSDIR}/audio/ladspa |
94 |
RUN_DEPENDS+= ${LOCALBASE}/lib/ladspa/filter.so:${PORTSDIR}/audio/ladspa |
66 |
LADSPA_BUILD_DEPENDS= ${LOCALBASE}/lib/ladspa/filter.so:${PORTSDIR}/audio/ladspa |
95 |
BUILD_DEPENDS+= ${LOCALBASE}/lib/ladspa/filter.so:${PORTSDIR}/audio/ladspa |
|
|
96 |
.else |
97 |
CONFIGURE_ARGS+= --without-ladspa |
98 |
.endif |
99 |
|
67 |
|
100 |
.if ${PORT_OPTIONS:MLAME} |
68 |
LAME_CONFIGURE_WITH= lame |
101 |
CONFIGURE_ARGS+= --with-lame |
69 |
LAME_LIB_DEPENDS= libmp3lame.so:${PORTSDIR}/audio/lame |
102 |
LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame |
|
|
103 |
.else |
104 |
CONFIGURE_ARGS+= --without-lame |
105 |
.endif |
106 |
|
70 |
|
107 |
.if ${PORT_OPTIONS:MFLAC} |
71 |
FLAC_CONFIGURE_WITH= flac |
108 |
CONFIGURE_ARGS+= --with-flac |
72 |
FLAC_LIB_DEPENDS= libFLAC.so:${PORTSDIR}/audio/flac |
109 |
LIB_DEPENDS+= FLAC:${PORTSDIR}/audio/flac |
|
|
110 |
.else |
111 |
CONFIGURE_ARGS+= --without-flac |
112 |
.endif |
113 |
|
73 |
|
114 |
.if ${PORT_OPTIONS:MMAD} |
74 |
MAD_CONFIGURE_WITH= mad |
115 |
CONFIGURE_ARGS+= --with-mad |
75 |
MAD_LIB_DEPENDS= libmad.so:${PORTSDIR}/audio/libmad |
116 |
LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad |
|
|
117 |
.else |
118 |
CONFIGURE_ARGS+= --without-mad |
119 |
.endif |
120 |
|
76 |
|
121 |
.if ${PORT_OPTIONS:MPNG} |
77 |
PNG_CONFIGURE_WITH= png |
122 |
CONFIGURE_ARGS+= --with-png |
78 |
PNG_LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png |
123 |
LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png |
|
|
124 |
.else |
125 |
CONFIGURE_ARGS+= --without-png |
126 |
.endif |
127 |
|
79 |
|
128 |
.if ${PORT_OPTIONS:MGSM} |
80 |
PULSEAUDIO_CONFIGURE_WITH= pulseaudio |
129 |
CONFIGURE_ARGS+= --with-gsm |
81 |
PULSEAUDIO_LIB_DEPENDS= libpulse.so:${PORTSDIR}/audio/pulseaudio |
130 |
LIB_DEPENDS+= gsm.1:${PORTSDIR}/audio/gsm |
82 |
|
131 |
.else |
83 |
GSM_LIB_DEPENDS= libgsm.so:${PORTSDIR}/audio/gsm |
132 |
CONFIGURE_ARGS+= --with-gsm |
84 |
|
|
|
85 |
ID3TAG_CONFIGURE_WITH= id3tag |
86 |
ID3TAG_LIB_DEPENDS= libid3tag.so:${PORTSDIR}/audio/libid3tag |
87 |
|
88 |
WAVPACK_CONFIGURE_WITH= wavpack |
89 |
WAVPACK_LIB_DEPENDS= libwavpack.so:${PORTSDIR}/audio/wavpack |
90 |
|
91 |
.include <bsd.port.options.mk> |
92 |
|
93 |
.if ! ${PORT_OPTIONS:MGSM} |
133 |
# We cannot ask for gsm to be enabled without it trying to use external gsm, |
94 |
# We cannot ask for gsm to be enabled without it trying to use external gsm, |
134 |
# so force the autoconf checks to fail |
95 |
# so force the autoconf checks to fail |
135 |
CONFIGURE_ENV+= ac_cv_header_gsm_h=no ac_cv_header_gsm_gsm_h=no \ |
96 |
CONFIGURE_ENV+= ac_cv_header_gsm_h=no ac_cv_header_gsm_gsm_h=no \ |
Lines 136-155
Link Here
|
136 |
ac_cv_lib_gsm_gsm_create=no |
97 |
ac_cv_lib_gsm_gsm_create=no |
137 |
.endif |
98 |
.endif |
138 |
|
99 |
|
139 |
.if ${PORT_OPTIONS:MID3TAG} |
|
|
140 |
CONFIGURE_ARGS+= --with-id3tag |
141 |
LIB_DEPENDS+= id3tag.0:${PORTSDIR}/audio/libid3tag |
142 |
.else |
143 |
CONFIGURE_ARGS+= --without-id3tag |
144 |
.endif |
145 |
|
146 |
.if ${PORT_OPTIONS:MWAVPACK} |
147 |
CONFIGURE_ARGS+= --with-wavpack |
148 |
LIB_DEPENDS+= wavpack.2:${PORTSDIR}/audio/wavpack |
149 |
.else |
150 |
CONFIGURE_ARGS+= --without-wavpack |
151 |
.endif |
152 |
|
153 |
post-patch: |
100 |
post-patch: |
154 |
@${REINPLACE_CMD} -e 's/ CODEC_ID/ AV_CODEC_ID/g' \ |
101 |
@${REINPLACE_CMD} -e 's/ CODEC_ID/ AV_CODEC_ID/g' \ |
155 |
-e 's/ CodecID/ AVCodecID/g' \ |
102 |
-e 's/ CodecID/ AVCodecID/g' \ |