Lines 6-25
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= transcode |
8 |
PORTNAME= transcode |
9 |
PORTVERSION= 1.0.6 |
9 |
PORTVERSION= 1.1.0 |
10 |
PORTREVISION= 1 |
|
|
11 |
CATEGORIES= multimedia |
10 |
CATEGORIES= multimedia |
12 |
MASTER_SITES= http://transcode.kabewm.com/ \ |
11 |
MASTER_SITES= ${MASTER_SITE_BERLIOS} \ |
13 |
http://fromani.exit1.org/ |
12 |
http://fromani.exit1.org/ |
|
|
13 |
MASTER_SITE_SUBDIR= tcforge |
14 |
|
14 |
|
15 |
MAINTAINER= multimedia@FreeBSD.org |
15 |
MAINTAINER= multimedia@FreeBSD.org |
16 |
COMMENT= A text-console utility for video stream processing |
16 |
COMMENT= A text-console utility for video stream processing |
17 |
|
17 |
|
18 |
LIB_DEPENDS= dvdread.5:${PORTSDIR}/multimedia/libdvdread \ |
18 |
LIB_DEPENDS= mpeg2.0:${PORTSDIR}/multimedia/libmpeg2 \ |
19 |
jpeg.9:${PORTSDIR}/graphics/jpeg \ |
|
|
20 |
mpeg2.0:${PORTSDIR}/multimedia/libmpeg2 \ |
21 |
avcodec.1:${PORTSDIR}/multimedia/ffmpeg |
19 |
avcodec.1:${PORTSDIR}/multimedia/ffmpeg |
22 |
BUILD_DEPENDS= iconv:${PORTSDIR}/converters/libiconv |
|
|
23 |
|
20 |
|
24 |
USE_BZIP2= yes |
21 |
USE_BZIP2= yes |
25 |
FAKEDIR= ${WRKDIR}/fake |
22 |
FAKEDIR= ${WRKDIR}/fake |
Lines 27-275
Link Here
|
27 |
USE_GMAKE= yes |
24 |
USE_GMAKE= yes |
28 |
USE_LDCONFIG= yes |
25 |
USE_LDCONFIG= yes |
29 |
WANT_SDL= yes |
26 |
WANT_SDL= yes |
30 |
USE_GNOME= gnometarget |
27 |
WANT_GNOME= yes |
31 |
USE_AUTOTOOLS= libtool:15 |
28 |
USE_AUTOTOOLS= libtool:15 |
32 |
CONFIGURE_ENV= CPPFLAGS="-isystem /usr/include -isystem ${LOCALBASE}/include" \ |
29 |
CONFIGURE_ENV= CPPFLAGS="-isystem /usr/include -isystem ${LOCALBASE}/include" \ |
33 |
LDFLAGS="-L${LOCALBASE}/lib" \ |
30 |
LDFLAGS="-L${LOCALBASE}/lib" \ |
34 |
SDL_CONFIG="${SDL_CONFIG}" |
31 |
SDL_CONFIG="${SDL_CONFIG}" |
35 |
CONFIGURE_ARGS+= --with-libavcodec-includes=${LOCALBASE}/include/ffmpeg \ |
32 |
CONFIGURE_ARGS+= --with-libmpeg2-prefix=${LOCALBASE} \ |
36 |
--with-libavcodec-libs=${LOCALBASE}/lib \ |
33 |
--with-libavcodec-prefix=${LOCALBASE} \ |
37 |
--with-libdvdread-prefix=${LOCALBASE} \ |
34 |
--enable-oss |
38 |
--with-libiconv-prefix=${LOCALBASE} \ |
|
|
39 |
--enable-oss \ |
40 |
--enable-gtk=no |
41 |
|
35 |
|
42 |
MAN1= avifix.1 aviindex.1 avimerge.1 avisplit.1 avisync.1 tccat.1 tcdemux.1 \ |
36 |
MAN1= avifix.1 aviindex.1 avimerge.1 avisplit.1 avisync.1 tccat.1 tcdemux.1 \ |
43 |
tcprobe.1 tcscan.1 transcode.1 tcextract.1 tcdecode.1 tcmodinfo.1 \ |
37 |
tcprobe.1 tcscan.1 transcode.1 tcextract.1 tcdecode.1 tcmodinfo.1 \ |
44 |
tcpvmexportd.1 tcxmlcheck.1 |
38 |
tcpvmexportd.1 tcxmlcheck.1 transcode_export.1 transcode_filter.1 \ |
|
|
39 |
transcode_import.1 tcexport.1 tcmodchain.1 |
40 |
|
41 |
OPTIONS= OPTIMIZED_CFLAGS "Build with optimizations" off \ |
42 |
X11 "Build with X11 support" off \ |
43 |
BKTR "Enable bktr support" off \ |
44 |
POSTPROC "Enable libpostproc support" off \ |
45 |
FREETYPE "Enable FreeType2 support" off \ |
46 |
LAME "Enable lame support" on \ |
47 |
XVID "Enable Xvid support" off \ |
48 |
X264 "Enable x264 support" off \ |
49 |
OGG "Enable ogg support" off \ |
50 |
VORBIS "Enable vorbis support" off \ |
51 |
THEORA "Enable theora support" off \ |
52 |
DVDREAD "Enable libdvdread support" on \ |
53 |
LIBDV "Enable libdv support" off \ |
54 |
QUICKTIME "Enable libquicktime support" off \ |
55 |
LZO "Enable LZO support" off \ |
56 |
LIBA52 "Enable a52 support (as default decoder)" off \ |
57 |
FAAC "Enable faac support" off \ |
58 |
XML "Enable libxml2 support" off \ |
59 |
MJPEG "Enable mjpegtools support" off \ |
60 |
SDL "Enable SDL support" off \ |
61 |
IMAGEMAGICK "Enable ImageMagick support" off \ |
62 |
JPEG "Enable libjpeg support" on \ |
63 |
ICONV "Enable libiconv support" on |
45 |
|
64 |
|
46 |
.include <bsd.port.pre.mk> |
65 |
.include <bsd.port.pre.mk> |
47 |
|
66 |
|
48 |
.if ${OSVERSION} < 700000 |
67 |
.if ${OSVERSION} < 700000 |
49 |
CONFIGURE_ENV+= LIBAVCODEC_EXTRA_LIBS="-pthread" |
68 |
CONFIGURE_ENV+= LIBAVCODEC_EXTRA_LIBS="-pthread" |
50 |
.endif |
69 |
.endif |
51 |
|
70 |
|
52 |
.if (defined(WITH_FREETYPE) || exists(${LOCALBASE}/lib/libfreetype.so)) && !defined(WITHOUT_FREETYPE) |
71 |
.if !defined(WITHOUT_X11) |
53 |
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2 |
72 |
USE_XORG= xv xaw xpm |
54 |
CONFIGURE_ARGS+= --with-ft-prefix=${LOCALBASE} --enable-freetype2 |
73 |
CONFIGURE_ARGS+= --with-x |
55 |
.else |
74 |
.else |
56 |
CONFIGURE_ARGS+= --disable-fttest --enable-freetype=no |
75 |
CONFIGURE_ARGS+= --without-x |
57 |
.endif |
76 |
.endif |
58 |
|
77 |
|
59 |
.if (defined(WITH_OGG) || exists(${LOCALBASE}/lib/libogg.so)) && !defined(WITHOUT_OGG) |
78 |
.if defined(WITH_BKTR) |
60 |
LIB_DEPENDS+= ogg.5:${PORTSDIR}/audio/libogg |
79 |
CONFIGURE_ARGS+= --enable-bktr |
61 |
CONFIGURE_ARGS+= --with-ogg-prefix=${LOCALBASE} --enable-ogg |
80 |
.endif |
|
|
81 |
|
82 |
.if !defined(WITHOUT_POSTPROC) |
83 |
CONFIGURE_ARGS+= --with-libpostproc-prefix=${LOCALBASE} --enable-libpostproc |
62 |
.else |
84 |
.else |
63 |
CONFIGURE_ARGS+= --enable-ogg=no |
85 |
CONFIGURE_ARGS+= --disable-libpostproc |
64 |
.endif |
86 |
.endif |
65 |
|
87 |
|
66 |
.if defined(WITH_BKTR) |
88 |
.if defined(WITH_FREETYPE) |
67 |
CONFIGURE_ARGS+= --enable-bktr |
89 |
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2 |
|
|
90 |
CONFIGURE_ARGS+= --with-freetype2-prefix=${LOCALBASE} --enable-freetype2 |
91 |
.else |
92 |
CONFIGURE_ARGS+= --disable-freetype2 |
68 |
.endif |
93 |
.endif |
69 |
|
94 |
|
70 |
.if (defined(WITH_VORBIS) || exists(${LOCALBASE}/lib/libvorbis.so)) && !defined(WITHOUT_VORBIS) |
95 |
.if !defined(WITHOUT_LAME) |
71 |
LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis |
96 |
LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame |
72 |
CONFIGURE_ARGS+= --with-vorbis-prefix=${LOCALBASE} --enable-vorbis |
97 |
CONFIGURE_ARGS+= --with-lame-prefix=${LOCALBASE} --enable-lame |
73 |
.else |
98 |
.else |
74 |
CONFIGURE_ARGS+= --enable-vorbis=no |
99 |
CONFIGURE_ARGS+= --disable-lame |
75 |
.endif |
100 |
.endif |
76 |
|
101 |
|
77 |
.if (defined(WITH_THEORA) || exists(${LOCALBASE}/lib/libtheora.so)) && !defined(WITHOUT_THEORA) |
102 |
.if defined(WITH_XVID) |
78 |
LIB_DEPENDS+= theora.0:${PORTSDIR}/multimedia/libtheora |
103 |
LIB_DEPENDS+= xvidcore.4:${PORTSDIR}/multimedia/xvid |
79 |
CONFIGURE_ARGS+= --with-theora-prefix=${LOCALBASE} --enable-theora |
104 |
RUN_DEPENDS+= xvid4conf:${PORTSDIR}/multimedia/xvid4conf |
|
|
105 |
CONFIGURE_ARGS+= --with-xvid-prefix=${LOCALBASE} --enable-xvid |
80 |
.else |
106 |
.else |
81 |
CONFIGURE_ARGS+= --enable-theora=no |
107 |
CONFIGURE_ARGS+= --disable-xvid |
82 |
.endif |
108 |
.endif |
83 |
|
109 |
|
84 |
.if (defined(WITH_IMAGEMAGICK) || exists(${LOCALBASE}/lib/libMagickWand.so)) && !defined(WITHOUT_IMAGEMAGICK) |
110 |
.if defined(WITH_X264) |
85 |
LIB_DEPENDS+= MagickWand.1:${PORTSDIR}/graphics/ImageMagick |
111 |
LIB_DEPENDS+= x264.50:${PORTSDIR}/multimedia/x264 |
86 |
CONFIGURE_ARGS+= --enable-imagemagick --with-imagemagick-prefix=${LOCALBASE} |
112 |
CONFIGURE_ARGS+= --with-x264-prefix=${LOCALBASE} --enable-x264 |
87 |
.else |
113 |
.else |
88 |
CONFIGURE_ARGS+= --enable-imagemagick=no |
114 |
CONFIGURE_ARGS+= --disable-x264 |
89 |
.endif |
115 |
.endif |
90 |
|
116 |
|
91 |
.if (defined(WITH_MJPEG) || exists(${LOCALBASE}/lib/liblavjpeg.so)) && !defined(WITHOUT_MJPEG) |
117 |
.if defined(WITH_OGG) |
92 |
LIB_DEPENDS+= lavjpeg-1.9.1:${PORTSDIR}/multimedia/mjpegtools |
118 |
LIB_DEPENDS+= ogg.5:${PORTSDIR}/audio/libogg |
93 |
CONFIGURE_ARGS+= --enable-mjpegtools |
119 |
CONFIGURE_ARGS+= --with-ogg-prefix=${LOCALBASE} --enable-ogg |
94 |
.else |
120 |
.else |
95 |
CONFIGURE_ARGS+= --enable-mjpegtools=no |
121 |
CONFIGURE_ARGS+= --disable-ogg |
96 |
.endif |
122 |
.endif |
97 |
|
123 |
|
98 |
.if (defined(WITH_AVIFILE) || exists(${LOCALBASE}/lib/libaviplay.so)) && !defined(WITHOUT_AVIFILE) && ${OSVERSION} < 700000 |
124 |
.if defined(WITH_VORBIS) |
99 |
LIB_DEPENDS+= aviplay:${PORTSDIR}/multimedia/avifile |
125 |
LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis |
100 |
CONFIGURE_ARGS+= --with-avifile-prefix=${LOCALBASE} --enable-avifile |
126 |
CONFIGURE_ARGS+= --with-vorbis-prefix=${LOCALBASE} --enable-vorbis |
101 |
.else |
127 |
.else |
102 |
CONFIGURE_ARGS+= --enable-avifile=no |
128 |
CONFIGURE_ARGS+= --disable-vorbis |
103 |
.endif |
129 |
.endif |
104 |
|
130 |
|
105 |
.if defined(WITH_SDL) || ${HAVE_SDL:Msdl}!="" |
131 |
.if defined(WITH_THEORA) |
106 |
USE_SDL+= sdl |
132 |
LIB_DEPENDS+= theora.0:${PORTSDIR}/multimedia/libtheora |
107 |
WITH_LIBDV= yes |
133 |
CONFIGURE_ARGS+= --with-theora-prefix=${LOCALBASE} --enable-theora |
108 |
CONFIGURE_ARGS+= --enable-sdl --with-sdl-prefix=${LOCALBASE} |
|
|
109 |
.else |
134 |
.else |
110 |
CONFIGURE_ARGS+= --enable-sdl=no |
135 |
CONFIGURE_ARGS+= --disable-theora |
111 |
.endif |
136 |
.endif |
112 |
|
137 |
|
113 |
.if !defined(WITHOUT_XML) || ${HAVE_GNOME:Mlibxml2}!="" |
138 |
.if !defined(WITHOUT_DVDREAD) |
114 |
USE_GNOME+= libxml2 |
139 |
LIB_DEPENDS+= dvdread.5:${PORTSDIR}/multimedia/libdvdread |
115 |
CONFIGURE_ARGS+= --enable-libxml2 --with-libxml2-prefix=${LOCALBASE} |
140 |
CONFIGURE_ARGS+= --with-libdvdread-prefix=${LOCALBASE} --enable-libdvdread |
116 |
.else |
141 |
.else |
117 |
CONFIGURE_ARGS+= --enable-libxml2=no |
142 |
CONFIGURE_ARGS+= --disable-libdvdread |
118 |
.endif |
143 |
.endif |
119 |
|
144 |
|
120 |
.if (defined(WITH_LIBDV) || exists(${LOCALBASE}/lib/libdv.so)) && !defined(WITHOUT_LIBDV) |
145 |
.if defined(WITH_LIBDV) |
121 |
LIB_DEPENDS+= dv.4:${PORTSDIR}/multimedia/libdv |
146 |
LIB_DEPENDS+= dv.4:${PORTSDIR}/multimedia/libdv |
122 |
CONFIGURE_ARGS+= --with-pal-yuv=YV12 --enable-libdv |
147 |
CONFIGURE_ARGS+= --with-pal-yuv=YV12 --with-libdv-prefix=${LOCALBASE} --enable-libdv |
123 |
.else |
148 |
.else |
124 |
CONFIGURE_ARGS+= --enable-libdv=no |
149 |
CONFIGURE_ARGS+= --disable-libdv |
125 |
.endif |
150 |
.endif |
126 |
|
151 |
|
127 |
.if (defined(WITH_QUICKTIME) || exists(${LOCALBASE}/lib/libquicktime.so)) && !defined(WITHOUT_QUICKTIME) |
152 |
.if defined(WITH_QUICKTIME) |
128 |
LIB_DEPENDS+= quicktime.0:${PORTSDIR}/multimedia/libquicktime |
153 |
LIB_DEPENDS+= quicktime.0:${PORTSDIR}/multimedia/libquicktime |
129 |
CONFIGURE_ARGS+= --enable-libquicktime \ |
154 |
CONFIGURE_ARGS+= --with-libquicktime-prefix=${LOCALBASE} --enable-libquicktime |
130 |
--with-libquicktime-prefix=${LOCALBASE} \ |
|
|
131 |
--with-libquicktime-includes=${LOCALBASE}/include/lqt |
132 |
.else |
155 |
.else |
133 |
CONFIGURE_ARGS+= --enable-libquicktime=no |
156 |
CONFIGURE_ARGS+= --disable-libquicktime |
134 |
.endif |
157 |
.endif |
135 |
|
158 |
|
136 |
.if defined(WITH_FAME) # Disable.. meh # || (exists(${LOCALBASE}/lib/libfame.so) && !defined(WITHOUT_FAME)) |
159 |
.if defined(WITH_LZO) |
137 |
LIB_DEPENDS+= fame-0.9:${PORTSDIR}/multimedia/libfame |
160 |
LIB_DEPENDS+= lzo2.2:${PORTSDIR}/archivers/lzo2 |
138 |
CONFIGURE_ARGS+= --with-libfame-prefix=${LOCALBASE} --enable-libfame |
161 |
CONFIGURE_ARGS+= --enable-lzo --with-lzo-prefix=${LOCALBASE} \ |
|
|
162 |
--with-lzo-includes=${LOCALBASE} |
163 |
.else |
164 |
CONFIGURE_ARGS+= --disable-lzo |
139 |
.endif |
165 |
.endif |
140 |
|
166 |
|
141 |
.if defined(WITH_XVID) || (exists(${LOCALBASE}/lib/libxvidcore.so) && !defined(WITHOUT_XVID)) |
167 |
.if defined(WITH_LIBA52) |
142 |
LIB_DEPENDS+= xvidcore.4:${PORTSDIR}/multimedia/xvid |
168 |
LIB_DEPENDS+= a52.0:${PORTSDIR}/audio/liba52 |
143 |
RUN_DEPENDS+= xvid4conf:${PORTSDIR}/multimedia/xvid4conf |
169 |
CONFIGURE_ARGS+= --with-a52-prefix=${LOCALBASE} --enable-a52 |
|
|
170 |
.else |
171 |
CONFIGURE_ARGS+= --disable-a52 |
144 |
.endif |
172 |
.endif |
145 |
|
173 |
|
146 |
.if defined(WITH_LIBA52_DEFAULT) || (exists(${LOCALBASE}/lib/liba52.so) && !defined(WITHOUT_LIBA52)) |
174 |
.if defined(WITH_FAAC) |
147 |
WITH_LIBA52= yes |
175 |
LIB_DEPENDS+= faac.0:${PORTSDIR}/audio/faac |
148 |
CONFIGURE_ARGS+= --enable-a52-default-decoder |
176 |
CONFIGURE_ARGS+= --with-faac-prefix=${LOCALBASE} --enable-faac |
|
|
177 |
.else |
178 |
CONFIGURE_ARGS+= --disable-faac |
149 |
.endif |
179 |
.endif |
150 |
|
180 |
|
151 |
.if defined(WITH_LIBA52) |
181 |
.if !defined(WITHOUT_XML) && (defined(WITH_XML) || ${HAVE_GNOME:Mlibxml2}!="") |
152 |
LIB_DEPENDS+= a52.0:${PORTSDIR}/audio/liba52 |
182 |
USE_GNOME+= libxml2 |
153 |
CONFIGURE_ARGS+= --enable-a52 |
183 |
CONFIGURE_ARGS+= --with-libxml2-prefix=${LOCALBASE} --enable-libxml2 |
154 |
.else |
184 |
.else |
155 |
CONFIGURE_ARGS+= --with-a52=no |
185 |
CONFIGURE_ARGS+= --disable-libxml2 |
156 |
.endif |
186 |
.endif |
157 |
|
187 |
|
158 |
.if defined(WITH_LAME) || (exists(${LOCALBASE}/lib/libmp3lame.so) && !defined(WITHOUT_LAME)) |
188 |
.if defined(WITH_MJPEG) |
159 |
LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame |
189 |
LIB_DEPENDS+= lavjpeg-1.9.1:${PORTSDIR}/multimedia/mjpegtools |
160 |
CONFIGURE_ARGS+= --with-lame-prefix=${LOCALBASE} |
190 |
CONFIGURE_ARGS+= --with-mjpegtools-prefix=${LOCALBASE} --enable-mjpegtools |
161 |
.else |
191 |
.else |
162 |
CONFIGURE_ARGS+= --disable-lame |
192 |
CONFIGURE_ARGS+= --disable-mjpegtools |
163 |
.endif |
193 |
.endif |
164 |
|
194 |
|
165 |
.if defined(WITH_LZO) || (exists(${LOCALBASE}/lib/liblzo2.so) && !defined(WITHOUT_LZO)) |
195 |
.if !defined(WITHOUT_SDL) && (defined(WITH_SDL) || ${HAVE_SDL:Msdl}!="") |
166 |
LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2 |
196 |
USE_SDL+= sdl |
167 |
CONFIGURE_ARGS+= --enable-lzo --with-lzo-prefix=${LOCALBASE} \ |
197 |
CONFIGURE_ARGS+= --with-sdl-prefix=${LOCALBASE} --enable-sdl |
168 |
--with-lzo-includes=${LOCALBASE} |
|
|
169 |
.else |
198 |
.else |
170 |
CONFIGURE_ARGS+= --enable-lzo=no |
199 |
CONFIGURE_ARGS+= --disable-sdl |
171 |
.endif |
200 |
.endif |
172 |
|
201 |
|
173 |
.if (defined(WITH_DIVX5) && ${ARCH}=="i386") || (exists(${LINUXBASE}/usr/lib/libdivxdecore.so) && !defined(WITHOUT_DIVX5)) |
202 |
.if defined(WITH_IMAGEMAGICK) |
174 |
BUILD_DEPENDS+= ${LINUXBASE}/usr/lib/libdivxdecore.so:${PORTSDIR}/multimedia/linux-divx4linux |
203 |
LIB_DEPENDS+= MagickWand.1:${PORTSDIR}/graphics/ImageMagick |
175 |
CFLAGS+= -I${LINUXBASE}/usr/include/divx |
204 |
CONFIGURE_ARGS+= --with-imagemagick-prefix=${LOCALBASE} --enable-imagemagick |
176 |
.else |
205 |
.else |
|
|
206 |
CONFIGURE_ARGS+= --disable-imagemagick |
177 |
.endif |
207 |
.endif |
178 |
|
208 |
|
179 |
pre-everything:: |
209 |
.if !defined(WITHOUT_JPEG) |
180 |
.if !defined(WITH_OPTIMIZED_CFLAGS) |
210 |
LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg |
181 |
@${ECHO_MSG} |
211 |
CONFIGURE_ARGS+= --with-libjpeg-prefix=${LOCALBASE} --enable-libjpeg |
182 |
@${ECHO_MSG} "You can enable extra optimizations by defining WITH_OPTIMIZED_CFLAGS." |
212 |
.else |
|
|
213 |
CONFIGURE_ARGS+= --disable-libjpeg |
183 |
.endif |
214 |
.endif |
184 |
.if !defined(WITH_FREETYPE) |
215 |
|
185 |
@${ECHO_MSG} |
216 |
.if !defined(WITHOUT_ICONV) |
186 |
@${ECHO_MSG} "You can enable text/subtitler modules by defining WITH_FREETYPE." |
217 |
USE_ICONV= yes |
187 |
.endif |
218 |
CONFIGURE_ARGS+= --with-iconv-prefix=${LOCALBASE} --enable-iconv |
188 |
.if !defined(WITH_OGG) |
219 |
.else |
189 |
@${ECHO_MSG} |
220 |
CONFIGURE_ARGS+= --disable-iconv |
190 |
@${ECHO_MSG} "You can enable libogg support by defining WITH_OGG." |
|
|
191 |
.endif |
192 |
.if !defined(WITH_VORBIS) |
193 |
@${ECHO_MSG} |
194 |
@${ECHO_MSG} "You can enable libvorbis support by defining WITH_VORBIS." |
195 |
.endif |
196 |
.if !defined(WITH_THEORA) |
197 |
@${ECHO_MSG} |
198 |
@${ECHO_MSG} "You can enable libtheora support by defining WITH_THEORA." |
199 |
.endif |
200 |
.if !defined(WITH_MJPEG) |
201 |
@${ECHO_MSG} |
202 |
@${ECHO_MSG} "You can enable MJPEG portions by defining WITH_JPEGMMX." |
203 |
.endif |
204 |
.if !defined(WITH_IMAGEMAGICK) |
205 |
@${ECHO_MSG} |
206 |
@${ECHO_MSG} "You can enable ImageMagick-dependent modules by defining WITH_IMAGEMAGICK." |
207 |
.endif |
208 |
.if !defined(WITH_SDL) |
209 |
@${ECHO_MSG} |
210 |
@${ECHO_MSG} "You can enable realtime-previewing by defining WITH_SDL." |
211 |
@${ECHO_MSG} "This implies WITH_LIBDV." |
212 |
.endif |
213 |
.if !defined(WITH_XML) |
214 |
@${ECHO_MSG} |
215 |
@${ECHO_MSG} "You can enable libxml2-dependent modules by defining WITH_XML." |
216 |
.endif |
217 |
.if !defined(WITH_LAME) |
218 |
@${ECHO_MSG} |
219 |
@${ECHO_MSG} "You can enable lame-dependent modules by defining WITH_LAME." |
220 |
@${ECHO_MSG} "You will probably want to enable this, if you plan to" |
221 |
@${ECHO_MSG} "rip DVDs or dub videos." |
222 |
.endif |
223 |
.if !defined(WITH_LIBDV) |
224 |
@${ECHO_MSG} |
225 |
@${ECHO_MSG} "You can enable libdv-support by defining WITH_LIBDV." |
226 |
@${ECHO_MSG} "You will probably want to enable this, if you plan to" |
227 |
@${ECHO_MSG} "transcode DV data from a digital videocamera." |
228 |
.endif |
229 |
.if !defined(WITH_LIBA52) |
230 |
@${ECHO_MSG} |
231 |
@${ECHO_MSG} "You can enable liba52-support by defining WITH_LIBA52." |
232 |
@${ECHO_MSG} "You will probably want to enable this, if you plan to" |
233 |
@${ECHO_MSG} "rip DVDs." |
234 |
.endif |
235 |
.if !defined(WITH_LIBA52_DEFAULT) |
236 |
@${ECHO_MSG} |
237 |
@${ECHO_MSG} "You can use liba52 as default audio encoder by defining WITH_LIBA52_DEFAULT." |
238 |
@${ECHO_MSG} "This implies WITH_LIBA52." |
239 |
.endif |
240 |
.if !defined(WITH_AVIFILE) |
241 |
@${ECHO_MSG} |
242 |
@${ECHO_MSG} "You can enable avifile-dependent modules by defining WITH_AVIFILE." |
243 |
.endif #WITH_AVIFILE |
244 |
.if !defined(WITH_QUICKTIME) |
245 |
@${ECHO_MSG} |
246 |
@${ECHO_MSG} "You can enable quicktime-dependent modules by defining WITH_QUICKTIME." |
247 |
.endif |
248 |
.if !defined(WITH_FAME) |
249 |
@${ECHO_MSG} |
250 |
@${ECHO_MSG} "You can enable libfame-support by defining WITH_FAME." |
251 |
.endif |
252 |
.if !defined(WITH_XVID) |
253 |
@${ECHO_MSG} |
254 |
@${ECHO_MSG} "You can enable xvid support by defining WITH_XVID." |
255 |
@${ECHO_MSG} "You will probably want to enable this, if you plan to" |
256 |
@${ECHO_MSG} "rip DVDs." |
257 |
.endif |
258 |
.if !defined(WITH_LZO) |
259 |
@${ECHO_MSG} |
260 |
@${ECHO_MSG} "You can enable liblzo support by defining WITH_LZO." |
261 |
.endif |
262 |
.if !defined(WITH_DIVX5) && ${ARCH}=="i386" |
263 |
@${ECHO_MSG} |
264 |
@${ECHO_MSG} "You can enable experimental DivX 5 support by defining WITH_DIVX5." |
265 |
.endif |
266 |
.if !defined(WITH_BKTR) |
267 |
@${ECHO_MSG} |
268 |
@${ECHO_MSG} "You can enable support for bktr(4) devices by defining WITH_BKTR." |
269 |
.endif |
221 |
.endif |
270 |
|
222 |
|
271 |
post-patch: |
223 |
post-patch: |
272 |
.if defined(WITH_LZO) || (exists(${LOCALBASE}/lib/liblzo2.so) && !defined(WITHOUT_LZO)) |
224 |
.if defined(WITH_LZO) && !defined(WITHOUT_LZO) |
273 |
@${REINPLACE_CMD} -e 's|%%NUV%%|nuv|' ${WRKSRC}/import/Makefile.in |
225 |
@${REINPLACE_CMD} -e 's|%%NUV%%|nuv|' ${WRKSRC}/import/Makefile.in |
274 |
.else |
226 |
.else |
275 |
@${REINPLACE_CMD} -e 's|%%NUV%%||' ${WRKSRC}/import/Makefile.in |
227 |
@${REINPLACE_CMD} -e 's|%%NUV%%||' ${WRKSRC}/import/Makefile.in |