[packages] Add missing libtool fixups
[openwrt/svn-archive/archive.git] / net / icecast / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=icecast
11 PKG_VERSION:=2.3.2
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://downloads.us.xiph.org/releases/icecast/
16 PKG_MD5SUM:=ff516b3ccd2bcc31e68f460cd316093f
17
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 TREMOR_BUILD_DIR=$(PKG_BUILD_DIR)/libvorbisidec-1.2.0-dave
23 TREMOR_DIR=$(TREMOR_BUILD_DIR)/ipkg-install/usr
24
25 define Package/icecast
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+libcurl +libxml2 +libxslt +libogg
29 TITLE:=A streaming media server for Ogg/Vorbis and MP3 audio streams
30 URL:=http://www.icecast.org/
31 SUBMENU:=multimedia
32 endef
33
34 define Package/icecast/description
35 Icecast is a streaming media server which currently supports Ogg
36 Vorbis and MP3 audio streams. It can be used to create an Internet
37 radio station or a privately running jukebox and many things in
38 between. It is very versatile in that new formats can be added
39 relatively easily and supports open standards for commuincation and
40 interaction.
41 endef
42
43 define Build/Prepare
44 $(Build/Prepare/Default)
45 $(SUBMAKE) -f libvorbisidec.mk \
46 BUILD_DIR="$(PKG_BUILD_DIR)" \
47 V=99 \
48 prepare
49 endef
50
51 define Build/Configure
52 $(MAKE) -f libvorbisidec.mk \
53 BUILD_DIR="$(PKG_BUILD_DIR)" \
54 V=99 \
55 compile
56 $(SED) 's,-lvorbisidec,$(TREMOR_DIR)/lib/libvorbisidec.a,g' $(PKG_BUILD_DIR)/configure
57 $(call Build/Configure/Default, \
58 --enable-yp \
59 --with-curl="yes" \
60 --with-curl-config="$(STAGING_DIR)/usr/bin/curl-config" \
61 --with-ogg="$(TREMOR_DIR)" \
62 --with-speex="no" \
63 --with-theora="no" \
64 --with-vorbis="$(TREMOR_DIR)" \
65 --with-xslt-config="$(STAGING_DIR)/usr/bin/xslt-config" \
66 , \
67 CPPFLAGS="-I$(TREMOR_DIR)/include -I$(STAGING_DIR)/usr/include/libxml2 $(TARGET_CPPFLAGS)" \
68 )
69 endef
70
71 define Build/Compile
72 $(MAKE) -C $(PKG_BUILD_DIR) \
73 DESTDIR="$(PKG_INSTALL_DIR)" \
74 INCLUDES="-I$(PKG_BUILD_DIR)/src -I$(TREMOR_DIR)/include" \
75 all install
76 endef
77
78 define Package/icecast/install
79 $(INSTALL_DIR) $(1)/etc
80 $(CP) $(PKG_INSTALL_DIR)/etc/icecast.xml $(1)/etc/
81 $(INSTALL_DIR) $(1)/usr/bin
82 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/icecast $(1)/usr/bin/
83 $(INSTALL_DIR) $(1)/usr/share/icecast
84 $(CP) $(PKG_INSTALL_DIR)/usr/share/icecast/admin $(1)/usr/share/icecast/
85 $(CP) $(PKG_INSTALL_DIR)/usr/share/icecast/web $(1)/usr/share/icecast/
86 endef
87
88 $(eval $(call BuildPackage,icecast))