aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2008-05-19 14:03:13 +0800
committerrafan <rafan@FreeBSD.org>2008-05-19 14:03:13 +0800
commit5d1fd48e360706c655ee36d809f31394686a7798 (patch)
tree927aa98cdee447282a46cb9946fca77c172b39b5 /multimedia
parentd79919306e4222a8b7778cee29b48cf4f2a0e808 (diff)
downloadfreebsd-ports-gnome-5d1fd48e360706c655ee36d809f31394686a7798.tar.gz
freebsd-ports-gnome-5d1fd48e360706c655ee36d809f31394686a7798.tar.zst
freebsd-ports-gnome-5d1fd48e360706c655ee36d809f31394686a7798.zip
- Make mplayer support optional
- Add gstreamer support - Fix xine support (requires xcb support in libxine) - Add missing USE_XORG - Bump PORTREVISION PR: ports/123763 Submitted by: Max Brazhnikov <makc at issp.ac.ru> (maintainer)
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/subtitlecomposer-kde4/Makefile34
-rw-r--r--multimedia/subtitlecomposer/Makefile34
2 files changed, 56 insertions, 12 deletions
diff --git a/multimedia/subtitlecomposer-kde4/Makefile b/multimedia/subtitlecomposer-kde4/Makefile
index fbc449c7c4eb..561138afd2f2 100644
--- a/multimedia/subtitlecomposer-kde4/Makefile
+++ b/multimedia/subtitlecomposer-kde4/Makefile
@@ -7,6 +7,7 @@
PORTNAME= subtitlecomposer
PORTVERSION= 0.4.1
+PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= SF
MASTER_SITE_SUBDIR=subcomposer
@@ -14,23 +15,44 @@ MASTER_SITE_SUBDIR=subcomposer
MAINTAINER= makc@issp.ac.ru
COMMENT= Subtitle editor for KDE
-RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer
-
USE_BZIP2= yes
USE_AUTOTOOLS= libtool:15
USE_KDELIBS_VER=3
+USE_XORG= xext
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --without-gstreamer
+WANT_GSTREAMER= yes
INSTALLS_ICONS= yes
-OPTIONS= XINE "Enable Xine backend" off
+OPTIONS= MPLAYER "Enable MPlayer backend (recommended)" on \
+ XINE "Enable Xine backend" off \
+ GSTREAMER "Enable GStreamer backend" off
.include <bsd.port.pre.mk>
+.if defined(WITH_MPLAYER)
+RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer
+.endif
+
.if defined(WITH_XINE)
-LIB_DEPENDS+= xine.1:${PORTSDIR}/multimedia/libxine
+
+. if exists(${LOCALBASE}/bin/xine-config)
+XINE_PLUGINDIR!= ${LOCALBASE}/bin/xine-config --plugindir
+. endif
+
+. if defined(XINE_PLUGINDIR) && !exists(${XINE_PLUGINDIR}/xineplug_vo_out_xcbxv.so)
+IGNORE= needs XCB support in libxine
+. endif
+
+LIB_DEPENDS+= xine.1:${PORTSDIR}/multimedia/libxine \
+ xcb.1:${PORTSDIR}/x11/libxcb
.else
-CONFIGURE_ARGS+=--without-xine
+CONFIGURE_ARGS+=--without-xine --without-xcb
+.endif
+
+.if defined(WITH_GSTREAMER)
+USE_GSTREAMER+= yes
+.else
+CONFIGURE_ARGS= --without-gstreamer
.endif
.include <bsd.port.post.mk>
diff --git a/multimedia/subtitlecomposer/Makefile b/multimedia/subtitlecomposer/Makefile
index fbc449c7c4eb..561138afd2f2 100644
--- a/multimedia/subtitlecomposer/Makefile
+++ b/multimedia/subtitlecomposer/Makefile
@@ -7,6 +7,7 @@
PORTNAME= subtitlecomposer
PORTVERSION= 0.4.1
+PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= SF
MASTER_SITE_SUBDIR=subcomposer
@@ -14,23 +15,44 @@ MASTER_SITE_SUBDIR=subcomposer
MAINTAINER= makc@issp.ac.ru
COMMENT= Subtitle editor for KDE
-RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer
-
USE_BZIP2= yes
USE_AUTOTOOLS= libtool:15
USE_KDELIBS_VER=3
+USE_XORG= xext
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --without-gstreamer
+WANT_GSTREAMER= yes
INSTALLS_ICONS= yes
-OPTIONS= XINE "Enable Xine backend" off
+OPTIONS= MPLAYER "Enable MPlayer backend (recommended)" on \
+ XINE "Enable Xine backend" off \
+ GSTREAMER "Enable GStreamer backend" off
.include <bsd.port.pre.mk>
+.if defined(WITH_MPLAYER)
+RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer
+.endif
+
.if defined(WITH_XINE)
-LIB_DEPENDS+= xine.1:${PORTSDIR}/multimedia/libxine
+
+. if exists(${LOCALBASE}/bin/xine-config)
+XINE_PLUGINDIR!= ${LOCALBASE}/bin/xine-config --plugindir
+. endif
+
+. if defined(XINE_PLUGINDIR) && !exists(${XINE_PLUGINDIR}/xineplug_vo_out_xcbxv.so)
+IGNORE= needs XCB support in libxine
+. endif
+
+LIB_DEPENDS+= xine.1:${PORTSDIR}/multimedia/libxine \
+ xcb.1:${PORTSDIR}/x11/libxcb
.else
-CONFIGURE_ARGS+=--without-xine
+CONFIGURE_ARGS+=--without-xine --without-xcb
+.endif
+
+.if defined(WITH_GSTREAMER)
+USE_GSTREAMER+= yes
+.else
+CONFIGURE_ARGS= --without-gstreamer
.endif
.include <bsd.port.post.mk>