blob: 89a75ff2f6646d469b77947f499b8dc5d14190ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# $NetBSD: Makefile,v 1.4 2004/04/11 05:48:34 kim Exp $
#
DISTNAME= icecast-1.3.12
PKGREVISION= 2
CATEGORIES= audio
MASTER_SITES= http://www.icecast.org/releases/
MAINTAINER= kim@tac.nyc.ny.us
HOMEPAGE= http://www.icecast.org/
COMMENT= Internet broadcasting system using Mpeg Layer III streaming
USE_BUILDLINK2= # defined
GNU_CONFIGURE= # defined
USE_PKGINSTALL= yes
RCD_SCRIPTS= icecast
PKG_SYSCONFSUBDIR= icecast
CONFIGURE_ARGS+= --with-readline \
--with-libwrap \
--with-python \
--sysconfdir=${PKG_SYSCONFDIR}
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+= native
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 "../../mk/bsd.prefs.mk"
ICECAST_SOURCE_BUFFSIZE?= 8192
ICECAST_CHUNKLEN?= 64
BUILD_DEFS+= ICECAST_SOURCE_BUFFSIZE
BUILD_DEFS+= ICECAST_CHUNKLEN
pre-configure:
@${MV} ${WRKSRC}/src/icetypes.h ${WRKSRC}/src/icetypes.h.bak
@${SED} \
-e 's/@SOURCE_BUFFSIZE@/${ICECAST_SOURCE_BUFFSIZE}/' \
-e 's/@CHUNKLEN@/${ICECAST_CHUNKLEN}/' \
${WRKSRC}/src/icetypes.h.bak > ${WRKSRC}/src/icetypes.h
.include "../../devel/readline/buildlink2.mk"
.include "../../lang/python/application.mk"
.include "../../security/tcp_wrappers/buildlink2.mk"
.include "../../mk/pthread.buildlink2.mk"
.include "../../devel/readline/buildlink2.mk"
.include "../../lang/python/application.mk"
.include "../../security/tcp_wrappers/buildlink2.mk"
.include "../../mk/pthread.buildlink2.mk"
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none")
. include "../../devel/unproven-pthreads/buildlink2.mk"
.endif
.include "../../mk/bsd.pkg.mk"
|