blob: 14a364b2a5f7738f30ca487cc46b9f80d6e0bbe4 (
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
|
# Ports collection makefile for: ccxstream
# Date created: 2004-08-14
# Whom: Michael Handler <handler@grendel.net>
#
# $FreeBSD$
#
PORTNAME= ccxstream
PORTVERSION= 1.0.15
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= xbplayer
MAINTAINER= handler@grendel.net
COMMENT= Stream media files to XBox Media Center via XBMSP
USE_GMAKE= yes
USE_RC_SUBR= yes
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
SAMPLERC= ${PORTNAME}.sh.sample
REALRC= ${SAMPLERC:S/.sample//}
PLIST_FILES= bin/ccxstream bin/ccxtest etc/rc.d/${REALRC}
.if !defined(NOPORTDOCS)
PORTDOCS= README ChangeLog TODO xbmsp-xml.txt xbmsp.txt
.endif
post-build:
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${FILESDIR}/${SAMPLERC} > ${WRKDIR}/${SAMPLERC}
do-install:
@${MKDIR} ${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/ccxstream ${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/ccxtest ${PREFIX}/bin
@${INSTALL_SCRIPT} ${WRKDIR}/${SAMPLERC} ${PREFIX}/etc/rc.d/${REALRC}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/
.endfor
.endif
post-install:
@${CAT} pkg-message
.include <bsd.port.mk>
|