View | Details | Raw Unified | Return to bug 131447 | Differences between
and this patch

Collapse All | Expand All

(-)/kirby/shared/ports/transcode/Makefile (-178 / +130 lines)
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
(-)/kirby/shared/ports/transcode/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (transcode-1.0.6.tar.bz2) = 7c3a341b0e4540e34ef50c66b0ab751d
1
MD5 (transcode-1.1.0.tar.bz2) = 5ca205e32b546402a48ea8004a7b3232
2
SHA256 (transcode-1.0.6.tar.bz2) = cb6f2a33e5fd00f2ba1dcdb13c65fa60553a4a501161fe7e05bd05511bc92eb1
2
SHA256 (transcode-1.1.0.tar.bz2) = 78c0e96462a0d73779f73049af366e56c6b05859f0ea07ba4b3e1f16d8807a27
3
SIZE (transcode-1.0.6.tar.bz2) = 1937157
3
SIZE (transcode-1.1.0.tar.bz2) = 2066731
(-)/kirby/shared/ports/transcode/files/patch-filter:filter_modfps.c (-17 lines)
Lines 1-17 Link Here
1
--- filter/filter_modfps.c.orig	Sun May  8 16:55:54 2005
2
+++ filter/filter_modfps.c	Sun May  8 16:57:01 2005
3
@@ -62,7 +62,14 @@
4
 //#define DEBUG 1
5
 
6
 // FIXME
7
+#if !defined(HAV_LRINTF)
8
+static inline long int lrint(double x)
9
+{
10
+	return (long)(rint(x));
11
+}
12
+#else
13
 extern long int lrint(double x);
14
+#endif
15
 
16
 static int show_results=0;
17
 
(-)/kirby/shared/ports/transcode/files/patch-filter_Makefile.in (-11 lines)
Lines 1-11 Link Here
1
--- filter/Makefile.in.orig	Sun May  8 16:54:37 2005
2
+++ filter/Makefile.in	Sun May  8 16:55:06 2005
3
@@ -356,7 +356,7 @@
4
 	uninstall-recursive
5
 ETAGS = etags
6
 CTAGS = ctags
7
-DIST_SUBDIRS = pp divxkey extsub yuvdenoise tomsmocomp preview \
8
+DIST_SUBDIRS = divxkey extsub yuvdenoise tomsmocomp preview \
9
 	subtitler
10
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
11
 A52_CFLAGS = @A52_CFLAGS@
(-)/kirby/shared/ports/transcode/files/patch-import-import_bktr.c (+11 lines)
Line 0 Link Here
1
--- import/import_bktr.c.orig	2008-04-14 16:20:46.000000000 -0400
2
+++ import/import_bktr.c	2009-02-01 14:50:36.000000000 -0500
3
@@ -595,7 +595,7 @@
4
 
5
     /* bktr_buffer_size was set to width * height * 4 (32 bits) */
6
     /* so width * height = bktr_buffer_size / 4                 */
7
-    tcv_convert(bktr_buffer, dest, bktr_buffer_size/4, 1,
8
+    tcv_convert(bktr_tcvhandle, bktr_buffer, dest, bktr_buffer_size/4, 1,
9
                 IMG_ARGB32, IMG_RGB24);
10
 }
11
 
(-)/kirby/shared/ports/transcode/files/patch-import:decode_dv.c (-13 lines)
Lines 1-13 Link Here
1
--- import/decode_dv.c.orig	Sun Aug  8 22:03:19 2004
2
+++ import/decode_dv.c	Sun Aug  8 22:03:43 2004
3
@@ -37,8 +37,8 @@
4
 #include "transcode.h"
5
 #include "ioaux.h"
6
 
7
-#define DV_PAL_SIZE    frame_size_625_50
8
-#define DV_NTSC_SIZE   frame_size_525_60
9
+#define DV_PAL_SIZE    (12 * 150 * 80)
10
+#define DV_NTSC_SIZE   (10 * 150 * 80)
11
 #define DV_HEADER_SIZE header_size
12
 
13
 static int verbose=TC_QUIET;
(-)/kirby/shared/ports/transcode/files/patch-import_Makefile.in (-11 / +11 lines)
Lines 1-11 Link Here
1
--- import/Makefile.in.orig	2008-08-15 00:00:00.000000000 -0400
1
--- import/Makefile.in.orig	2009-01-17 03:30:40.000000000 -0500
2
+++ import/Makefile.in	2008-08-15 00:01:38.000000000 -0400
2
+++ import/Makefile.in	2009-01-30 10:16:53.000000000 -0500
3
@@ -798,7 +798,7 @@
3
@@ -457,7 +457,7 @@
4
 @NET_STREAM_TRUE@NET_MOD = import_net.la
4
   distclean-recursive maintainer-clean-recursive
5
 BSDAV_MOD = import_bsdav.la
5
 ETAGS = etags
6
 pkgdir = $(MOD_PATH)
6
 CTAGS = ctags
7
-SUBDIRS = nuv v4l
7
-DIST_SUBDIRS = nuv v4l
8
+SUBDIRS = v4l %%NUV%% 
8
+DIST_SUBDIRS = v4l %%NUV%%
9
 pkg_LTLIBRARIES = \
9
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
10
 	import_avi.la \
10
 A52_CFLAGS = @A52_CFLAGS@
11
 	import_mpeg2.la \
11
 A52_LIBS = @A52_LIBS@
(-)/kirby/shared/ports/transcode/files/patch-import_ioaux.c (-43 lines)
Lines 1-43 Link Here
1
--- import/ioaux.c.orig	Mon Jul  4 11:09:33 2005
2
+++ import/ioaux.c	Wed Jan  3 02:44:37 2007
3
@@ -261,6 +261,25 @@
4
       /* char device could be several things, depending on system */
5
       /* *BSD DVD device? v4l? bktr? sunau? */
6
       if(S_ISCHR(fbuf.st_mode)) {
7
+# ifdef __FreeBSD__
8
+	char rpath[PATH_MAX], *prpath;
9
+
10
+	prpath = realpath(name, &rpath);
11
+	if (prpath == NULL) {
12
+		warn("realpath(%s)", name);
13
+		return TC_PROBE_PATH_ABSPATH;
14
+	}
15
+
16
+        if (strstr(rpath, "bktr") != NULL || strstr(rpath, "tuner") || \
17
+         strstr(rpath, "vbi"))
18
+          return(TC_PROBE_PATH_BKTR);
19
+        else if (strstr(rpath, "dsp") || strstr(rpath, "audio") || \
20
+         strstr(rpath, "music"))
21
+          return(TC_PROBE_PATH_OSS);
22
+        else
23
+          return(TC_PROBE_PATH_ABSPATH);
24
+# endif
25
+
26
 	  switch (major(fbuf.st_rdev)) {
27
 #ifdef SYS_BSD
28
 # ifdef __OpenBSD__
29
@@ -270,14 +289,6 @@
30
                   return(TC_PROBE_PATH_SUNAU);
31
 	      case 49: /* bktr */
32
                   return(TC_PROBE_PATH_BKTR);
33
-# endif
34
-# ifdef __FreeBSD__
35
-              case 4: /* acd */
36
-                  return(TC_PROBE_PATH_ABSPATH);
37
-              case 229: /* bktr */
38
-                  return(TC_PROBE_PATH_BKTR);
39
-              case 0: /* OSS */
40
-                  return(TC_PROBE_PATH_OSS);
41
 # endif
42
               default: /* libdvdread uses "raw" disk devices here */
43
                   return(TC_PROBE_PATH_ABSPATH);
(-)/kirby/shared/ports/transcode/files/patch-libtc-tc_functions.c (+33 lines)
Line 0 Link Here
1
--- libtc/tc_functions.c.orig	2008-08-09 17:24:38.000000000 -0400
2
+++ libtc/tc_functions.c	2009-02-01 22:13:42.000000000 -0500
3
@@ -534,6 +534,15 @@
4
         /* char device could be several things, depending on system */
5
         /* *BSD DVD device? v4l? bktr? sunau? */
6
         if(S_ISCHR(fbuf.st_mode)) {
7
+#ifdef __FreeBSD__
8
+            if (strstr(name, "bktr") || strstr(name, "tuner") || strstr(name, "wbi"))
9
+                return TC_PROBE_PATH_BKTR;
10
+            else if (strstr(name, "dsp") || strstr(name, "audio") || strstr(name, "music"))
11
+                return TC_PROBE_PATH_OSS;
12
+            else
13
+                return TC_PROBE_PATH_ABSPATH;
14
+#endif
15
+
16
             switch (major(fbuf.st_rdev)) {
17
 #ifdef OS_BSD
18
 # ifdef __OpenBSD__
19
@@ -544,14 +553,6 @@
20
                 case 49: /* bktr */
21
                     return TC_PROBE_PATH_BKTR;
22
 # endif
23
-# ifdef __FreeBSD__
24
-                case 4: /* acd */
25
-                    return TC_PROBE_PATH_ABSPATH;
26
-                case 229: /* bktr */
27
-                    return TC_PROBE_PATH_BKTR;
28
-                case 0: /* OSS */
29
-                    return TC_PROBE_PATH_OSS;
30
-# endif
31
                 default: /* libdvdread uses "raw" disk devices here */
32
                     return TC_PROBE_PATH_ABSPATH;
33
 #else
(-)/kirby/shared/ports/transcode/files/patch-libvo_yuv2rgv.c (-11 lines)
Lines 1-11 Link Here
1
--- libvo/yuv2rgb.c.orig	Sun May  8 16:57:56 2005
2
+++ libvo/yuv2rgb.c	Sun May  8 16:58:18 2005
3
@@ -72,7 +72,7 @@
4
 {
5
     yuv2rgb = NULL;
6
 #ifdef HAVE_MMX
7
-# if defined(ARCH_X86) || defined(ARCH_X86_64)
8
+# if defined(ARCH_X86)
9
     if ((yuv2rgb == NULL) && (vo_mm_accel & MM_ACCEL_X86_MMXEXT)) {
10
 	yuv2rgb = yuv2rgb_init_mmxext (bpp, mode);
11
 	if (yuv2rgb != NULL)

Return to bug 131447