aboutsummaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2003-06-09 19:26:49 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2003-06-09 19:26:49 +0000
commitd3329ed86a9b62ea895dd9c430081240e1fd8b06 (patch)
tree4325d7a18b6cd86c5445808244e8b06321aefb88 /multimedia
parent647ad12668df69033c291e9f2a7cf643dcfc6c69 (diff)
downloadports-d3329ed86a9b62ea895dd9c430081240e1fd8b06.tar.gz
ports-d3329ed86a9b62ea895dd9c430081240e1fd8b06.zip
Notes
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 5b2728e6dac6..728f47569af4 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/