59121a6ad2e5bd09d773bc46e314416e9a816a47
[packages.git] / net / icecast / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=icecast
12 PKG_VERSION:=2.3.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://downloads.us.xiph.org/releases/icecast/
17 PKG_MD5SUM:=35256fbc4a93571662af2ed18fbbfcc5
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/icecast
25   SECTION:=net
26   CATEGORY:=Network
27   DEPENDS:=+libcurl +libvorbisidec +libxml2 +libxslt
28   TITLE:=A streaming media server for Ogg/Vorbis and MP3 audio streams
29   URL:=http://www.icecast.org/
30   SUBMENU:=multimedia
31 endef
32
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 
39         interaction.
40 endef
41
42
43 define Build/Configure
44         $(call Build/Configure/Default, \
45                 --enable-yp \
46                 --with-curl="yes" \
47                 --with-curl-config="$(STAGING_DIR)/usr/bin/curl-config" \
48                 --with-ogg="$(STAGING_DIR)/usr" \
49                 --with-speex="no" \
50                 --with-theora="no" \
51                 --with-vorbis="$(STAGING_DIR)/usr" \
52                 --with-xslt-config="$(STAGING_DIR)/usr/bin/xslt-config" \
53                 , \
54                 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include/libxml2 " \
55         )
56 endef
57
58 define Build/Compile    
59         $(MAKE) -C $(PKG_BUILD_DIR) \
60                 DESTDIR="$(PKG_INSTALL_DIR)" \
61                 all install
62 endef
63
64 define Package/icecast/install  
65         $(INSTALL_DIR) $(1)/etc
66         $(CP) $(PKG_INSTALL_DIR)/etc/icecast.xml $(1)/etc/
67         $(INSTALL_DIR) $(1)/usr/bin
68         $(CP) $(PKG_INSTALL_DIR)/usr/bin/icecast $(1)/usr/bin/
69         $(INSTALL_DIR) $(1)/usr/share/icecast
70         $(CP) $(PKG_INSTALL_DIR)/usr/share/icecast/admin $(1)/usr/share/icecast/
71         $(CP) $(PKG_INSTALL_DIR)/usr/share/icecast/web $(1)/usr/share/icecast/
72 endef
73
74 $(eval $(call BuildPackage,icecast))