diff options
author | Brendan Fabeny <bf@FreeBSD.org> | 2011-08-01 11:40:31 +0800 |
---|---|---|
committer | Brendan Fabeny <bf@FreeBSD.org> | 2011-08-01 11:40:31 +0800 |
commit | 07b6aa4bc800ec403d9188f2a774912ca6323fca (patch) | |
tree | 613d4d89c8349c201227c55555fec32c15437226 /multimedia | |
parent | d2b287688c9c9f1d16dd002791a0b785dc604a54 (diff) | |
download | freebsd-ports-gnome-07b6aa4bc800ec403d9188f2a774912ca6323fca.tar.gz freebsd-ports-gnome-07b6aa4bc800ec403d9188f2a774912ca6323fca.tar.zst freebsd-ports-gnome-07b6aa4bc800ec403d9188f2a774912ca6323fca.zip |
Enable libass by default; do not silently override user-specified
libass option; disable enca autodetection when libass is disabled;
bump portrevision
Approved by: Thomas Zander (maintainer)
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/mencoder/Makefile | 14 | ||||
-rw-r--r-- | multimedia/mplayer/Makefile | 14 | ||||
-rw-r--r-- | multimedia/mplayer/files/patch-sub__subreader.c | 13 |
3 files changed, 21 insertions, 20 deletions
diff --git a/multimedia/mencoder/Makefile b/multimedia/mencoder/Makefile index 10128fc70092..dbecf4fae38c 100644 --- a/multimedia/mencoder/Makefile +++ b/multimedia/mencoder/Makefile @@ -6,7 +6,7 @@ PORTNAME= mencoder PORTVERSION= ${MPLAYER_PORT_VERSION} -PORTREVISION= 1 +PORTREVISION= 2 COMMENT= Convenient video file and movie encoder RESTRICTED= Port has restricted dependencies @@ -41,7 +41,7 @@ OPTIONS+= X264 "Enable x264 (H.264) video codec support" on OPTIONS+= VPX "Enable VP8 video via libvpx" off OPTIONS+= DIRAC "Enable dirac video codec support" off OPTIONS+= SCHROEDINGER "Dirac codec via libschroedinger" off -OPTIONS+= ASS "Enable ASS/SSA subtitle rendering" Off +OPTIONS+= ASS "Enable ASS/SSA subtitle rendering" on OPTIONS+= REALPLAYER "Enable real player plugin" off OPTIONS+= LIVEMEDIA "Enable LIVE555 streaming support" off OPTIONS+= SMB "Enable Samba input support" off @@ -65,12 +65,6 @@ TOOLFILES= aconvert.sh binary_codecs.sh calcbpp.pl \ psnr-video.sh qepdvcd.sh subedit.pl \ subsearch.sh w32codec_dl.pl wma2ogg.pl \ -# fix for bug when libass is installed, mplayer configure does not -# uphold --disable-ass -.if exists(${LOCALBASE}/lib/libass.so) -WITH_ASS= yes -.endif - .include <bsd.port.pre.mk> LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame @@ -99,10 +93,10 @@ ALL_TARGET= mencoder .if defined(WITH_ASS) LIB_DEPENDS+= ass.5:${PORTSDIR}/multimedia/libass -USE_GNOME+= pkgconfig +BUILD_DEPENDS += pkg-config:${PORTSDIR}/devel/pkg-config LIBASS_PKGCONFIG_CFLAGS= pkg-config --cflags --silence-errors libass .else -CONFIGURE_ARGS+= --disable-ass --disable-ass-internal +CONFIGURE_ARGS+= --disable-ass --disable-ass-internal --disable-enca LIBASS_PKGCONFIG_CFLAGS= ${ECHO_CMD} .endif diff --git a/multimedia/mplayer/Makefile b/multimedia/mplayer/Makefile index 1557b24e4e7d..ba5a28d6ab14 100644 --- a/multimedia/mplayer/Makefile +++ b/multimedia/mplayer/Makefile @@ -7,7 +7,7 @@ PORTNAME= mplayer PORTVERSION= ${MPLAYER_PORT_VERSION} -PORTREVISION= 2 +PORTREVISION= 3 COMMENT= High performance media player supporting many formats .include "${.CURDIR}/Makefile.shared" @@ -51,7 +51,7 @@ OPTIONS+= SPEEX "Enable speex audio codec support" on OPTIONS+= THEORA "Enable ogg theora video support" off OPTIONS+= VPX "Enable VP8 video via libvpx" off OPTIONS+= SCHROEDINGER "Dirac codec via libschroedinger" off -OPTIONS+= ASS "Enable ASS/SSA subtitle rendering" Off +OPTIONS+= ASS "Enable ASS/SSA subtitle rendering" on .if !defined(PACKAGE_BUILDING) OPTIONS+= WIN32 "Enable win32 codec set on the IA32 arch" on .endif @@ -74,12 +74,6 @@ SUB_FILES= pkg-message CONFFILES= example.conf input.conf menu.conf dvb-menu.conf -# fix for bug when libass is installed, mplayer configure does not -# uphold --disable-ass -.if exists(${LOCALBASE}/lib/libass.so) -WITH_ASS= yes -.endif - .include <bsd.port.pre.mk> .if ${ARCH} == "sparc64" @@ -102,10 +96,10 @@ CONFIGURE_ARGS+= --disable-ssse3 \ .if defined(WITH_ASS) LIB_DEPENDS+= ass.5:${PORTSDIR}/multimedia/libass -USE_GNOME+= pkgconfig +BUILD_DEPENDS += pkg-config:${PORTSDIR}/devel/pkg-config LIBASS_PKGCONFIG_CFLAGS= pkg-config --cflags --silence-errors libass .else -CONFIGURE_ARGS+= --disable-ass --disable-ass-internal +CONFIGURE_ARGS+= --disable-ass --disable-ass-internal --disable-enca LIBASS_PKGCONFIG_CFLAGS= ${ECHO_CMD} .endif diff --git a/multimedia/mplayer/files/patch-sub__subreader.c b/multimedia/mplayer/files/patch-sub__subreader.c new file mode 100644 index 000000000000..eb8b15d1662f --- /dev/null +++ b/multimedia/mplayer/files/patch-sub__subreader.c @@ -0,0 +1,13 @@ +--- sub/subreader.c.orig 2011-07-22 23:08:52.000000000 -0400 ++++ sub/subreader.c 2011-07-22 23:26:15.000000000 -0400 +@@ -2509,8 +2509,10 @@ + strip_markup = 1; + #endif + if (!strip_markup) { ++#ifdef CONFIG_ASS + subassconvert_subrip(txt, buf, MAX_SUBLINE + 1); + sub->text[sub->lines] = buf; ++#endif + } else { + for (i = 0; i < len && pos < MAX_SUBLINE; i++) { + char c = txt[i]; |