summaryrefslogtreecommitdiff
path: root/package/icecast/Makefile
blob: 9428af1dfc95345dee4b782bc59e9535538734e8 (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
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		icecast
PKG_VERSION:=		2.3.2
PKG_RELEASE:=		1
PKG_BUILDDEP+=		curl libvorbis libxml2 libxslt
PKG_MD5SUM:=		ff516b3ccd2bcc31e68f460cd316093f
PKG_DESCR:=		A streaming media server
PKG_SECTION:=		net
PKG_DEPENDS:=		libcurl libvorbis libpthread libxml2 libxslt
PKG_URL:=		http://www.icecast.org/
PKG_SITES:=		http://downloads.us.xiph.org/releases/icecast/

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,ICECAST,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

AUTOTOOL_STYLE:=	autotool

TCPPFLAGS+=		-I${STAGING_DIR}/usr/include/libxml2
CONFIGURE_ARGS+=	--disable-yp \
			--with-curl="yes" \
			--with-curl-config="${STAGING_DIR}/usr/bin/curl-config" \
			--with-ogg="${STAGING_DIR}/usr" \
			--with-vorbis="${STAGING_DIR}/usr" \
			--with-speex="no" \
			--with-theora="no" \
			--with-xslt-config="${STAGING_DIR}/usr/bin/xslt-config"

post-install:
	${INSTALL_DIR} ${IDIR_ICECAST}/etc
	${CP} ${WRKINST}/etc/icecast.xml ${IDIR_ICECAST}/etc/
	${INSTALL_DIR} ${IDIR_ICECAST}/usr/bin
	${INSTALL_BIN} ${WRKINST}/usr/bin/icecast ${IDIR_ICECAST}/usr/bin/
	${INSTALL_DIR} ${IDIR_ICECAST}/usr/share/icecast
	${CP} ${WRKINST}/usr/share/icecast/admin \
		${IDIR_ICECAST}/usr/share/icecast/
	${CP} ${WRKINST}/usr/share/icecast/web \
		${IDIR_ICECAST}/usr/share/icecast/

include ${TOPDIR}/mk/pkg-bottom.mk