aboutsummaryrefslogtreecommitdiff
path: root/multimedia/mencoder
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2011-07-20 02:52:34 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2011-07-20 02:52:34 +0000
commit472f73f0c08385ad7560de67049c7065d8192834 (patch)
treee54c305fefe30b615643a3750dd3ba12ef066a1a /multimedia/mencoder
parent2f61b9072e4c71f621b8d2f248af0445e0f79f9b (diff)
downloadports-472f73f0c08385ad7560de67049c7065d8192834.tar.gz
ports-472f73f0c08385ad7560de67049c7065d8192834.zip
Notes
Diffstat (limited to 'multimedia/mencoder')
-rw-r--r--multimedia/mencoder/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/multimedia/mencoder/Makefile b/multimedia/mencoder/Makefile
index cfce4e7de66e..10128fc70092 100644
--- a/multimedia/mencoder/Makefile
+++ b/multimedia/mencoder/Makefile
@@ -41,6 +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+= REALPLAYER "Enable real player plugin" off
OPTIONS+= LIVEMEDIA "Enable LIVE555 streaming support" off
OPTIONS+= SMB "Enable Samba input support" off
@@ -64,6 +65,12 @@ 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
@@ -90,6 +97,15 @@ ALL_TARGET= mencoder
.include "${.CURDIR}/../mplayer/Makefile.options"
+.if defined(WITH_ASS)
+LIB_DEPENDS+= ass.5:${PORTSDIR}/multimedia/libass
+USE_GNOME+= pkgconfig
+LIBASS_PKGCONFIG_CFLAGS= pkg-config --cflags --silence-errors libass
+.else
+CONFIGURE_ARGS+= --disable-ass --disable-ass-internal
+LIBASS_PKGCONFIG_CFLAGS= ${ECHO_CMD}
+.endif
+
.if defined(WITH_FONTCONFIG)
LIB_DEPENDS+= fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
.else
@@ -161,6 +177,9 @@ post-patch:
's|/usr/\\:local/\\:etc/\\:mplayer|${DATADIR:S/\//\/\\\:/g}|g ; \
s|/dev/\\:(dvd[[:alnum:]]*[[:>:]])|${DEFAULT_DVD_DEVICE:S/dev\//dev\/\\\:/}|g ; \
s|/dev/\\:(cdrom[[:alnum:]]*[[:>:]])|${DEFAULT_CDROM_DEVICE:S/dev\//dev\/\\\:/}|g'
+ @${REINPLACE_CMD} \
+ -e 's|%%LIBASS_PKGCONFIG_CFLAGS%%|${LIBASS_PKGCONFIG_CFLAGS}|' \
+ ${BUILD_WRKSRC}/${MAKEFILE}
post-configure:
@${REINPLACE_CMD} -e 's#-pthread#${PTHREAD_LIBS}#g' \