2004-10-03 02:12:51 +02:00
|
|
|
# $NetBSD: Makefile,v 1.26 2004/10/03 00:13:06 tv Exp $
|
2000-11-21 07:02:28 +01:00
|
|
|
#
|
|
|
|
|
2004-06-24 20:20:03 +02:00
|
|
|
DISTNAME= icecast-2.0.1
|
2004-10-03 02:12:51 +02:00
|
|
|
PKGREVISION= 2
|
2004-01-08 21:49:39 +01:00
|
|
|
CATEGORIES= audio
|
|
|
|
MASTER_SITES= http://www.icecast.org/files/
|
2000-11-21 07:02:28 +01:00
|
|
|
|
2004-01-08 21:49:39 +01:00
|
|
|
MAINTAINER= pancake@phreaker.net
|
|
|
|
HOMEPAGE= http://www.icecast.org/
|
|
|
|
COMMENT= Live streaming audio server
|
2000-11-21 07:02:28 +01:00
|
|
|
|
2004-02-19 12:51:48 +01:00
|
|
|
USE_BUILDLINK3= yes
|
2004-01-08 21:49:39 +01:00
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
USE_LIBTOOL= yes
|
2003-09-30 12:30:33 +02:00
|
|
|
USE_PKGINSTALL= yes
|
2004-01-08 21:49:39 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
|
|
|
BUILD_DEFS+= ICECAST_CHROOTDIR
|
2003-09-30 12:30:33 +02:00
|
|
|
|
|
|
|
PKG_SYSCONFSUBDIR= icecast
|
2004-01-08 21:49:39 +01:00
|
|
|
RCD_SCRIPTS= icecast
|
|
|
|
|
|
|
|
ICECAST_LOGDIR?= ${ICECAST_CHROOTDIR}/log
|
2003-09-30 12:30:33 +02:00
|
|
|
|
2004-01-08 21:49:39 +01:00
|
|
|
ICECAST_USER?= icecast
|
|
|
|
ICECAST_GROUP?= icecast
|
|
|
|
|
|
|
|
PKG_GROUPS= ${ICECAST_GROUP}
|
|
|
|
PKG_USERS= ${ICECAST_USER}:${ICECAST_GROUP}::Icecast2\\ user
|
2000-11-21 07:02:28 +01:00
|
|
|
|
2003-09-30 12:30:33 +02:00
|
|
|
EGDIR= ${PREFIX}/share/examples/icecast
|
2004-01-08 21:49:39 +01:00
|
|
|
CONF_FILES= ${EGDIR}/icecast.xml ${PKG_SYSCONFDIR}/icecast.xml
|
2003-09-30 12:30:33 +02:00
|
|
|
|
2004-01-12 07:05:16 +01:00
|
|
|
OWN_DIRS_PERMS= ${ICECAST_CHROOTDIR} ${ICECAST_USER} ${ICECAST_GROUP} 770
|
|
|
|
OWN_DIRS_PERMS+= ${ICECAST_LOGDIR} ${ICECAST_USER} ${ICECAST_GROUP} 770
|
2003-10-18 15:08:48 +02:00
|
|
|
|
2004-01-08 21:49:39 +01:00
|
|
|
post-extract:
|
|
|
|
@${MV} ${WRKSRC}/conf/icecast.xml.in ${WRKSRC}/conf/icecast.fixme
|
2002-08-01 08:40:50 +02:00
|
|
|
|
2004-01-08 21:49:39 +01:00
|
|
|
post-install:
|
|
|
|
@( \
|
|
|
|
${SED} \
|
|
|
|
-e "s,@BASEDIR@,${ICECAST_CHROOTDIR},g" \
|
|
|
|
-e "s,@LOGDIR@,log/,g" \
|
|
|
|
-e "s,@WEBROOT@,${PREFIX}/share/icecast/web,g" \
|
|
|
|
-e "s,@ADMINROOT@,${PREFIX}/share/icecast/admin,g" \
|
|
|
|
-e "s,@PIDDIR@,${ICECAST_CHROOTDIR},g" \
|
|
|
|
-e "s,@ICECAST_USER@,${ICECAST_USER},g" \
|
|
|
|
-e "s,@ICECAST_GROUP@,${ICECAST_GROUP},g" \
|
|
|
|
${WRKSRC}/conf/icecast.fixme > ${WRKSRC}/conf/icecast.xml; \
|
|
|
|
${INSTALL_DATA_DIR} ${EGDIR}; \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/conf/icecast.xml ${EGDIR} \
|
|
|
|
)
|
2000-11-21 07:02:28 +01:00
|
|
|
|
2004-02-19 12:51:48 +01:00
|
|
|
.include "../../audio/libvorbis/buildlink3.mk"
|
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
|
|
.include "../../textproc/libxslt/buildlink3.mk"
|
|
|
|
.include "../../www/curl/buildlink3.mk"
|
2004-01-08 21:49:39 +01:00
|
|
|
|
2004-02-19 12:51:48 +01:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2000-11-21 07:02:28 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|