From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jun 4 03:00:12 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40A64106566C for ; Thu, 4 Jun 2009 03:00:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1B8278FC1A for ; Thu, 4 Jun 2009 03:00:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n5430BD9032190 for ; Thu, 4 Jun 2009 03:00:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n5430Bnd032187; Thu, 4 Jun 2009 03:00:11 GMT (envelope-from gnats) Resent-Date: Thu, 4 Jun 2009 03:00:11 GMT Resent-Message-Id: <200906040300.n5430Bnd032187@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Steve Wills Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15AB2106566C for ; Thu, 4 Jun 2009 02:57:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 039CF8FC13 for ; Thu, 4 Jun 2009 02:57:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n542vpbm061439 for ; Thu, 4 Jun 2009 02:57:51 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n542vpsT061438; Thu, 4 Jun 2009 02:57:51 GMT (envelope-from nobody) Message-Id: <200906040257.n542vpsT061438@www.freebsd.org> Date: Thu, 4 Jun 2009 02:57:51 GMT From: Steve Wills To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/135238: [patch] OPTIONS support in multimedia/transcode X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jun 2009 03:00:12 -0000 >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 +.include .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: