1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/audio/linux-shoutcast/Makefile

55 lines
1.5 KiB
Makefile
Raw Normal View History

# Ports collection Makefile for: linux-shoutcast
# Date created: 08 Apr 2006
# Whom: Gabor Kovesdan
#
# $FreeBSD$
PORTNAME= shoutcast
2007-06-05 16:41:03 +00:00
PORTVERSION= 1.9.8
CATEGORIES= audio net
MASTER_SITES= http://yp.shoutcast.com/downloads/sc${PORTVERSION:S|.|-|g}/
PKGNAMEPREFIX= linux-
2007-06-05 16:41:03 +00:00
DISTNAME= sc_serv_${PORTVERSION}_Linux
MAINTAINER= steinex@nognu.de
COMMENT= Nullsoft's streaming audio server (Linux binary port)
CONFLICTS= shoutcast-[0-9]*
USE_LINUX= YES
ONLY_FOR_ARCHS= i386 amd64 ia64
NO_BUILD= YES
RESTRICTED= Redistribution of the software is not allowed
USE_RC_SUBR= shoutcast.sh
PORTDOCS= README.TXT
WRKSRC= ${WRKDIR}
post-patch:
@${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//' \
-e 's|=sc_serv.log|=/var/log/sc_serv.log|' \
-e 's|=sc_w3c.log|=/var/log/sc_w3c.log|' \
-e 's|ScreenLog=1|ScreenLog=0|' \
-e 's|RealTime=1|RealTime=0|' \
-e 's|=sc_serv.ban|=${PREFIX}/etc/shoutcast/sc_serv.ban|' \
-e 's|=sc_serv.rip|=${PREFIX}/etc/shoutcast/sc_serv.rip|' \
${WRKSRC}/sc_serv.conf
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/sc_serv ${PREFIX}/sbin
@${MKDIR} ${PREFIX}/etc/shoutcast
@${INSTALL_DATA} ${WRKSRC}/sc_serv.conf ${PREFIX}/etc/shoutcast/sc_serv.conf.sample
@[ -f ${PREFIX}/etc/shoutcast/sc_serv.conf ] || \
${INSTALL_DATA} ${WRKSRC}/sc_serv.conf ${PREFIX}/etc/shoutcast/sc_serv.conf
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README.TXT ${DOCSDIR}
.endif
post-install:
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${BRANDELF} -t Linux ${PREFIX}/sbin/sc_serv
.include <bsd.port.mk>