summaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2003-06-09 19:26:49 +0000
committerlioux <lioux@FreeBSD.org>2003-06-09 19:26:49 +0000
commitb187d758b0b6abd18ba0b10ba0f4cc9d9220ad59 (patch)
treedbe800acf0f2e5d3536f9a7b40bfbf702dccd381 /multimedia
parenta84756fb7709da020490095f5b9cf37f652e68fc (diff)
downloadFreeBSD-ports-b187d758b0b6abd18ba0b10ba0f4cc9d9220ad59.zip
FreeBSD-ports-b187d758b0b6abd18ba0b10ba0f4cc9d9220ad59.tar.gz
Add WITH_XMMS knob for XMMS inputplugin support
PR: 52513 Submitted by: David Yeske <dyeske@yahoo.com> Approved by: maintainer (implicit)
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/mplayer/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/multimedia/mplayer/Makefile b/multimedia/mplayer/Makefile
index 5b2728e..728f475 100644
--- a/multimedia/mplayer/Makefile
+++ b/multimedia/mplayer/Makefile
@@ -140,6 +140,9 @@
# WITH_LZO
# default: autodetect
#
+# WITH_XMMS
+# default: autodetect
+#
# WITHOUT_WIN32_CODECS
# default: undefined
# By default, mplayer depends on and uses the win32-codecs collection.
@@ -199,6 +202,7 @@ CONFIGURE_ARGS= --with-extralibdir=${LOCALBASE}/lib \
--disable-tv-v4l
WANT_GNOME= yes
+USE_REINPLACE= yes
MAN1= mplayer.1
MANCOMPRESSED= no
INSTALLS_SHLIB= yes
@@ -286,6 +290,10 @@ WITH_XVID= yes
WITH_FAAD= yes
.endif
+.if exists(${X11BASE}/lib/libxmms.so)
+WITH_XMMS= yes
+.endif
+
.if exists(${LOCALBASE}/lib/liblzo.so)
WITH_LZO= yes
.endif
@@ -422,6 +430,11 @@ LIB_DEPENDS+= lzo.1:${PORTSDIR}/archivers/lzo
CONFIGURE_ARGS+= --disable-liblzo
.endif
+.if defined(WITH_XMMS)
+CONFIGURE_ARGS+= --enable-xmms
+LIB_DEPENDS+= xmms.3:${PORTSDIR}/multimedia/xmms
+.endif
+
.if defined(WITH_FAAD)
CONFIGURE_ARGS+= --enable-faad
LIB_DEPENDS+= faad.0:${PORTSDIR}/audio/faad
@@ -500,6 +513,11 @@ pre-everything::
@${ECHO_MSG} "http://www.mplayerhq.hu/homepage/dload.html"
.endif
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|libxmms.so.1|libxmms.so|' \
+ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
+
pre-configure:
.if defined(WITH_LIBDVDREAD)
@${RM} -Rf ${WRKSRC}/libmpdvdkit2/
OpenPOWER on IntegriCloud