9637f7852e
pkglint -r --network --only "migrate" As a side-effect of migrating the homepages, pkglint also fixed a few indentations in unrelated lines. These and the new homepages have been checked manually.
58 lines
1.6 KiB
Makefile
58 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.34 2020/01/26 17:30:42 rillig Exp $
|
|
#
|
|
|
|
DISTNAME= icecast-1.3.12
|
|
PKGREVISION= 15
|
|
CATEGORIES= audio
|
|
MASTER_SITES= http://downloads.xiph.org/releases/icecast/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://www.icecast.org/
|
|
COMMENT= Internet broadcasting system using Mpeg Layer III streaming
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
RCD_SCRIPTS= icecast
|
|
PKG_SYSCONFSUBDIR= icecast
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV+= VARBASE=${VARBASE}
|
|
CONFIGURE_ARGS+= --with-readline \
|
|
--with-libwrap \
|
|
--with-python \
|
|
--sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
CPPFLAGS+= -I${BUILDLINK_PREFIX.editlinereadline}/include/readline
|
|
CPPFLAGS+= ${BUILDLINK_CPPFLAGS.${PYPACKAGE}}
|
|
LDFLAGS+= ${BUILDLINK_LDFLAGS.${PYPACKAGE}}
|
|
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
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
.if ${OPSYS} != "SunOS"
|
|
LIBS+= -lutil
|
|
.endif
|
|
|
|
ICECAST_SOURCE_BUFFSIZE?= 8192
|
|
ICECAST_CHUNKLEN?= 64
|
|
|
|
BUILD_DEFS+= ICECAST_SOURCE_BUFFSIZE
|
|
BUILD_DEFS+= ICECAST_CHUNKLEN
|
|
|
|
SUBST_CLASSES+= ice
|
|
SUBST_STAGE.ice= pre-configure
|
|
SUBST_MESSAGE.ice= Configuring in src/icetypes.h
|
|
SUBST_FILES.ice= src/icetypes.h
|
|
SUBST_SED.ice= -e 's/@SOURCE_BUFFSIZE@/${ICECAST_SOURCE_BUFFSIZE}/'
|
|
SUBST_SED.ice+= -e 's/@CHUNKLEN@/${ICECAST_CHUNKLEN}/'
|
|
|
|
.include "../../mk/readline.buildlink3.mk"
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../security/tcp_wrappers/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|