pkgsrc-wip/icecast/Makefile

50 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.3 2004/05/02 21:04:13 blef Exp $
#
DISTNAME= icecast-1.3.12
PKGREVISION= 2
CATEGORIES= audio
MASTER_SITES= http://www.icecast.org/files/
MAINTAINER= hubertf@NetBSD.org
HOMEPAGE= http://www.icecast.org/
COMMENT= Internet broadcasting system using Mpeg Layer III streaming
USE_BUILDLINK3= yes
GNU_CONFIGURE= # defined
USE_PKGINSTALL= yes
RCD_SCRIPTS= icecast
PKG_SYSCONFSUBDIR= icecast
.include "../../mk/bsd.prefs.mk"
CONFIGURE_ARGS+= --with-readline \
--with-libwrap
.if defined(ICECAST_USE_PYTHON) && ${ICECAST_USE_PYTHON} == YES
CONFIGURE_ARGS+= --with-python
.include "../../lang/python/application.mk"
.endif
CPPFLAGS+= -I${BUILDLINK_PREFIX.readline}/include/readline
CPPFLAGS+= ${BUILDLINK_CPPFLAGS.${PYPACKAGE}}
CFLAGS+= ${PTHREAD_CFLAGS}
LDFLAGS+= ${PTHREAD_LDFLAGS}
LDFLAGS+= ${BUILDLINK_LDFLAGS.${PYPACKAGE}}
LIBS+= -lutil
PTHREAD_OPTS+= require
EGDIR= ${PREFIX}/share/examples/icecast
EGFILES= groups.aut mounts.aut users.aut icecast.conf
.for f in ${EGFILES}
CONF_FILES+= ${EGDIR}/${f}.dist ${PKG_SYSCONFDIR}/${f}
.endfor
.undef f
.include "../../devel/readline/buildlink3.mk"
.include "../../security/tcp_wrappers/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"