freebsd-ports/net/get_iplayer/Makefile
Chris Rees 7c95466d81 Style and deduplicate information
Submitted by:	jhale
2018-04-08 15:42:29 +00:00

63 lines
1.6 KiB
Makefile

# $FreeBSD$
PORTNAME= get_iplayer
PORTVERSION= 3.13
DISTVERSIONPREFIX=v
CATEGORIES= net multimedia
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:www/p5-HTML-Parser \
p5-HTTP-Cookies>=0:www/p5-HTTP-Cookies \
p5-HTTP-Message>=0:www/p5-HTTP-Message \
p5-XML-Simple>=0:textproc/p5-XML-Simple \
p5-URI>=0:net/p5-URI \
p5-libwww>=0:www/p5-libwww \
p5-Mojolicious>=0:www/p5-Mojolicious \
rtmpdump:multimedia/rtmpdump
USES= perl5 shebangfix
USE_GITHUB= yes
GH_ACCOUNT= get-iplayer
USE_PERL5= run
SHEBANG_FILES= ${PORTNAME} ${PORTNAME}.cgi
NO_BUILD= yes
NO_ARCH= 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}
PORTDOCS= CHANGELOG.md README.md
OPTIONS_DEFINE= DOCS
post-patch:
${REINPLACE_CMD} -e "s|/usr/bin/get_iplayer|${PREFIX}/bin/${PORTNAME}|" \
${WRKSRC}/README.md ${WRKSRC}/get_iplayer.cgi
${REINPLACE_CMD} -e "s|/usr/bin/|${LOCALBASE}/bin|" \
${WRKSRC}/README.md
${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
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}; ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>