freebsd-ports/net/get_iplayer/Makefile
Chris Rees 84f93e909b Update to 2.91
PR:		196690
Submitted by:	markk@knigma.org
2015-01-13 19:24:42 +00:00

70 lines
2.0 KiB
Makefile

# $FreeBSD$
PORTNAME= get_iplayer
PORTVERSION= 2.91
CATEGORIES= net multimedia
MASTER_SITES= ftp://ftp.infradead.org/pub/${PORTNAME}/ \
http://www.bayofrum.net/dist/${PORTNAME}/
MAINTAINER= crees@FreeBSD.org
COMMENT= Search, index, or stream archive video from BBC iPlayer
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
RUN_DEPENDS= p5-HTML-Parser>=0:${PORTSDIR}/www/p5-HTML-Parser \
p5-HTTP-Cookies>=0:${PORTSDIR}/www/p5-HTTP-Cookies \
p5-HTTP-Message>=0:${PORTSDIR}/www/p5-HTTP-Message \
p5-XML-Simple>=0:${PORTSDIR}/textproc/p5-XML-Simple \
p5-URI>=0:${PORTSDIR}/net/p5-URI \
p5-libwww>=0:${PORTSDIR}/www/p5-libwww \
rtmpdump:${PORTSDIR}/multimedia/rtmpdump
USES= perl5 shebangfix
USE_PERL5= run
perl_OLD_CMD= ${SETENV} perl
SHEBANG_FILES= ${PORTNAME} ${PORTNAME}.cgi
NO_BUILD= yes
USE_RC_SUBR= ${PORTNAME}
USERS= get_iplayer
GROUPS= get_iplayer
SCRIPTS= ${PORTNAME} ${PORTNAME}.cgi
PLIST_FILES= bin/${PORTNAME} ${SCRIPTS:S,^,${WWWDIR_REL}/,} \
man/man1/${PORTNAME}.1.gz
DATADIR= ${WWWDIR}
PORTDATA= html plugins
PORTDOCS= CHANGELOG-get_iplayer.cgi.txt CHANGELOG.txt \
README-get_iplayer.cgi.txt README.md web.sh
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
${REINPLACE_CMD} -e "s|/usr/bin/get_iplayer|${PREFIX}/bin/${PORTNAME}|" \
${WRKSRC}/README-get_iplayer.cgi.txt ${WRKSRC}/get_iplayer.cgi
${REINPLACE_CMD} -e "s|/usr/bin/|${LOCALBASE}/bin|" \
${WRKSRC}/README-get_iplayer.cgi.txt
${REINPLACE_CMD} -e "s|/usr/share/get_iplayer|${WWWDIR}|" \
${WRKSRC}/get_iplayer
do-install:
${MKDIR} ${STAGEDIR}${WWWDIR}
(cd ${WRKSRC}; ${INSTALL_SCRIPT} ${SCRIPTS} ${STAGEDIR}${WWWDIR})
${LN} -sf ${WWWDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1
.for DIR in html plugins
(cd ${WRKSRC} && ${COPYTREE_SHARE} ${DIR} ${STAGEDIR}${WWWDIR})
.endfor
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}; ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
.endif
.include <bsd.port.mk>