aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/vdr-plugin-streamdev/Makefile
blob: cee2d5d633cd2d972599fd7e418a6bcd0d551885 (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
53
# 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.1
PORTREVISION=   6
CATEGORIES= multimedia
MASTER_SITES=   http://projects.vdr-developer.org/attachments/download/497/:release \
        LOCAL:snapshot
MASTER_SITE_SUBDIR= nox/:snapshot
DISTNAME=   ${PORTNAME:S/-plugin-/-/}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX}:release

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

RUN_DEPENDS+=   bash:${PORTSDIR}/shells/bash

EXTRACT_SUFX=   .tgz
PORTDOCS=   COPYING README
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>