blob: 2879b4110b9e9cca6d22895f310699c61108848b (
plain) (
blame)
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
|
# New ports collection makefile for: vdr-plugin-streamdev
# Date created: Wed Apr 14 18:11:42 CEST 2010
# Whom: Juergen Lock <nox@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= vdr-plugin-streamdev
PORTVERSION= 0.5.2
PORTREVISION= 2
CATEGORIES= multimedia
MASTER_SITES= http://projects.vdr-developer.org/attachments/download/953/:release \
LOCAL:snapshot
MASTER_SITE_SUBDIR= nox/:snapshot
DISTFILES= ${DISTNAME:S/plugin-//}${EXTRACT_SUFX}:release
EXTRACT_SUFX= .tgz
MAINTAINER= nox@FreeBSD.org
COMMENT= Video Disk Recorder - stream device plugin
RUN_DEPENDS+= bash:${PORTSDIR}/shells/bash
PORTDOCS= COPYING README HISTORY
HAVE_CONFIGURE= yes
MAKE_JOBS_UNSAFE= yes
WRKSRC= ${WRKDIR}/${PLUGIN}-${PORTVERSION}
VDR_PLUGIN_MAKEFILES= ${WRKSRC}/client/Makefile \
${WRKSRC}/server/Makefile
.include "${.CURDIR}/../vdr/Makefile.plugins"
post-patch: post-patch-plugin
@${LN} -s ../locale ${WRKSRC}
@${REINPLACE_CMD} '1s-^#!/bin/sh-#!${LOCALBASE}/bin/bash-' \
${WRKSRC}/${PLUGIN}-server/externremux.sh
post-install: post-install-pluginlocales
@${MKDIR} ${PREFIX}/etc/vdr/plugins/${PLUGIN}-server
@${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}-server/externremux.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}-server/externremux.sh.sample
@${INSTALL_DATA} ${WRKSRC}/${PLUGIN}-server/streamdevhosts.conf ${PREFIX}/etc/vdr/plugins/${PLUGIN}-server/streamdevhosts.conf.sample
@if [ ! -f ${PREFIX}/etc/vdr/plugins/${PLUGIN}-server/externremux.sh ]; then \
${INSTALL_SCRIPT} -o ${VDR_USER} -g ${VDR_GROUP} ${WRKSRC}/${PLUGIN}-server/externremux.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}-server; \
fi
@if [ ! -f ${PREFIX}/etc/vdr/plugins/${PLUGIN}-server/streamdevhosts.conf ]; then \
${INSTALL_DATA} -o ${VDR_USER} -g ${VDR_GROUP} ${WRKSRC}/${PLUGIN}-server/streamdevhosts.conf ${PREFIX}/etc/vdr/plugins/${PLUGIN}-server; \
fi
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR})
.endif
.include <bsd.port.mk>
|