50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.100 2016/06/11 22:15:05 sthen Exp $
|
|
|
|
COMMENT= download/stream programmes from BBC iPlayer
|
|
|
|
# `a' suffix needs to stay until at least 2.95 proper
|
|
DISTNAME= get_iplayer-2.95pre20160611a
|
|
GH_ACCOUNT= get-iplayer
|
|
GH_PROJECT= get_iplayer
|
|
GH_COMMIT= 96da6fc1decb8836a75100065a7fc28e822304f0
|
|
|
|
CATEGORIES= multimedia
|
|
|
|
HOMEPAGE= http://www.infradead.org/get_iplayer/
|
|
|
|
# GPLv3+
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
|
|
|
RUN_DEPENDS= audio/p5-MP3-Tag \
|
|
graphics/ffmpeg \
|
|
multimedia/atomicparsley \
|
|
net/rtmpdump>=2.4 \
|
|
textproc/p5-XML-Simple \
|
|
www/p5-HTML-Parser>=3.71 \
|
|
www/p5-LWP-Protocol-https \
|
|
www/p5-libwww>=6.0
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
|
|
NO_TEST= Yes
|
|
PKG_ARCH= *
|
|
|
|
pre-configure:
|
|
${SUBST_CMD} ${WRKSRC}/get_iplayer
|
|
|
|
do-build:
|
|
-cd ${WRKSRC}; env -i HOME=${WRKSRC} ./get_iplayer --manpage get_iplayer.1
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/get_iplayer/plugins
|
|
${SUBST_DATA} -m 644 \
|
|
${FILESDIR}/options.sample ${PREFIX}/share/get_iplayer/options.sample
|
|
${INSTALL_SCRIPT} ${WRKSRC}/get_iplayer ${PREFIX}/bin
|
|
sed -i 's,2.95-dev,2.95-dev-${GH_COMMIT:C/(.{9}).*/\1/},' \
|
|
${PREFIX}/bin/get_iplayer
|
|
${INSTALL_MAN} ${WRKSRC}/get_iplayer.1 ${PREFIX}/man/man1
|
|
|
|
.include <bsd.port.mk>
|