Lines 6-13
Link Here
|
6 |
# $Id: Makefile 77 2008-07-27 21:50:37Z buhnux $ |
6 |
# $Id: Makefile 77 2008-07-27 21:50:37Z buhnux $ |
7 |
|
7 |
|
8 |
PORTNAME= ffmpeg |
8 |
PORTNAME= ffmpeg |
9 |
DISTVERSION= 2008-07-27 |
9 |
DISTVERSION= 2009-05-15 |
10 |
PORTREVISION= 10 |
|
|
11 |
CATEGORIES= multimedia audio ipv6 net |
10 |
CATEGORIES= multimedia audio ipv6 net |
12 |
MASTER_SITES= ${MASTER_SITE_LOCAL} |
11 |
MASTER_SITES= ${MASTER_SITE_LOCAL} |
13 |
MASTER_SITE_SUBDIR= ahze |
12 |
MASTER_SITE_SUBDIR= ahze |
Lines 15-20
Link Here
|
15 |
MAINTAINER= multimedia@FreeBSD.org |
14 |
MAINTAINER= multimedia@FreeBSD.org |
16 |
COMMENT= Hyper fast realtime audio/video encoder/converter, streaming server |
15 |
COMMENT= Hyper fast realtime audio/video encoder/converter, streaming server |
17 |
|
16 |
|
|
|
17 |
BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm |
18 |
|
18 |
HAS_CONFIGURE= yes |
19 |
HAS_CONFIGURE= yes |
19 |
CONFIGURE_LOG= config.err |
20 |
CONFIGURE_LOG= config.err |
20 |
USE_BZIP2= yes |
21 |
USE_BZIP2= yes |
Lines 22-50
Link Here
|
22 |
MAKE_JOBS_SAFE= yes |
23 |
MAKE_JOBS_SAFE= yes |
23 |
WANT_SDL= yes |
24 |
WANT_SDL= yes |
24 |
|
25 |
|
25 |
OPTIONS= AMR_NB "AMR narrowband encoder" off \ |
26 |
OPTIONS= AMR_NB "AMR Narrow Band encoder" off \ |
26 |
AMR_WB "AMR wideband encoder" off \ |
27 |
AMR_WB "AMR Wide Band encoder" off \ |
27 |
FAAC "FAAC mp4/aac audio encoder" off \ |
28 |
DIRAC "Dirac codec via libschroedinger" off \ |
28 |
FAAD "FAAD mp4/aac audio decoder" on \ |
29 |
FAAC "FAAC audio encoder" off \ |
29 |
GSM "gsm audio codec" off \ |
30 |
FAAD "FAAD audio decoder" off \ |
|
|
31 |
GSM "GSM audio codec" off \ |
30 |
IPV6 "IPV6 network support" on \ |
32 |
IPV6 "IPV6 network support" on \ |
31 |
LAME "lame MP3 codec" off \ |
33 |
LAME "LAME MP3 encoder" off \ |
32 |
LIBA52 "liba52 support" on \ |
34 |
OPENJPEG "JPEG 2000 decoder" off \ |
33 |
OPTIMIZED_CFLAGS "Additional optimizations" off \ |
35 |
OPTIMIZED_CFLAGS "Additional optimizations" off \ |
34 |
SDL "SDL support (build ffplay)" off \ |
36 |
SDL "SDL support (build ffplay)" off \ |
35 |
THEORA "libtheora support (implies OGG)" on \ |
37 |
SPEEX "Speex audio decoder" off \ |
36 |
VORBIS "libvorbisenc support (implies OGG)" on \ |
38 |
THEORA "Theora encoder (implies OGG)" off \ |
37 |
X264 "X.264 codec" on \ |
39 |
VORBIS "Vorbis encoder via libvorbis (implies OGG)" off \ |
38 |
XVID "XVID codec" off |
40 |
X264 "H.264 encoder" off \ |
|
|
41 |
XVID "Xvid encoder via xvidcore" off |
39 |
|
42 |
|
40 |
COMPAT_HEADERS= libavcodec/avcodec.h \ |
43 |
COMPAT_HEADERS=libavcodec/avcodec.h \ |
41 |
libavcodec/opt.h \ |
44 |
libavcodec/opt.h \ |
|
|
45 |
libavcodec/vdpau.h \ |
46 |
libavcodec/xvmc.h \ |
42 |
libavdevice/avdevice.h \ |
47 |
libavdevice/avdevice.h \ |
|
|
48 |
libavfilter/avfilter.h \ |
43 |
libavformat/avformat.h \ |
49 |
libavformat/avformat.h \ |
44 |
libavformat/avio.h \ |
50 |
libavformat/avio.h \ |
45 |
libavformat/rtsp.h \ |
51 |
libavutil/adler32.h \ |
46 |
libavformat/rtspcodes.h \ |
|
|
47 |
libavutil/adler32.h \ |
48 |
libavutil/avstring.h \ |
52 |
libavutil/avstring.h \ |
49 |
libavutil/avutil.h \ |
53 |
libavutil/avutil.h \ |
50 |
libavutil/base64.h \ |
54 |
libavutil/base64.h \ |
Lines 57-184
Link Here
|
57 |
libavutil/mathematics.h \ |
61 |
libavutil/mathematics.h \ |
58 |
libavutil/md5.h \ |
62 |
libavutil/md5.h \ |
59 |
libavutil/mem.h \ |
63 |
libavutil/mem.h \ |
60 |
libavutil/random.h \ |
64 |
libavutil/pixfmt.h \ |
61 |
libavutil/rational.h \ |
65 |
libavutil/rational.h \ |
62 |
libavutil/sha1.h \ |
66 |
libavutil/sha1.h \ |
63 |
libpostproc/postprocess.h \ |
67 |
libpostproc/postprocess.h \ |
64 |
libswscale/rgb2rgb.h \ |
|
|
65 |
libswscale/swscale.h |
68 |
libswscale/swscale.h |
66 |
|
69 |
|
67 |
.include <bsd.port.pre.mk> |
70 |
.include <bsd.port.pre.mk> |
68 |
|
71 |
|
69 |
CONFIGURE_ARGS+=--cc="${CC}" --prefix="${PREFIX}" \ |
72 |
CONFIGURE_ARGS+=--prefix="${PREFIX}" \ |
70 |
--disable-debug \ |
73 |
--mandir="${PREFIX}/man" \ |
71 |
--enable-memalign-hack \ |
|
|
72 |
--enable-shared \ |
74 |
--enable-shared \ |
|
|
75 |
--enable-gpl \ |
73 |
--enable-postproc \ |
76 |
--enable-postproc \ |
|
|
77 |
--enable-avfilter \ |
78 |
--enable-avfilter-lavf \ |
79 |
--enable-pthreads \ |
80 |
--enable-x11grab \ |
81 |
--enable-runtime-cpudetect \ |
82 |
--enable-memalign-hack \ |
83 |
--cc="${CC}" \ |
74 |
--extra-cflags="${FFMPEG_CFLAGS} -I${LOCALBASE}/include" \ |
84 |
--extra-cflags="${FFMPEG_CFLAGS} -I${LOCALBASE}/include" \ |
75 |
--extra-ldflags="-L${LOCALBASE}/lib ${FFMPEG_LDFLAGS}" \ |
85 |
--extra-ldflags="-L${LOCALBASE}/lib ${FFMPEG_LDFLAGS}" \ |
76 |
--extra-libs="${PTHREAD_LIBS}" \ |
86 |
--extra-libs="${PTHREAD_LIBS}" \ |
77 |
--enable-gpl \ |
87 |
--disable-debug |
78 |
--enable-pthreads \ |
|
|
79 |
--enable-swscale \ |
80 |
--mandir=${PREFIX}/man |
81 |
CONFIGURE_ENV+= LANG=C |
82 |
MAKE_ENV+= INSTALL="${INSTALL}" |
83 |
SHLIB_VER= 1 |
88 |
SHLIB_VER= 1 |
84 |
PLIST_SUB= SHLIB_VER=${SHLIB_VER} |
89 |
PLIST_SUB= SHLIB_VER=${SHLIB_VER} |
85 |
USE_LDCONFIG= yes |
90 |
USE_LDCONFIG= yes |
86 |
|
91 |
|
87 |
## |
92 |
DOC_FILES= Changelog COPYING.GPL COPYING.LGPL \ |
88 |
DOC_FILES= Changelog README |
93 |
CREDITS INSTALL LICENSE MAINTAINERS README |
89 |
# under subdir doc |
94 |
# under doc subdirectory |
90 |
DOC_DOCFILES= TODO faq.html ffmpeg-doc.html \ |
95 |
DOC_DOCFILES= APIchanges avutil.txt faq.html ffmpeg-doc.html \ |
91 |
ffplay-doc.html ffserver-doc.html \ |
96 |
ffmpeg_powerpc_performance_evaluation_howto.txt \ |
92 |
hooks.html optimization.txt |
97 |
ffplay-doc.html ffserver-doc.html general.html \ |
|
|
98 |
issue_tracker.txt optimization.txt \ |
99 |
rate_distortion.txt snow.txt soc.txt \ |
100 |
swscale.txt TODO viterbi.txt |
93 |
PORTDOCS= * |
101 |
PORTDOCS= * |
94 |
|
102 |
|
95 |
## sse hardware vector support |
103 |
USE_RC_SUBR= ffserver |
|
|
104 |
|
105 |
# sse hardware vector support |
96 |
.if (defined(MACHINE_CPU) && ${MACHINE_CPU:Msse} == "sse") |
106 |
.if (defined(MACHINE_CPU) && ${MACHINE_CPU:Msse} == "sse") |
97 |
WITH_BUILTIN_VECTOR= yes |
107 |
WITH_BUILTIN_VECTOR= yes |
98 |
.endif |
|
|
99 |
|
100 |
## |
101 |
## support activation |
102 |
## |
103 |
## PORTDOCS |
104 |
.ifndef(NOPORTDOCS) |
105 |
BUILD_DEPENDS+= texi2html:${PORTSDIR}/textproc/texi2html |
106 |
MAN1+= ffmpeg.1 ffserver.1 |
107 |
.endif |
108 |
|
109 |
.ifdef(WITH_OPTIMIZED_CFLAGS) |
110 |
CFLAGS:= ${CFLAGS:N-O*} -O3 -ffast-math -fno-finite-math-only -fomit-frame-pointer |
111 |
.else |
108 |
.else |
112 |
CFLAGS:= ${CFLAGS:N-O0} -O2 |
109 |
CONFIGURE_ARGS+= --disable-sse |
113 |
DEBUG_FLAGS+= -O2 |
|
|
114 |
.endif |
110 |
.endif |
115 |
|
111 |
|
116 |
## a52 |
112 |
# mmx support |
117 |
.if !defined(WITHOUT_LIBA52) && !defined(WITHOUT_A52) |
113 |
.if ${MACHINE_CPU:Mmmx} == "" |
118 |
LIB_DEPENDS+= a52.0:${PORTSDIR}/audio/liba52 |
114 |
CONFIGURE_ARGS+= --disable-mmx |
|
|
115 |
WITHOUT_BUILTIN_VECTOR= yes |
116 |
.endif |
119 |
|
117 |
|
120 |
CONFIGURE_ARGS+= --enable-liba52 \ |
118 |
# builtin vector, requires mmx |
121 |
--enable-liba52bin |
119 |
.if !defined(WITHOUT_BUILTIN_VECTOR) && defined(WITH_BUILTIN_VECTOR) |
122 |
FFMPEG_LDFLAGS+= -la52 |
120 |
FFMPEG_CFLAGS+= -msse |
123 |
.else |
|
|
124 |
CONFIGURE_ARGS+= --disable-liba52 |
125 |
.endif |
121 |
.endif |
126 |
|
122 |
|
127 |
.ifdef(WITH_FAAC) |
123 |
# PORTDOCS |
128 |
LIB_DEPENDS+= faac.0:${PORTSDIR}/audio/faac |
124 |
.ifndef(NOPORTDOCS) |
129 |
CONFIGURE_ARGS+= --enable-libfaac |
125 |
BUILD_DEPENDS+= texi2html:${PORTSDIR}/textproc/texi2html |
130 |
.else |
126 |
MAN1+= ffmpeg.1 ffserver.1 |
131 |
CONFIGURE_ARGS+= --disable-libfaac |
|
|
132 |
.endif |
127 |
.endif |
133 |
|
128 |
|
134 |
## faad |
129 |
# optimizations |
135 |
.ifndef(WITHOUT_FAAD) |
130 |
.ifdef(WITH_OPTIMIZED_CFLAGS) |
136 |
LIB_DEPENDS+= faad.2:${PORTSDIR}/audio/faad |
131 |
CFLAGS:= ${CFLAGS:N-O*} -O3 -ffast-math -fno-finite-math-only -fomit-frame-pointer |
137 |
CONFIGURE_ARGS+= --enable-libfaad \ |
|
|
138 |
--enable-libfaadbin |
139 |
.else |
132 |
.else |
140 |
CONFIGURE_ARGS+= --disable-libfaad |
133 |
CFLAGS:= ${CFLAGS:N-O0} -O2 |
|
|
134 |
DEBUG_FLAGS+= -O2 |
141 |
.endif |
135 |
.endif |
142 |
|
136 |
|
143 |
## amr |
137 |
# amr |
144 |
.ifdef(WITH_AMR_NB) |
138 |
.ifdef(WITH_AMR_NB) |
145 |
LIB_DEPENDS+= amrnb.3:${PORTSDIR}/audio/libamrnb |
139 |
LIB_DEPENDS+= amrnb.3:${PORTSDIR}/audio/libamrnb |
146 |
CONFIGURE_ARGS+= --enable-libamr-nb --enable-nonfree |
140 |
CONFIGURE_ARGS+= --enable-libamr-nb --enable-nonfree |
147 |
.else |
141 |
.else |
148 |
CONFIGURE_ARGS+= --disable-libamr-nb |
142 |
CONFIGURE_ARGS+= --disable-libamr-nb |
149 |
.endif |
143 |
.endif |
150 |
|
144 |
|
151 |
.ifdef(WITH_AMR_WB) |
145 |
.ifdef(WITH_AMR_WB) |
152 |
LIB_DEPENDS+= amrwb.3:${PORTSDIR}/audio/libamrwb |
146 |
LIB_DEPENDS+= amrwb.3:${PORTSDIR}/audio/libamrwb |
153 |
CONFIGURE_ARGS+= --enable-libamr-wb --enable-nonfree |
147 |
CONFIGURE_ARGS+= --enable-libamr-wb --enable-nonfree |
154 |
.else |
148 |
.else |
155 |
CONFIGURE_ARGS+= --disable-libamr-wb |
149 |
CONFIGURE_ARGS+= --disable-libamr-wb |
156 |
.endif |
150 |
.endif |
157 |
|
151 |
|
158 |
USE_RC_SUBR= ffserver |
152 |
# dirac |
|
|
153 |
.ifdef(WITH_DIRAC) |
154 |
LIB_DEPENDS+= schroedinger-1.0.2:${PORTSDIR}/multimedia/schroedinger |
155 |
CONFIGURE_ARGS+= --enable-libschroedinger |
156 |
.else |
157 |
CONFIGURE_ARGS+= --disable-libschroedinger |
158 |
.endif |
159 |
|
159 |
|
160 |
.if ${MACHINE_CPU:Mmmx}=="" |
160 |
# faac |
161 |
CONFIGURE_ARGS+= --disable-mmx |
161 |
.ifdef(WITH_FAAC) |
|
|
162 |
LIB_DEPENDS+= faac.0:${PORTSDIR}/audio/faac |
163 |
CONFIGURE_ARGS+= --enable-libfaac |
164 |
.else |
165 |
CONFIGURE_ARGS+= --disable-libfaac |
166 |
.endif |
162 |
|
167 |
|
163 |
WITHOUT_BUILTIN_VECTOR= yes |
168 |
# faad |
|
|
169 |
.ifdef(WITH_FAAD) |
170 |
LIB_DEPENDS+= faad.2:${PORTSDIR}/audio/faad |
171 |
CONFIGURE_ARGS+= --enable-libfaad \ |
172 |
--enable-libfaadbin |
173 |
.else |
174 |
CONFIGURE_ARGS+= --disable-libfaad |
164 |
.endif |
175 |
.endif |
165 |
## gsm |
|
|
166 |
.ifdef(WITH_GSM) |
167 |
LIB_DEPENDS+= gsm.1:${PORTSDIR}/audio/gsm |
168 |
|
176 |
|
|
|
177 |
# gsm |
178 |
.ifdef(WITH_GSM) |
179 |
LIB_DEPENDS+= gsm.1:${PORTSDIR}/audio/gsm |
169 |
CONFIGURE_ARGS+= --enable-libgsm |
180 |
CONFIGURE_ARGS+= --enable-libgsm |
170 |
.else |
181 |
.else |
171 |
CONFIGURE_ARGS+= --disable-libgsm |
182 |
CONFIGURE_ARGS+= --disable-libgsm |
172 |
.endif |
183 |
.endif |
173 |
## mp3 |
184 |
|
|
|
185 |
# ipv6 |
186 |
.ifndef(WITHOUT_IPV6) |
187 |
CONFIGURE_ARGS+= --enable-ipv6 |
188 |
.else |
189 |
CONFIGURE_ARGS+= --disable-ipv6 |
190 |
.endif |
191 |
|
192 |
# mp3 |
174 |
.ifdef(WITH_LAME) |
193 |
.ifdef(WITH_LAME) |
175 |
LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame |
194 |
LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame |
176 |
CONFIGURE_ARGS+= --enable-libmp3lame |
195 |
CONFIGURE_ARGS+= --enable-libmp3lame |
177 |
.else |
196 |
.else |
178 |
CONFIGURE_ARGS+= --disable-libmp3lame |
197 |
CONFIGURE_ARGS+= --disable-libmp3lame |
179 |
.endif |
198 |
.endif |
180 |
|
199 |
|
181 |
## SDL |
200 |
# openjpeg |
|
|
201 |
.ifdef(WITH_OPENJPEG) |
202 |
LIB_DEPENDS+= openjpeg.2:${PORTSDIR}/graphics/openjpeg |
203 |
CONFIGURE_ARGS+= --enable-libopenjpeg |
204 |
.else |
205 |
CONFIGURE_ARGS+= --disable-libopenjpeg |
206 |
.endif |
207 |
|
208 |
# sdl |
182 |
.ifdef(WITH_SDL) |
209 |
.ifdef(WITH_SDL) |
183 |
USE_SDL+= sdl |
210 |
USE_SDL+= sdl |
184 |
PLIST_FILES+= bin/ffplay |
211 |
PLIST_FILES+= bin/ffplay |
Lines 189-207
Link Here
|
189 |
CONFIGURE_ARGS+= --disable-ffplay |
216 |
CONFIGURE_ARGS+= --disable-ffplay |
190 |
.endif |
217 |
.endif |
191 |
|
218 |
|
192 |
## theora |
219 |
# speex |
193 |
.if !defined(WITHOUT_THEORA) |
220 |
.ifdef(WITH_SPEEX) |
194 |
LIB_DEPENDS+= theora.0:${PORTSDIR}/multimedia/libtheora |
221 |
LIB_DEPENDS+= speex.1:${PORTSDIR}/audio/speex |
|
|
222 |
CONFIGURE_ARGS+= --enable-libspeex |
223 |
.else |
224 |
CONFIGURE_ARGS+= --disable-libspeex |
225 |
.endif |
195 |
|
226 |
|
|
|
227 |
# theora |
228 |
.ifdef(WITH_THEORA) |
229 |
LIB_DEPENDS+= theora.0:${PORTSDIR}/multimedia/libtheora |
196 |
CONFIGURE_ARGS+= --enable-libtheora |
230 |
CONFIGURE_ARGS+= --enable-libtheora |
197 |
.else |
231 |
.else |
198 |
CONFIGURE_ARGS+= --disable-libtheora |
232 |
CONFIGURE_ARGS+= --disable-libtheora |
199 |
.endif |
233 |
.endif |
200 |
|
234 |
|
201 |
## vorbis |
235 |
# vorbis |
202 |
.if !defined(WITHOUT_VORBIS) |
236 |
.ifdef(WITH_VORBIS) |
203 |
LIB_DEPENDS+= vorbisenc.2:${PORTSDIR}/audio/libvorbis |
237 |
LIB_DEPENDS+= vorbisenc.2:${PORTSDIR}/audio/libvorbis |
204 |
|
|
|
205 |
CONFIGURE_ARGS+= --enable-libvorbis |
238 |
CONFIGURE_ARGS+= --enable-libvorbis |
206 |
FFMPEG_CFLAGS+= -I${LOCALBASE}/include/vorbis |
239 |
FFMPEG_CFLAGS+= -I${LOCALBASE}/include/vorbis |
207 |
.else |
240 |
.else |
Lines 209-229
Link Here
|
209 |
.endif |
242 |
.endif |
210 |
|
243 |
|
211 |
# x264 |
244 |
# x264 |
212 |
.ifndef(WITHOUT_X264) |
245 |
.ifdef(WITH_X264) |
213 |
LIB_DEPENDS+= x264.65:${PORTSDIR}/multimedia/x264 |
246 |
LIB_DEPENDS+= x264.65:${PORTSDIR}/multimedia/x264 |
214 |
|
|
|
215 |
CONFIGURE_ARGS+= --enable-libx264 |
247 |
CONFIGURE_ARGS+= --enable-libx264 |
216 |
.else |
248 |
.else |
217 |
CONFIGURE_ARGS+= --disable-libx264 |
249 |
CONFIGURE_ARGS+= --disable-libx264 |
218 |
.endif |
250 |
.endif |
219 |
## builtin vector, requires mmx |
|
|
220 |
.if !defined(WITHOUT_BUILTIN_VECTOR) && defined(WITH_BUILTIN_VECTOR) |
221 |
FFMPEG_CFLAGS+= -msse |
222 |
.endif |
223 |
|
251 |
|
224 |
## xvid |
252 |
# xvid |
225 |
.ifdef(WITH_XVID) |
253 |
.ifdef(WITH_XVID) |
226 |
LIB_DEPENDS+= xvidcore.4:${PORTSDIR}/multimedia/xvid |
254 |
LIB_DEPENDS+= xvidcore.4:${PORTSDIR}/multimedia/xvid |
227 |
CONFIGURE_ARGS+= --enable-libxvid |
255 |
CONFIGURE_ARGS+= --enable-libxvid |
228 |
.else |
256 |
.else |
229 |
CONFIGURE_ARGS+= --disable-libxvid |
257 |
CONFIGURE_ARGS+= --disable-libxvid |
Lines 238-279
Link Here
|
238 |
.endif |
266 |
.endif |
239 |
|
267 |
|
240 |
post-patch: |
268 |
post-patch: |
241 |
# Faad compat |
269 |
# faad compat |
242 |
@${REINPLACE_CMD} -e 's|faacD|NeAACD|' ${WRKSRC}/libavcodec/libfaad.c |
270 |
@${REINPLACE_CMD} -e 's|faacD|NeAACD|' ${WRKSRC}/libavcodec/libfaad.c |
243 |
# {C,LD}FLAGS safeness |
271 |
# {C,LD}FLAGS safeness |
244 |
# fix x264 math, use correct log base 2 from math(3) |
272 |
@${REINPLACE_CMD} -e 's|$$(LIBDIR)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \ |
245 |
.if ${OSVERSION} <= 601000 |
273 |
${WRKSRC}/subdir.mak |
246 |
@${REINPLACE_CMD} -E \ |
|
|
247 |
-e 's| log2| log|' \ |
248 |
${WRKSRC}/libavcodec/libx264.c |
249 |
.endif |
250 |
@${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \ |
251 |
${WRKSRC}/common.mak |
252 |
@${REINPLACE_CMD} -e 's|/etc/ffserver.conf|${PREFIX}/etc/ffserver.conf|' \ |
274 |
@${REINPLACE_CMD} -e 's|/etc/ffserver.conf|${PREFIX}/etc/ffserver.conf|' \ |
253 |
${WRKSRC}/ffserver.c |
275 |
${WRKSRC}/ffserver.c |
254 |
@${REINPLACE_CMD} -E \ |
276 |
@${REINPLACE_CMD} -E \ |
255 |
-e "s|(EXTRALIBS[[:space:]]*=)|\1-L${LOCALBASE}/lib |g; \ |
277 |
-e "s|(EXTRALIBS[[:space:]]*=)|\1-L${LOCALBASE}/lib |g; \ |
256 |
s|%%LOCALBASE%%|${LOCALBASE}|g; s|%%SHLIB_VER%%|${SHLIB_VER}|g; \ |
278 |
s|%%LOCALBASE%%|${LOCALBASE}|g; \ |
257 |
s|-pthread|${PTHREAD_LIBS}|g" \ |
279 |
s|-pthread|${PTHREAD_LIBS}|g" \ |
258 |
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} |
280 |
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} |
259 |
# force detection of texi2html |
281 |
@${REINPLACE_CMD} -e 's|-ldl||; s|$$(LIBMAJOR)|${SHLIB_VER}|g;' \ |
260 |
.ifndef(NOPORTDOCS) |
|
|
261 |
@${REINPLACE_CMD} -E \ |
262 |
-e 's|^(texi2html=)no|\1yes|' \ |
263 |
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} |
264 |
.endif |
265 |
@${REINPLACE_CMD} -e 's|-ldl||' \ |
266 |
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} |
267 |
.if defined(WITH_IMLIB2) && !defined(WITHOUT_IMLIB2) |
268 |
@${REINPLACE_CMD} -E \ |
269 |
-e 's|^(imlib2).*$$|\1=yes|' \ |
270 |
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} |
271 |
.endif |
272 |
.if !defined(WITHOUT_IPV6) |
273 |
@${REINPLACE_CMD} -E \ |
274 |
-e 's|^(ipv6).*$$|\1=yes|' \ |
275 |
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} |
282 |
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} |
276 |
.endif |
|
|
277 |
.ifdef(WITH_SDL) |
283 |
.ifdef(WITH_SDL) |
278 |
@${REINPLACE_CMD} -E \ |
284 |
@${REINPLACE_CMD} -E \ |
279 |
-e 's|sdl-config|${SDL_CONFIG}|g' \ |
285 |
-e 's|sdl-config|${SDL_CONFIG}|g' \ |
Lines 282-298
Link Here
|
282 |
${XARGS} -n 10 ${REINPLACE_CMD} -E \ |
288 |
${XARGS} -n 10 ${REINPLACE_CMD} -E \ |
283 |
-e 's|#include <SDL|#include <SDL/SDL|' |
289 |
-e 's|#include <SDL|#include <SDL/SDL|' |
284 |
.endif |
290 |
.endif |
285 |
.if !defined(WITHOUT_BUILTIN_VECTOR) && defined(WITH_BUILTIN_VECTOR) |
|
|
286 |
@${REINPLACE_CMD} -E \ |
287 |
-e 's|^([[:space:]]+builtin_vector).*$$|\1=yes|' \ |
288 |
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} |
289 |
.else |
290 |
@${REINPLACE_CMD} -E \ |
291 |
-e 's|^([[:space:]]+builtin_vector).*$$|\1=no|' \ |
292 |
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} |
293 |
.endif |
294 |
@${REINPLACE_CMD} -e 's|$$(LIBDIR)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \ |
295 |
${WRKSRC}/common.mak |
296 |
|
291 |
|
297 |
post-configure: |
292 |
post-configure: |
298 |
.ifdef(WITHOUT_THEORA) |
293 |
.ifdef(WITHOUT_THEORA) |