diff options
Diffstat (limited to 'net/ccxstream/Makefile')
-rw-r--r-- | net/ccxstream/Makefile | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/net/ccxstream/Makefile b/net/ccxstream/Makefile new file mode 100644 index 000000000000..14a364b2a5f7 --- /dev/null +++ b/net/ccxstream/Makefile @@ -0,0 +1,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> |