summaryrefslogtreecommitdiff
path: root/multimedia/vdr-plugin-streamdev/Makefile
blob: d236bd42d069d6664279625e88c2299deeeaca2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Created by: Juergen Lock <nox@FreeBSD.org>
# $FreeBSD$

PORTNAME=	vdr-plugin-streamdev
PORTVERSION=	0.6.1
PORTREVISION=	3
CATEGORIES=	multimedia
MASTER_SITES=	http://projects.vdr-developer.org/attachments/download/1580/:release \
		LOCAL/nox:snapshot
DISTFILES=	${DISTNAME:S/plugin-//}${EXTRACT_SUFX}:release

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Video Disk Recorder - stream device plugin

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

RUN_DEPENDS=	bash:shells/bash

USES=		shebangfix tar:tgz
SHEBANG_FILES=	streamdev-server/externremux.sh
MAKE_JOBS_UNSAFE=	yes
WRKSRC=		${WRKDIR}/${PLUGIN}-${PORTVERSION}
VDR_PLUGIN_MAKEFILES=\
		${WRKSRC}/client/Makefile \
		${WRKSRC}/server/Makefile

PORTDOCS=	README HISTORY

OPTIONS_DEFINE=	DOCS NLS

.include	"${.CURDIR}/../vdr/Makefile.plugins"

pre-patch:
	@${CP} ${WRKSRC}/Makefile-1.7.33 ${WRKSRC}/Makefile
	@${CP} ${WRKSRC}/client/Makefile-1.7.33 ${WRKSRC}/client/Makefile
	@${CP} ${WRKSRC}/server/Makefile-1.7.33 ${WRKSRC}/server/Makefile

post-patch: post-patch-plugin
	@${LN} -s ../locale ${WRKSRC}
	@${REINPLACE_CMD} '1s-^#!/bin/sh-#!${LOCALBASE}/bin/bash-' \
		${WRKSRC}/${PLUGIN}-server/externremux.sh

pre-install:
	${MKDIR} ${STAGEDIR}${PREFIX}/lib/vdr

post-install: post-install-pluginlocales
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/vdr/plugins/${PLUGIN}-server
	${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}-server/externremux.sh \
		${STAGEDIR}${PREFIX}/etc/vdr/plugins/${PLUGIN}-server/externremux.sh.sample
	${INSTALL_DATA} ${WRKSRC}/${PLUGIN}-server/streamdevhosts.conf \
		${STAGEDIR}${PREFIX}/etc/vdr/plugins/${PLUGIN}-server/streamdevhosts.conf.sample

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>