From 7e9888a561c1f2a53cfeca5bf54f5278294df386 Mon Sep 17 00:00:00 2001 From: makc Date: Fri, 27 Jul 2012 11:03:38 +0000 Subject: - Convert my ports to new options framework - use CONFLICTS_INSTALL - other minor changes --- multimedia/subtitlecomposer-kde4/Makefile | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'multimedia/subtitlecomposer-kde4') diff --git a/multimedia/subtitlecomposer-kde4/Makefile b/multimedia/subtitlecomposer-kde4/Makefile index 492ffb9e0aa7..de515fad8524 100644 --- a/multimedia/subtitlecomposer-kde4/Makefile +++ b/multimedia/subtitlecomposer-kde4/Makefile @@ -18,30 +18,32 @@ USE_BZIP2= yes USE_CMAKE= yes USE_KDE4= kdeprefix kdelibs automoc4 USE_QT4= gui qmake_build moc_build rcc_build uic_build -WANT_GSTREAMER= yes LATEST_LINK= ${PORTNAME}-kde4 -OPTIONS= MPLAYER "Enable MPlayer backend (recommended)" on \ - XINE "Enable Xine backend" off \ - GSTREAMER "Enable GStreamer backend (broken)" off +OPTIONS_DEFINE= GSTREAMER MPLAYER XINE +OPTIONS_DEFAULT= MPLAYER -.include +MPLAYER_DESC= Enable MPlayer backend (recommended) +XINE_DESC= Enable Xine backend +GSTREAMER_DESC= Enable GStreamer backend (broken) -.if defined(WITH_MPLAYER) +.include + +.if ${PORT_OPTIONS:MMPLAYER} RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer .endif -.if defined(WITH_XINE) +.if ${PORT_OPTIONS:MXINE} LIB_DEPENDS+= xine.2:${PORTSDIR}/multimedia/libxine .else CMAKE_ARGS+= -DWITH_Xine:Bool=Off .endif -.if defined(WITH_GSTREAMER) -USE_GSTREAMER+= yes +.if ${PORT_OPTIONS:MGSTREAMER} +USE_GSTREAMER= yes .else CMAKE_ARGS+= -DWITH_GStreamer:Bool=Off .endif -.include +.include -- cgit