Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jul 2015 18:00:40 +0000 (UTC)
From:      Juergen Lock <nox@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r392178 - head/multimedia/vdr-plugins
Message-ID:  <201507151800.t6FI0euC087653@svnmir.geo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nox
Date: Wed Jul 15 18:00:39 2015
New Revision: 392178
URL: https://svnweb.freebsd.org/changeset/ports/392178

Log:
  Use OPTIONS helpers, convert to USES=metaport.
  
  PR:		201574
  Submitted by:	Andriy Voskoboinyk <s3erios@gmail.com>

Modified:
  head/multimedia/vdr-plugins/Makefile

Modified: head/multimedia/vdr-plugins/Makefile
==============================================================================
--- head/multimedia/vdr-plugins/Makefile	Wed Jul 15 17:51:25 2015	(r392177)
+++ head/multimedia/vdr-plugins/Makefile	Wed Jul 15 18:00:39 2015	(r392178)
@@ -5,16 +5,13 @@ PORTNAME=	vdr-plugins
 PORTVERSION=	1.7.29
 PORTREVISION=	3
 CATEGORIES=	multimedia
-MASTER_SITES=	# none
-DISTFILES=	# none
-EXTRACT_ONLY=	# none
 
 MAINTAINER=	nox@FreeBSD.org
 COMMENT=	Video Disk Recorder - plugin metaport
 
 RUN_DEPENDS+=	vdr:${PORTSDIR}/multimedia/vdr
 
-NO_BUILD=	yes
+USES=		metaport
 
 OPTIONS_DEFINE=	CONTROL EPGSEARCH FEMON INFOSATEPG IPTV OSDPIP \
 		OSDTELETEXT REELSCAN REMOTE SKINENIGMANG STREAMDEV \
@@ -52,81 +49,18 @@ OPTIONS_DEFAULT=	CONTROL EPGSEARCH FEMON
 		TTXTSUBS WIRBELSCAN XINELIBOUTPUT LIVE \
 		SLEEPTIMER EEPG VDRMANAGER EXTRECMENU VNSISERVER
 
-.include <bsd.port.options.mk>
+VDRDIR=		${LOCALBASE}/lib/vdr
 
-.if ${PORT_OPTIONS:MCONTROL}
-RUN_DEPENDS+=	${LOCALBASE}/lib/vdr/libvdr-control.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-control
-.endif
-.if ${PORT_OPTIONS:MEPGSEARCH}
-RUN_DEPENDS+=	${LOCALBASE}/lib/vdr/libvdr-epgsearch.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-epgsearch
-.endif
-.if ${PORT_OPTIONS:MFEMON}
-RUN_DEPENDS+=	${LOCALBASE}/lib/vdr/libvdr-femon.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-femon
-.endif
-.if ${PORT_OPTIONS:MINFOSATEPG}
-RUN_DEPENDS+=	${LOCALBASE}/lib/vdr/libvdr-infosatepg.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-infosatepg
-.endif
-.if ${PORT_OPTIONS:MIPTV}
-RUN_DEPENDS+=	${LOCALBASE}/lib/vdr/libvdr-iptv.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-iptv
-.endif
-.if ${PORT_OPTIONS:MOSDPIP}
-RUN_DEPENDS+=	${LOCALBASE}/lib/vdr/libvdr-osdpip.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-osdpip
-.endif
-.if ${PORT_OPTIONS:MOSDTELETEXT}
-RUN_DEPENDS+=	${LOCALBASE}/lib/vdr/libvdr-osdteletext.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-osdteletext
-.endif
-.if ${PORT_OPTIONS:MREELSCAN}
-RUN_DEPENDS+=	${LOCALBASE}/lib/vdr/libvdr-reelchannelscan.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-reelchannelscan
-.endif
-.if ${PORT_OPTIONS:MREMOTE}
-RUN_DEPENDS+=	${LOCALBASE}/lib/vdr/libvdr-remote.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-remote
-.endif
-.if ${PORT_OPTIONS:MSKINENIGMANG}
-RUN_DEPENDS+=	${LOCALBASE}/lib/vdr/libvdr-skinenigmang.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-skinenigmang
-.endif
-.if ${PORT_OPTIONS:MSTREAMDEV}
-RUN_DEPENDS+=	${LOCALBASE}/lib/vdr/libvdr-streamdev-server.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-streamdev
-.endif
-.if ${PORT_OPTIONS:MTTXTSUBS}
-RUN_DEPENDS+=	${LOCALBASE}/lib/vdr/libvdr-ttxtsubs.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-ttxtsubs
-.endif
-.if ${PORT_OPTIONS:MWIRBELSCAN}
-RUN_DEPENDS+=	${LOCALBASE}/lib/vdr/libvdr-wirbelscan.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-wirbelscan
-.endif
-.if ${PORT_OPTIONS:MXINELIBOUTPUT}
-RUN_DEPENDS+=	${LOCALBASE}/lib/vdr/libvdr-xineliboutput.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-xineliboutput
-.endif
-.if ${PORT_OPTIONS:MLIVE}
-RUN_DEPENDS+=	${LOCALBASE}/lib/vdr/libvdr-live.so.${PORTVERSION}:${PORTSDIR}/www/vdr-plugin-live
-.endif
-.if ${PORT_OPTIONS:MUPNP}
-RUN_DEPENDS+=	${LOCALBASE}/lib/vdr/libvdr-upnp.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-upnp
-.endif
-.if ${PORT_OPTIONS:MSLEEPTIMER}
-RUN_DEPENDS+=	${LOCALBASE}/lib/vdr/libvdr-sleeptimer.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-sleeptimer
-.endif
-.if ${PORT_OPTIONS:MXVDR}
-RUN_DEPENDS+=	${LOCALBASE}/lib/vdr/libvdr-xvdr.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-xvdr
-.endif
-.if ${PORT_OPTIONS:MEEPG}
-RUN_DEPENDS+=	${LOCALBASE}/lib/vdr/libvdr-eepg.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-eepg
-.endif
-.if ${PORT_OPTIONS:MVNSISERVER}
-RUN_DEPENDS+=	${LOCALBASE}/lib/vdr/libvdr-vnsiserver.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-vnsiserver
-.endif
-.if ${PORT_OPTIONS:MMARKAD}
-RUN_DEPENDS+=	${LOCALBASE}/lib/vdr/libvdr-markad.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-markad
-.endif
-.if ${PORT_OPTIONS:MVDRMANAGER}
-RUN_DEPENDS+=	${LOCALBASE}/lib/vdr/libvdr-vdrmanager.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-vdrmanager
-.endif
-.if ${PORT_OPTIONS:MSOFTHDDEVICE}
-RUN_DEPENDS+=	${LOCALBASE}/lib/vdr/libvdr-softhddevice.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-softhddevice
-.endif
-.if ${PORT_OPTIONS:MEXTRECMENU}
-RUN_DEPENDS+=	${LOCALBASE}/lib/vdr/libvdr-extrecmenu.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-extrecmenu
-.endif
-
-do-install:	# empty
+.for OPT in ${OPTIONS_DEFINE}
+. if ${OPTIONS_DEFINE:MREELSCAN} == ${OPT}
+${OPT}_RUN_DEPENDS=	${VDRDIR}/libvdr-reelchannelscan.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-reelchannelscan
+. elif ${OPTIONS_DEFINE:MSTREAMDEV} == ${OPT}
+${OPT}_RUN_DEPENDS=	${VDRDIR}/libvdr-${OPT:tl}-server.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-${OPT:tl}
+. elif ${OPTIONS_DEFINE:MLIVE} == ${OPT}
+${OPT}_RUN_DEPENDS=	${VDRDIR}/libvdr-${OPT:tl}.so.${PORTVERSION}:${PORTSDIR}/www/vdr-plugin-${OPT:tl}
+. else
+${OPT}_RUN_DEPENDS=	${VDRDIR}/libvdr-${OPT:tl}.so.${PORTVERSION}:${PORTSDIR}/multimedia/vdr-plugin-${OPT:tl}
+. endif
+.endfor
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507151800.t6FI0euC087653>