[packages] send: fix more OpenSSL 1.0.0 fallout
[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:=2
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 PKG_FIXUP:=libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/ices
24 SECTION:=sound
25 CATEGORY:=Sound
26 TITLE:=ices client for Icecast media streaming servers
27 URL:=http://xiph.org/
28 DEPENDS:=+libshout +libxml2 +zlib +libogg +libvorbis
29 endef
30
31 define Package/ices/description
32 ices is a command line source client for Icecast media streaming servers.
33 It began as the successor of the old "shout" utility, and has since gained a
34 lot of useful features.
35 endef
36
37 define Package/ices/install
38 $(INSTALL_DIR) $(1)/usr/bin
39 $(CP) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(1)/usr/bin/
40 endef
41
42 CONFIGURE_ARGS+= \
43 --with-ogg="$(STAGING_DIR)/usr/include" \
44 --with-vorbis="$(STAGING_DIR)/usr/include" \
45
46 define Build/Configure
47 $(call Build/Configure/Default, \
48 LDFLAGS="$(TARGET_LDFLAGS) -lz -lm" \
49 )
50 endef
51
52 define Build/Compile
53 $(MAKE) -C $(PKG_BUILD_DIR) \
54 $(TARGET_CONFIGURE_OPTS) \
55 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
56 LDFLAGS="$(TARGET_LDFLAGS) -lz -lm"
57 endef
58
59 $(eval $(call BuildPackage,ices))