Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jun 2009 02:57:51 GMT
From:      Steve Wills <steve@mouf.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/135238: [patch] OPTIONS support in multimedia/transcode
Message-ID:  <200906040257.n542vpsT061438@www.freebsd.org>
Resent-Message-ID: <200906040300.n5430Bnd032187@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         135238
>Category:       ports
>Synopsis:       [patch] OPTIONS support in multimedia/transcode
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 04 03:00:11 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Steve Wills
>Release:        7.2 amd64
>Organization:
>Environment:
FreeBSD meatwad.mouf.net 7.2-RELEASE FreeBSD 7.2-RELEASE #5: Fri May 22 22:05:24 EDT 2009     root@meatwad.mouf.net:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
add options support to multimedia/transcode and a few other fixes
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

===> Generating patch
===> Viewing diff with more
diff -ruN --exclude=CVS /usr/ports/multimedia/transcode.orig/Makefile /usr/ports/multimedia/transcode/Makefile
--- /usr/ports/multimedia/transcode.orig/Makefile	2009-06-01 21:56:49.000000000 -0400
+++ /usr/ports/multimedia/transcode/Makefile	2009-06-03 22:19:34.000000000 -0400
@@ -7,10 +7,12 @@
 
 PORTNAME=	transcode
 PORTVERSION=	1.0.6
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	multimedia
-MASTER_SITES=	http://transcode.kabewm.com/ \
+MASTER_SITES=	${MASTER_SITE_BERLIOS}:berlios \
+		http://transcode.kabewm.com/ \
 		http://fromani.exit1.org/
+MASTER_SITE_SUBDIR=	tcforge:berlios
 
 MAINTAINER=	multimedia@FreeBSD.org
 COMMENT=	A text-console utility for video stream processing
@@ -19,7 +21,6 @@
 		jpeg.9:${PORTSDIR}/graphics/jpeg \
 		mpeg2.0:${PORTSDIR}/multimedia/libmpeg2 \
 		avcodec.1:${PORTSDIR}/multimedia/ffmpeg
-BUILD_DEPENDS=	iconv:${PORTSDIR}/converters/libiconv
 
 USE_BZIP2=	yes
 FAKEDIR=	${WRKDIR}/fake
@@ -43,12 +44,49 @@
 	tcprobe.1 tcscan.1 transcode.1 tcextract.1 tcdecode.1 tcmodinfo.1 \
 	tcpvmexportd.1 tcxmlcheck.1
 
+OPTIONS=	OPTIMIZED_CFLAGS "Extra Optimizations" Off \
+		ICONV "Enable libiconv support" On \
+		X11 "X11 support" On \
+		FREETYPE "Text/Subtitler Modules" On \
+		OGG "libogg support" On \
+		VORBIS "libvorbis support" On \
+		THEORA "libtheora support" On \
+		MJPEG "MJPEG portions" On \
+		IMAGEMAGICK "ImageMagick-dependent modules" On \
+		LIBDV "libdv support" On \
+		SDL "realtime-previewing (implies LIBDV)" Off \
+		XML "libxml2-dependent modules" On \
+		LAME "lame-dependent modules (good for DVDs)" On \
+		LIBA52 "liba52 support" Off \
+		LIBA52_DEFAULT "liba52 as default audio encoder" Off \
+		AVIFILE "avifile-dependent modules (pre 7.x only)" On \
+		QUICKTIME "quicktime-dependent modules" On \
+		FAME "libfame support" Off \
+		XVID "xvid support (good for DVDs)" Off \
+		LZO "liblzo support" On \
+		BKTR "support for bktr(4) devices" Off \
+		DIVX5 "experimental DivX5 support (i386 only)" Off
+
 .include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
 .if	${OSVERSION} < 700000
 CONFIGURE_ENV+=	LIBAVCODEC_EXTRA_LIBS="-pthread"
 .endif
 
+.if !defined(WITHOUT_X11)
+USE_XORG=	xv xaw xpm
+CONFIGURE_ARGS+=	--with-x
+.else
+CONFIGURE_ARGS+=	--without-x
+.endif
+
+.if !defined(WITHOUT_ICONV)
+USE_ICONV=		yes
+CONFIGURE_ARGS+=	--with-iconv-prefix=${LOCALBASE} --enable-iconv
+.else
+CONFIGURE_ARGS+=	--disable-iconv
+
 .if (defined(WITH_FREETYPE) || exists(${LOCALBASE}/lib/libfreetype.so)) && !defined(WITHOUT_FREETYPE)
 LIB_DEPENDS+=	freetype.9:${PORTSDIR}/print/freetype2
 CONFIGURE_ARGS+=	--with-ft-prefix=${LOCALBASE} --enable-freetype2
@@ -66,6 +104,9 @@
 .if defined(WITH_BKTR)
 CONFIGURE_ARGS+=	--enable-bktr
 .endif
+.else
+CONFIGURE_ARGS+=	--enable-bktr=no
+.endif
 
 .if (defined(WITH_VORBIS) || exists(${LOCALBASE}/lib/libvorbis.so)) && !defined(WITHOUT_VORBIS)
 LIB_DEPENDS+=	vorbis.4:${PORTSDIR}/audio/libvorbis
@@ -141,6 +182,9 @@
 .if defined(WITH_XVID) || (exists(${LOCALBASE}/lib/libxvidcore.so) && !defined(WITHOUT_XVID))
 LIB_DEPENDS+=	xvidcore.4:${PORTSDIR}/multimedia/xvid
 RUN_DEPENDS+=	xvid4conf:${PORTSDIR}/multimedia/xvid4conf
+CONFIGURE_ARGS+=	--with-xvid-prefix=${LOCALBASE} --enable-xvid
+.else
+CONFIGURE_ARGS+=	--enable-xvid=no
 .endif
 
 .if defined(WITH_LIBA52_DEFAULT) || (exists(${LOCALBASE}/lib/liba52.so) && !defined(WITHOUT_LIBA52))
@@ -199,7 +243,7 @@
 .endif
 .if !defined(WITH_MJPEG)
 	@${ECHO_MSG}
-	@${ECHO_MSG} "You can enable MJPEG portions by defining WITH_JPEGMMX."
+	@${ECHO_MSG} "You can enable MJPEG portions by defining WITH_MJPEG."
 .endif
 .if !defined(WITH_IMAGEMAGICK)
 	@${ECHO_MSG}
===> Done


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906040257.n542vpsT061438>