diff options
author | nox <nox@FreeBSD.org> | 2015-07-16 02:00:39 +0800 |
---|---|---|
committer | nox <nox@FreeBSD.org> | 2015-07-16 02:00:39 +0800 |
commit | 30a68bc89c10f725912c6f0ad0dcad7db77b171f (patch) | |
tree | abb0d922953fec428c017529fc32cf6f406b863e | |
parent | b08777ded2480cfbf0b44a247f041dda04187655 (diff) | |
download | freebsd-ports-gnome-30a68bc89c10f725912c6f0ad0dcad7db77b171f.tar.gz freebsd-ports-gnome-30a68bc89c10f725912c6f0ad0dcad7db77b171f.tar.zst freebsd-ports-gnome-30a68bc89c10f725912c6f0ad0dcad7db77b171f.zip |
Use OPTIONS helpers, convert to USES=metaport.
PR: 201574
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
-rw-r--r-- | multimedia/vdr-plugins/Makefile | 92 |
1 files changed, 13 insertions, 79 deletions
diff --git a/multimedia/vdr-plugins/Makefile b/multimedia/vdr-plugins/Makefile index dec0405ddc0d..55249b53ee4a 100644 --- a/multimedia/vdr-plugins/Makefile +++ b/multimedia/vdr-plugins/Makefile @@ -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 INFOSATEPG IPTV OSDPIP \ 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> |