2013-05-06 00:02:37 +02:00
|
|
|
# Created by: Juergen Lock <nox@freebsd.org>
|
2011-03-26 20:18:39 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= vdr-plugin-iptv
|
2012-07-10 23:49:20 +02:00
|
|
|
PORTVERSION= 1.0.1
|
2012-07-22 11:25:07 +02:00
|
|
|
PORTREVISION= 1
|
2011-03-26 20:18:39 +01:00
|
|
|
CATEGORIES= multimedia
|
|
|
|
MASTER_SITES= http://www.saunalahti.fi/~rahrenbe/vdr/iptv/files/
|
|
|
|
DISTNAME= ${PORTNAME:S/-plugin-/-/}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= nox@FreeBSD.org
|
|
|
|
COMMENT= Video Disk Recorder - IP television plugin
|
|
|
|
|
|
|
|
PATCH_STRIP= -p1
|
|
|
|
HAVE_CONFIGURE= yes
|
2012-06-19 20:42:12 +02:00
|
|
|
PORTDOCS= COPYING README HISTORY
|
2011-03-26 20:18:39 +01:00
|
|
|
PORTEXAMPLES= channels.conf.iptv
|
2012-07-10 23:49:20 +02:00
|
|
|
MAKE_ARGS+= IPTV_EXTSHELL=/bin/sh
|
2011-03-26 20:18:39 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PLUGIN}-${DISTVERSION}
|
|
|
|
|
|
|
|
.include "${.CURDIR}/../vdr/Makefile.plugins"
|
|
|
|
|
|
|
|
post-patch: post-patch-plugin
|
2013-05-06 00:02:37 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|^\(CHANNELS_CONF[[:space:]]*\)[?]*\(=[[:space:]]*\).*|\1\2${PREFIX}/etc/vdr/channels.conf|;' \
|
|
|
|
-e 's|^\(CHANNEL_SETTINGS_DIR[[:space:]]*\)[?]*\(=[[:space:]]*\)/etc|\1\2${PREFIX}/etc|;' \
|
2011-03-26 20:18:39 +01:00
|
|
|
${WRKSRC}/iptv/vlc2iptv
|
|
|
|
|
|
|
|
post-install: post-install-pluginlocales
|
|
|
|
@${MKDIR} ${PREFIX}/etc/vdr/plugins/${PLUGIN}
|
|
|
|
@${MKDIR} ${PREFIX}/etc/vdr/plugins/${PLUGIN}/vlcinput
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/vlcinput/*.conf ${PREFIX}/etc/vdr/plugins/${PLUGIN}/vlcinput
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/image.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}/image.sh.sample
|
|
|
|
@if [ ! -f ${PREFIX}/etc/vdr/plugins/${PLUGIN}/image.sh ]; then \
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/image.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}; \
|
|
|
|
fi
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/internetradio.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}/internetradio.sh.sample
|
|
|
|
@if [ ! -f ${PREFIX}/etc/vdr/plugins/${PLUGIN}/internetradio.sh ]; then \
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/internetradio.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}; \
|
|
|
|
fi
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/iptvstream-notrap.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}/iptvstream-notrap.sh.sample
|
|
|
|
@if [ ! -f ${PREFIX}/etc/vdr/plugins/${PLUGIN}/iptvstream-notrap.sh ]; then \
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/iptvstream-notrap.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}; \
|
|
|
|
fi
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/iptvstream.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}/iptvstream.sh.sample
|
|
|
|
@if [ ! -f ${PREFIX}/etc/vdr/plugins/${PLUGIN}/iptvstream.sh ]; then \
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/iptvstream.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}; \
|
|
|
|
fi
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/linein.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}/linein.sh.sample
|
|
|
|
@if [ ! -f ${PREFIX}/etc/vdr/plugins/${PLUGIN}/linein.sh ]; then \
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/linein.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}; \
|
|
|
|
fi
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/vlc2iptv ${PREFIX}/etc/vdr/plugins/${PLUGIN}/vlc2iptv.sample
|
|
|
|
@if [ ! -f ${PREFIX}/etc/vdr/plugins/${PLUGIN}/vlc2iptv ]; then \
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/vlc2iptv ${PREFIX}/etc/vdr/plugins/${PLUGIN}; \
|
|
|
|
fi
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/webcam.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}/webcam.sh.sample
|
|
|
|
@if [ ! -f ${PREFIX}/etc/vdr/plugins/${PLUGIN}/webcam.sh ]; then \
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/webcam.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}; \
|
|
|
|
fi
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/channels.conf.iptv ${EXAMPLESDIR}
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR})
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|