2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://downloads.us.xiph.org
/releases
/icecast
/
17 PKG_MD5SUM
:=ff516b3ccd2bcc31e68f460cd316093f
19 include $(INCLUDE_DIR
)/package.mk
21 TREMOR_BUILD_DIR
=$(PKG_BUILD_DIR
)/libvorbisidec-1.2
.0-dave
22 TREMOR_DIR
=$(TREMOR_BUILD_DIR
)/ipkg-install
/usr
24 define Package
/icecast
27 DEPENDS
:=+libcurl
+libxml2
+libxslt
+libogg
28 TITLE
:=A streaming media server for Ogg
/Vorbis and MP3 audio streams
29 URL
:=http
://www.icecast.org
/
33 define Package
/icecast
/description
34 Icecast is a streaming media server which currently supports Ogg
35 Vorbis and MP3 audio streams. It can be used to create an Internet
36 radio station or a privately running jukebox and many things in
37 between. It is very versatile in that new formats can be added
38 relatively easily and supports open standards for commuincation and
43 $(Build
/Prepare
/Default
)
44 $(SUBMAKE
) -f libvorbisidec.mk \
45 BUILD_DIR
="$(PKG_BUILD_DIR)" \
50 define Build
/Configure
51 $(MAKE
) -f libvorbisidec.mk \
52 BUILD_DIR
="$(PKG_BUILD_DIR)" \
55 $(SED
) 's,-lvorbisidec,$(TREMOR_DIR)/lib/libvorbisidec.a,g' $(PKG_BUILD_DIR
)/configure
56 $(call Build
/Configure
/Default
, \
59 --with-curl-config
="$(STAGING_DIR)/usr/bin/curl-config" \
60 --with-ogg
="$(TREMOR_DIR)" \
63 --with-vorbis
="$(TREMOR_DIR)" \
64 --with-xslt-config
="$(STAGING_DIR)/usr/bin/xslt-config" \
66 CPPFLAGS
="-I$(TREMOR_DIR)/include -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include/libxml2 " \
71 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
72 DESTDIR
="$(PKG_INSTALL_DIR)" \
76 define Package
/icecast
/install
77 $(INSTALL_DIR
) $(1)/etc
78 $(CP
) $(PKG_INSTALL_DIR
)/etc
/icecast.xml
$(1)/etc
/
79 $(INSTALL_DIR
) $(1)/usr
/bin
80 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/icecast
$(1)/usr
/bin
/
81 $(INSTALL_DIR
) $(1)/usr
/share
/icecast
82 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/icecast
/admin
$(1)/usr
/share
/icecast
/
83 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/icecast
/web
$(1)/usr
/share
/icecast
/
86 $(eval
$(call BuildPackage
,icecast
))