2 # Copyright (C) 2006 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
:=35256fbc4a93571662af2ed18fbbfcc5
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(INCLUDE_DIR
)/package.mk
24 TREMOR_BUILD_DIR
=$(PKG_BUILD_DIR
)/libvorbisidec-1.2
.0-dave
25 TREMOR_DIR
=$(TREMOR_BUILD_DIR
)/ipkg-install
/usr
27 define Package
/icecast
30 DEPENDS
:=+libcurl
+libvorbisidec
+libxml2
+libxslt
31 TITLE
:=A streaming media server for Ogg
/Vorbis and MP3 audio streams
32 URL
:=http
://www.icecast.org
/
36 define Package
/icecast
/description
37 Icecast is a streaming media server which currently supports Ogg
38 Vorbis and MP3 audio streams. It can be used to create an Internet
39 radio station or a privately running jukebox and many things in
40 between. It is very versatile in that new formats can be added
41 relatively easily and supports open standards for commuincation and
46 $(Build
/Prepare
/Default
)
47 $(SUBMAKE
) -f libvorbisidec.mk \
48 BUILD_DIR
="$(PKG_BUILD_DIR)" \
53 define Build
/Configure
54 $(MAKE
) -f libvorbisidec.mk \
55 BUILD_DIR
="$(PKG_BUILD_DIR)" \
58 $(SED
) 's,-lvorbisidec,$(TREMOR_DIR)/lib/libvorbisidec.a,g' $(PKG_BUILD_DIR
)/configure
59 $(call Build
/Configure
/Default
, \
62 --with-curl-config
="$(STAGING_DIR)/usr/bin/curl-config" \
63 --with-ogg
="$(TREMOR_DIR)" \
66 --with-vorbis
="$(TREMOR_DIR)" \
67 --with-xslt-config
="$(STAGING_DIR)/usr/bin/xslt-config" \
69 CPPFLAGS
="-I$(TREMOR_DIR)/include -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include/libxml2 " \
74 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
75 DESTDIR
="$(PKG_INSTALL_DIR)" \
79 define Package
/icecast
/install
80 $(INSTALL_DIR
) $(1)/etc
81 $(CP
) $(PKG_INSTALL_DIR
)/etc
/icecast.xml
$(1)/etc
/
82 $(INSTALL_DIR
) $(1)/usr
/bin
83 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/icecast
$(1)/usr
/bin
/
84 $(INSTALL_DIR
) $(1)/usr
/share
/icecast
85 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/icecast
/admin
$(1)/usr
/share
/icecast
/
86 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/icecast
/web
$(1)/usr
/share
/icecast
/
89 $(eval
$(call BuildPackage
,icecast
))