Lines 55-66
Link Here
|
55 |
CONFIGURE_ARGS+=--enable-runtime-cpudetection |
55 |
CONFIGURE_ARGS+=--enable-runtime-cpudetection |
56 |
.endif |
56 |
.endif |
57 |
|
57 |
|
|
|
58 |
.if ${OSVERSION} >= 900033 |
59 |
WITH_BASE_CLANG=yes |
60 |
.endif |
61 |
|
62 |
.if defined(WITH_BASE_CLANG) |
63 |
CC= clang |
64 |
CXX= clang++ |
65 |
.else |
58 |
.if defined(WITH_OTCHAIN) |
66 |
.if defined(WITH_OTCHAIN) |
59 |
USE_GCC?= 4.6+ |
67 |
USE_GCC?= 4.6+ |
60 |
BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils |
68 |
BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils |
61 |
.else |
69 |
.else |
62 |
CONFIGURE_ARGS+=--disable-ssse3 --disable-fast-cmov |
70 |
CONFIGURE_ARGS+=--disable-ssse3 --disable-fast-cmov |
63 |
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-base_system_gcc |
71 |
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-base_system_gcc |
|
|
72 |
.if ${ARCH} == "amd64" |
73 |
BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils |
74 |
CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin |
75 |
MAKE_ENV+= COMPILER_PATH=${LOCALBASE}/bin |
76 |
.endif |
77 |
.endif |
64 |
.endif |
78 |
.endif |
65 |
|
79 |
|
66 |
.if defined(WITHOUT_IPV6) |
80 |
.if defined(WITHOUT_IPV6) |
Lines 70-106
Link Here
|
70 |
.endif |
84 |
.endif |
71 |
|
85 |
|
72 |
.if !defined(WITHOUT_LIBUNGIF) |
86 |
.if !defined(WITHOUT_LIBUNGIF) |
73 |
LIB_DEPENDS+= gif.5:${PORTSDIR}/graphics/giflib |
87 |
LIB_DEPENDS+= gif:${PORTSDIR}/graphics/giflib |
74 |
.else |
88 |
.else |
75 |
CONFIGURE_ARGS+= --disable-gif |
89 |
CONFIGURE_ARGS+= --disable-gif |
76 |
.endif |
90 |
.endif |
77 |
|
91 |
|
78 |
.if defined(WITH_OPENJPEG) |
92 |
.if defined(WITH_OPENJPEG) |
79 |
LIB_DEPENDS+= openjpeg.2:${PORTSDIR}/graphics/openjpeg |
93 |
LIB_DEPENDS+= openjpeg:${PORTSDIR}/graphics/openjpeg |
80 |
.else |
94 |
.else |
81 |
CONFIGURE_ARGS+= --disable-libopenjpeg |
95 |
CONFIGURE_ARGS+= --disable-libopenjpeg |
82 |
.endif |
96 |
.endif |
83 |
|
97 |
|
84 |
.if defined(WITH_MAD) |
98 |
.if defined(WITH_MAD) |
85 |
LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad |
99 |
LIB_DEPENDS+= mad:${PORTSDIR}/audio/libmad |
86 |
.else |
100 |
.else |
87 |
CONFIGURE_ARGS+= --disable-mad |
101 |
CONFIGURE_ARGS+= --disable-mad |
88 |
.endif |
102 |
.endif |
89 |
|
103 |
|
90 |
.if defined(WITH_LIBDV) |
104 |
.if defined(WITH_LIBDV) |
91 |
LIB_DEPENDS+= dv.4:${PORTSDIR}/multimedia/libdv |
105 |
LIB_DEPENDS+= dv:${PORTSDIR}/multimedia/libdv |
92 |
.else |
106 |
.else |
93 |
CONFIGURE_ARGS+= --disable-libdv |
107 |
CONFIGURE_ARGS+= --disable-libdv |
94 |
.endif |
108 |
.endif |
95 |
|
109 |
|
96 |
.if defined(WITH_THEORA) |
110 |
.if defined(WITH_THEORA) |
97 |
LIB_DEPENDS+= theora.0:${PORTSDIR}/multimedia/libtheora |
111 |
LIB_DEPENDS+= theora:${PORTSDIR}/multimedia/libtheora |
98 |
.else |
112 |
.else |
99 |
CONFIGURE_ARGS+= --disable-theora |
113 |
CONFIGURE_ARGS+= --disable-theora |
100 |
.endif |
114 |
.endif |
101 |
|
115 |
|
102 |
.if defined(WITH_VPX) |
116 |
.if defined(WITH_VPX) |
103 |
LIB_DEPENDS+= vpx.1:${PORTSDIR}/multimedia/libvpx |
117 |
LIB_DEPENDS+= vpx:${PORTSDIR}/multimedia/libvpx |
104 |
.else |
118 |
.else |
105 |
CONFIGURE_ARGS+= --disable-libvpx-lavc |
119 |
CONFIGURE_ARGS+= --disable-libvpx-lavc |
106 |
.endif |
120 |
.endif |
Lines 112-118
Link Here
|
112 |
.endif |
126 |
.endif |
113 |
|
127 |
|
114 |
.if !defined(WITHOUT_SPEEX) |
128 |
.if !defined(WITHOUT_SPEEX) |
115 |
LIB_DEPENDS+= speex.1:${PORTSDIR}/audio/speex |
129 |
LIB_DEPENDS+= speex:${PORTSDIR}/audio/speex |
116 |
.else |
130 |
.else |
117 |
CONFIGURE_ARGS+= --disable-speex |
131 |
CONFIGURE_ARGS+= --disable-speex |
118 |
.endif |
132 |
.endif |
Lines 125-137
Link Here
|
125 |
.endif |
139 |
.endif |
126 |
|
140 |
|
127 |
.if defined(WITH_JACK) |
141 |
.if defined(WITH_JACK) |
128 |
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack |
142 |
LIB_DEPENDS+= jack:${PORTSDIR}/audio/jack |
129 |
.else |
143 |
.else |
130 |
CONFIGURE_ARGS+= --disable-jack |
144 |
CONFIGURE_ARGS+= --disable-jack |
131 |
.endif |
145 |
.endif |
132 |
|
146 |
|
133 |
.if defined(WITH_NAS) |
147 |
.if defined(WITH_NAS) |
134 |
LIB_DEPENDS+= audio.2:${PORTSDIR}/audio/nas |
148 |
LIB_DEPENDS+= audio:${PORTSDIR}/audio/nas |
135 |
.else |
149 |
.else |
136 |
CONFIGURE_ARGS+= --disable-nas |
150 |
CONFIGURE_ARGS+= --disable-nas |
137 |
.endif |
151 |
.endif |
Lines 143-179
Link Here
|
143 |
.endif |
157 |
.endif |
144 |
|
158 |
|
145 |
.if defined(WITH_PULSE) |
159 |
.if defined(WITH_PULSE) |
146 |
LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio |
160 |
LIB_DEPENDS+= pulse:${PORTSDIR}/audio/pulseaudio |
147 |
.else |
161 |
.else |
148 |
CONFIGURE_ARGS+= --disable-pulse |
162 |
CONFIGURE_ARGS+= --disable-pulse |
149 |
.endif |
163 |
.endif |
150 |
|
164 |
|
151 |
.if defined(WITH_BLURAY) |
165 |
.if defined(WITH_BLURAY) |
152 |
LIB_DEPENDS+= bluray.2:${PORTSDIR}/multimedia/libbluray |
166 |
LIB_DEPENDS+= bluray:${PORTSDIR}/multimedia/libbluray |
153 |
.else |
167 |
.else |
154 |
CONFIGURE_ARGS+= --disable-bluray |
168 |
CONFIGURE_ARGS+= --disable-bluray |
155 |
.endif |
169 |
.endif |
156 |
|
170 |
|
157 |
.if defined(WITH_SMB) |
171 |
.if defined(WITH_SMB) |
158 |
LIB_DEPENDS+= smbclient.0:${PORTSDIR}/net/samba-libsmbclient |
172 |
LIB_DEPENDS+= smbclient:${PORTSDIR}/net/samba-libsmbclient |
159 |
.else |
173 |
.else |
160 |
CONFIGURE_ARGS+= --disable-smb |
174 |
CONFIGURE_ARGS+= --disable-smb |
161 |
.endif |
175 |
.endif |
162 |
|
176 |
|
163 |
.if defined(WITH_FRIBIDI) |
177 |
.if defined(WITH_FRIBIDI) |
164 |
LIB_DEPENDS+= fribidi.3:${PORTSDIR}/converters/fribidi |
178 |
LIB_DEPENDS+= fribidi:${PORTSDIR}/converters/fribidi |
165 |
.else |
179 |
.else |
166 |
CONFIGURE_ARGS+= --disable-fribidi |
180 |
CONFIGURE_ARGS+= --disable-fribidi |
167 |
.endif |
181 |
.endif |
168 |
|
182 |
|
169 |
.if defined(WITH_CDPARANOIA) |
183 |
.if defined(WITH_CDPARANOIA) |
170 |
LIB_DEPENDS+= cdda_paranoia.0:${PORTSDIR}/audio/cdparanoia |
184 |
LIB_DEPENDS+= cdda_paranoia:${PORTSDIR}/audio/cdparanoia |
171 |
.else |
185 |
.else |
172 |
CONFIGURE_ARGS+= --disable-cdparanoia |
186 |
CONFIGURE_ARGS+= --disable-cdparanoia |
173 |
.endif |
187 |
.endif |
174 |
|
188 |
|
175 |
.if defined(WITH_LIBCDIO) && !defined(WITH_CDPARANOIA) |
189 |
.if defined(WITH_LIBCDIO) && !defined(WITH_CDPARANOIA) |
176 |
LIB_DEPENDS+= cdio.13:${PORTSDIR}/sysutils/libcdio |
190 |
LIB_DEPENDS+= cdio:${PORTSDIR}/sysutils/libcdio |
177 |
.else |
191 |
.else |
178 |
CONFIGURE_ARGS+= --disable-libcdio |
192 |
CONFIGURE_ARGS+= --disable-libcdio |
179 |
.endif |
193 |
.endif |
Lines 185-191
Link Here
|
185 |
.endif |
199 |
.endif |
186 |
|
200 |
|
187 |
.if defined(WITH_LIBLZO) |
201 |
.if defined(WITH_LIBLZO) |
188 |
LIB_DEPENDS+= lzo2.2:${PORTSDIR}/archivers/lzo2 |
202 |
LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2 |
189 |
.else |
203 |
.else |
190 |
CONFIGURE_ARGS+= --disable-liblzo |
204 |
CONFIGURE_ARGS+= --disable-liblzo |
191 |
.endif |
205 |
.endif |
Lines 222-228
Link Here
|
222 |
.endif |
236 |
.endif |
223 |
|
237 |
|
224 |
.if defined(WITH_AMR_NB) || defined (WITH_AMR_WB) |
238 |
.if defined(WITH_AMR_NB) || defined (WITH_AMR_WB) |
225 |
LIB_DEPENDS+= opencore-amrnb.0:${PORTSDIR}/audio/opencore-amr |
239 |
LIB_DEPENDS+= opencore-amrnb:${PORTSDIR}/audio/opencore-amr |
226 |
.endif |
240 |
.endif |
227 |
|
241 |
|
228 |
.ifdef(WITHOUT_AMR_NB) |
242 |
.ifdef(WITHOUT_AMR_NB) |
Lines 234-240
Link Here
|
234 |
.endif |
248 |
.endif |
235 |
|
249 |
|
236 |
.ifdef(WITH_GSM) |
250 |
.ifdef(WITH_GSM) |
237 |
LIB_DEPENDS+= gsm.1:${PORTSDIR}/audio/gsm |
251 |
LIB_DEPENDS+= gsm:${PORTSDIR}/audio/gsm |
238 |
.else |
252 |
.else |
239 |
CONFIGURE_ARGS+= --disable-libgsm |
253 |
CONFIGURE_ARGS+= --disable-libgsm |
240 |
.endif |
254 |
.endif |
Lines 251-257
Link Here
|
251 |
.endif |
265 |
.endif |
252 |
|
266 |
|
253 |
.if defined(WITH_LIBRTMP) |
267 |
.if defined(WITH_LIBRTMP) |
254 |
LIB_DEPENDS+= rtmp.0:${PORTSDIR}/multimedia/rtmpdump |
268 |
LIB_DEPENDS+= rtmp:${PORTSDIR}/multimedia/rtmpdump |
255 |
CONFIGURE_ARGS+= --enable-librtmp |
269 |
CONFIGURE_ARGS+= --enable-librtmp |
256 |
EXTRA_LIBS+= -lrtmp |
270 |
EXTRA_LIBS+= -lrtmp |
257 |
.else |
271 |
.else |
Lines 259-265
Link Here
|
259 |
.endif |
273 |
.endif |
260 |
|
274 |
|
261 |
.if defined(WITH_MNG) |
275 |
.if defined(WITH_MNG) |
262 |
LIB_DEPENDS+= mng.1:${PORTSDIR}/graphics/libmng |
276 |
LIB_DEPENDS+= mng:${PORTSDIR}/graphics/libmng |
263 |
.else |
277 |
.else |
264 |
CONFIGURE_ARGS+= --disable-mng |
278 |
CONFIGURE_ARGS+= --disable-mng |
265 |
.endif |
279 |
.endif |