[packages] ices: move it into the "sound" section
[openwrt/svn-archive/archive.git] / sound / ices / Makefile
1 #
2 # Copyright (C) 2009 Freifunk Leipzig
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:=ices
11 PKG_VERSION:=2.0.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://downloads.xiph.org/releases/ices/
16 PKG_MD5SUM:=0d95ac34d59fed337028d5e7771076d8
17 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/ices
22 SECTION:=sound
23 CATEGORY:=Sound
24 TITLE:=ices client for Icecast media streaming servers
25 URL:=http://xiph.org/
26 DEPENDS:=+libshout +libxml2 +zlib +libogg +libvorbis
27 endef
28
29 define Package/ices/description
30 ices is a command line source client for Icecast media streaming servers.
31 It began as the successor of the old "shout" utility, and has since gained a
32 lot of useful features.
33 endef
34
35 define Package/ices/install
36 $(INSTALL_DIR) $(1)/usr/bin
37 $(CP) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(1)/usr/bin/
38 endef
39
40 CONFIGURE_ARGS+= \
41 --with-ogg="$(STAGING_DIR)/usr/include" \
42 --with-vorbis="$(STAGING_DIR)/usr/include" \
43
44 define Build/Configure
45 $(call Build/Configure/Default, \
46 LDFLAGS="$(TARGET_LDFLAGS) -lz -lm" \
47 )
48 endef
49
50 define Build/Compile
51 $(MAKE) -C $(PKG_BUILD_DIR) \
52 $(TARGET_CONFIGURE_OPTS) \
53 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
54 LDFLAGS="$(TARGET_LDFLAGS) -lz -lm"
55 endef
56
57 $(eval $(call BuildPackage,ices))