From owner-svn-ports-head@FreeBSD.ORG Fri Oct 5 04:12:05 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A9D8C106566C; Fri, 5 Oct 2012 04:12:05 +0000 (UTC) (envelope-from avilla@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 917368FC08; Fri, 5 Oct 2012 04:12:05 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q954C5lu084442; Fri, 5 Oct 2012 04:12:05 GMT (envelope-from avilla@svn.freebsd.org) Received: (from avilla@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q954C5GP084438; Fri, 5 Oct 2012 04:12:05 GMT (envelope-from avilla@svn.freebsd.org) Message-Id: <201210050412.q954C5GP084438@svn.freebsd.org> From: Alberto Villa Date: Fri, 5 Oct 2012 04:12:05 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r305293 - in head/multimedia/mlt: . files X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Oct 2012 04:12:05 -0000 Author: avilla Date: Fri Oct 5 04:12:04 2012 New Revision: 305293 URL: http://svn.freebsd.org/changeset/ports/305293 Log: - Backport my commits to support depending on non-default FFmpeg. - Switch dependency from multimedia/ffmpeg to multimedia/ffmpeg-011, as my tests revealed that MLT isn't working anymore with 0.7.x. - Drop option --linsys-with-jpeg as per upstream suggestion. - Update OPTIONS descriptions to be consistent with recent changes. - Bump PORTREVISION. Deleted: head/multimedia/mlt/files/patch-src__modules__linsys__Makefile Modified: head/multimedia/mlt/Makefile head/multimedia/mlt/files/patch-src__modules__avformat__configure (contents, props changed) head/multimedia/mlt/files/patch-src__modules__frei0r__configure (contents, props changed) Modified: head/multimedia/mlt/Makefile ============================================================================== --- head/multimedia/mlt/Makefile Fri Oct 5 03:34:11 2012 (r305292) +++ head/multimedia/mlt/Makefile Fri Oct 5 04:12:04 2012 (r305293) @@ -2,6 +2,7 @@ PORTNAME= mlt PORTVERSION= 0.8.2 +PORTREVISION= 1 CATEGORIES= multimedia MASTER_SITES= SF/${PORTNAME}/${PORTNAME} @@ -11,8 +12,6 @@ COMMENT= Multimedia framework for TV bro LICENSE= GPLv2 GPLv3 LGPL21 LICENSE_COMB= multi -LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg - # They both install bin/melt. CONFLICTS_INSTALL= freeze-[0-9]* @@ -20,9 +19,8 @@ USE_GNOME= gnomehack libxml2 USE_PKGCONFIG= build USE_SDL= image GNU_CONFIGURE= yes -CONFIGURE_ARGS= --enable-gpl --enable-gpl3 --linsys-with-jpeg +CONFIGURE_ARGS= --enable-gpl --enable-gpl3 USE_GMAKE= yes -CFLAGS+= -I${LOCALBASE}/include # Frei0r detection. MAKE_JOBS_SAFE= yes USE_LDCONFIG= yes @@ -44,9 +42,9 @@ OPTIONS_DEFINE= DV FFMPEG FREI0R GTK2 JA OPTIONS_DEFAULT=DV FFMPEG FREI0R GTK2 QT4 \ SAMPLERATE SOX SWFDEC VORBIS -GTK2_DESC= GTK+ 2 support (images, text rendering...) -QT4_DESC= QImage support (Kdenlive titles, images...) -SOX_DESC= SoX audio effects support +GTK2_DESC= Images, text rendering, etc. via GTK+ 2 +QT4_DESC= Kdenlive titles, images, etc. via QImage +SOX_DESC= SoX audio effects .include @@ -64,8 +62,10 @@ PLIST_SUB+= DV="@comment " .endif .if ${PORT_OPTIONS:MFFMPEG} || ${PORT_OPTIONS:MVDPAU} -LIB_DEPENDS+= avformat:${PORTSDIR}/multimedia/ffmpeg -CONFIGURE_ARGS+= --enable-avformat --avformat-swscale +FFMPEG_SUFFIX= -011 +LIB_DEPENDS+= avformat${FFMPEG_SUFFIX}:${PORTSDIR}/multimedia/ffmpeg${FFMPEG_SUFFIX} +CONFIGURE_ARGS+= --enable-avformat --avformat-swscale \ + --avformat-suffix="${FFMPEG_SUFFIX}" PLIST_SUB+= FFMPEG="" .else CONFIGURE_ARGS+= --disable-avformat Modified: head/multimedia/mlt/files/patch-src__modules__avformat__configure ============================================================================== --- head/multimedia/mlt/files/patch-src__modules__avformat__configure Fri Oct 5 03:34:11 2012 (r305292) +++ head/multimedia/mlt/files/patch-src__modules__avformat__configure Fri Oct 5 04:12:04 2012 (r305293) @@ -1,6 +1,24 @@ ---- ./src/modules/avformat/configure.orig 2012-09-04 00:55:19.926196170 +0200 -+++ ./src/modules/avformat/configure 2012-09-04 00:43:04.696053595 +0200 -@@ -105,7 +105,7 @@ +--- ./src/modules/avformat/configure.orig 2012-10-02 05:23:05.066523985 +0200 ++++ ./src/modules/avformat/configure 2012-10-02 05:27:15.848135787 +0200 +@@ -54,7 +54,7 @@ + echo > config.mak + + export static_ffmpeg= +- export shared_ffmpeg=$(pkg-config --variable=prefix libavformat) ++ export shared_ffmpeg= + export extra_libs= + export avformat_suffix= + export swscale= +@@ -82,6 +82,8 @@ + esac + done + ++ : ${shared_ffmpeg:=$(pkg-config --variable=prefix libavformat${avformat_suffix})} ++ + if [ "$static_ffmpeg" != "" ] + then + if [ -d "$static_ffmpeg" ] +@@ -105,7 +107,7 @@ if [ "$vdpau" = "true" ] then @@ -9,12 +27,40 @@ [ "$x11" = "0" -a "$?" = "0" ] && echo "VDPAU=1" >> config.mak fi else -@@ -141,7 +141,7 @@ +@@ -121,27 +123,27 @@ + echo "CFLAGS+=-DAVDATADIR=\\\"share/ffmpeg/\\\"" >> config.mak + ;; + *) +- echo "CFLAGS+=-DAVDATADIR=\\\"${shared_ffmpeg}/share/ffmpeg/\\\"" >> config.mak ++ echo "CFLAGS+=-DAVDATADIR=\\\"${shared_ffmpeg}/share/ffmpeg${avformat_suffix}/\\\"" >> config.mak + ;; + esac +- echo "CFLAGS+=$(pkg-config --cflags libavformat)" >> config.mak +- echo "LDFLAGS+=$(pkg-config --libs-only-L libavformat)" >> config.mak ++ echo "CFLAGS+=$(pkg-config --cflags libavformat${avformat_suffix})" >> config.mak ++ echo "LDFLAGS+=$(pkg-config --libs-only-L libavformat${avformat_suffix})" >> config.mak + if [ "$devices" = "true" ] + then +- echo "CFLAGS+=$(pkg-config --cflags libavdevice)" >> config.mak +- echo "LDFLAGS+=$(pkg-config --libs-only-L libavdevice)" >> config.mak ++ echo "CFLAGS+=$(pkg-config --cflags libavdevice${avformat_suffix})" >> config.mak ++ echo "LDFLAGS+=$(pkg-config --libs-only-L libavdevice${avformat_suffix})" >> config.mak + fi +- avcodec_version=$(pkg-config --modversion libavcodec) ++ avcodec_version=$(pkg-config --modversion libavcodec${avformat_suffix}) + if [ "$swscale" != "" ] || [ $(echo $avcodec_version | cut -d. -f1) -gt 52 ] || ( [ $(echo $avcodec_version | cut -d. -f1) -ge 52 ] && [ $(echo $avcodec_version | cut -d. -f2) -ge 21 ] ) + then +- echo "CFLAGS+=$(pkg-config --cflags libswscale)" >> config.mak +- echo "LDFLAGS+=$(pkg-config --libs-only-L libswscale)" >> config.mak ++ echo "CFLAGS+=$(pkg-config --cflags libswscale${avformat_suffix})" >> config.mak ++ echo "LDFLAGS+=$(pkg-config --libs-only-L libswscale${avformat_suffix})" >> config.mak + echo "SWSCALE=1" >> config.mak + fi if [ "$vdpau" = "true" ] then - printf "#include \n int main(){ VdpBitstreamBuffer test; test.struct_version; return 0;}" | gcc -I"$(pkg-config --cflags libavformat)" -I"$shared_ffmpeg/include" $CFLAGS -c -x c - >/dev/null 2>&1 -+ printf "#include \n int main(){ VdpBitstreamBuffer test; test.struct_version; return 0;}" | $CC -I"$(pkg-config --cflags libavformat)" -I"$shared_ffmpeg/include" $CFLAGS -c -x c - >/dev/null 2>&1 ++ printf "#include \n int main(){ VdpBitstreamBuffer test; test.struct_version; return 0;}" | $CC $(pkg-config --cflags libavformat${avformat_suffix}) -I"$shared_ffmpeg/include" $CFLAGS -c -x c - >/dev/null 2>&1 [ "$x11" = "0" -a "$?" = "0" ] && echo "VDPAU=1" >> config.mak fi else Modified: head/multimedia/mlt/files/patch-src__modules__frei0r__configure ============================================================================== --- head/multimedia/mlt/files/patch-src__modules__frei0r__configure Fri Oct 5 03:34:11 2012 (r305292) +++ head/multimedia/mlt/files/patch-src__modules__frei0r__configure Fri Oct 5 04:12:04 2012 (r305293) @@ -1,11 +1,11 @@ ---- ./src/modules/frei0r/configure.orig 2012-09-04 00:21:50.609711766 +0200 -+++ ./src/modules/frei0r/configure 2012-09-04 00:47:23.666167132 +0200 +--- ./src/modules/frei0r/configure.orig 2012-10-02 05:23:05.066523985 +0200 ++++ ./src/modules/frei0r/configure 2012-10-02 05:25:52.436629939 +0200 @@ -3,7 +3,7 @@ if [ "$help" != "1" ] then - echo "#include int main(){ f0r_plugin_info_t test; test.name;return 0;}"| gcc $CFLAGS -c -x c - >/dev/null 2>&1 -+ echo "#include int main(){ f0r_plugin_info_t test; test.name;return 0;}"| $CC $CFLAGS -c -x c - >/dev/null 2>&1 ++ echo "#include int main(){ f0r_plugin_info_t test; test.name;return 0;}"| $CC $(pkg-config --cflags frei0r) $CFLAGS -c -x c - >/dev/null 2>&1 if [ "$?" = "1" ] then