mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
o Fix build when multimedia/libass is already installed when one
tries to build multimedia/mplayer * Add option 'ASS "Enable ASS/SSA subtitle rendering"' with default off - However, override user decision to on if multimedia/libass is already installed: mplayer does not uphold configure options disabling dependency on external port. * Do not bump PORTREVISION since nothing has really changed for users who didn't have multimedia/libass on their systems PR: ports/159021 Approved by: maintainer
This commit is contained in:
parent
2f61b9072e
commit
472f73f0c0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=277979
@ -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' \
|
||||
|
@ -51,6 +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
|
||||
.if !defined(PACKAGE_BUILDING)
|
||||
OPTIONS+= WIN32 "Enable win32 codec set on the IA32 arch" on
|
||||
.endif
|
||||
@ -73,6 +74,12 @@ 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"
|
||||
@ -93,6 +100,15 @@ CONFIGURE_ARGS+= --disable-ssse3 \
|
||||
|
||||
.include "${.CURDIR}/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(WITHOUT_GUI) && !defined(WITHOUT_X11)
|
||||
MLINKS+= mplayer.1 gmplayer.1
|
||||
PLIST_SUB+= GMPLAYER=""
|
||||
@ -266,6 +282,9 @@ post-patch:
|
||||
's|irqp = 1024|irqp = ${DEFAULT_KERN_HZ}|' \
|
||||
${WRKSRC}/mplayer.c
|
||||
.endif
|
||||
@${REINPLACE_CMD} \
|
||||
-e 's|%%LIBASS_PKGCONFIG_CFLAGS%%|${LIBASS_PKGCONFIG_CFLAGS}|' \
|
||||
${BUILD_WRKSRC}/${MAKEFILE}
|
||||
|
||||
post-configure:
|
||||
@${REINPLACE_CMD} -e 's#-pthread#${PTHREAD_LIBS}#g' \
|
||||
|
@ -1,6 +1,18 @@
|
||||
--- Makefile.orig 2010-01-03 17:39:16.000000000 +0100
|
||||
+++ Makefile 2010-01-06 21:15:58.372494408 +0100
|
||||
@@ -914,20 +914,16 @@
|
||||
--- Makefile.orig 2011-03-28 12:50:56.000000000 -0300
|
||||
+++ Makefile 2011-07-18 23:23:16.000000000 -0300
|
||||
@@ -814,8 +814,10 @@
|
||||
mencoder$(EXESUF) mplayer$(EXESUF):
|
||||
$(CC) -o $@ $^ $(EXTRALIBS)
|
||||
|
||||
+CFLAGS_LIBASS := $(shell %%LIBASS_PKGCONFIG_CFLAGS%%)
|
||||
+
|
||||
codec-cfg$(EXESUF): codec-cfg.c codec-cfg.h help_mp.h
|
||||
- $(HOST_CC) -O -DCODECS2HTML -I. -Iffmpeg -o $@ $<
|
||||
+ $(HOST_CC) -O -DCODECS2HTML $(CFLAGS_LIBASS) -I. -Iffmpeg -o $@ $<
|
||||
|
||||
codecs.conf.h: codec-cfg$(EXESUF) etc/codecs.conf
|
||||
./$^ > $@
|
||||
@@ -890,20 +892,16 @@
|
||||
install: $(INSTALL_TARGETS-yes)
|
||||
|
||||
install-dirs:
|
||||
|
Loading…
Reference in New Issue
Block a user