bd2e3e26e389b91bd98d859e97132d47b8b1122b
[openwrt/svn-archive/archive.git] / libs / libshout / Makefile
1 #
2 # Copyright (C) 2008 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:=libshout
11 PKG_VERSION:=2.2.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://downloads.us.xiph.org/releases/libshout/
16 PKG_MD5SUM:=4f75fc9901c724b712c371c9a1e782d3
17
18 PKG_FIXUP = libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libshout
23 SECTION:=libs
24 DEPENDS:=+libvorbisidec
25 CATEGORY:=Libraries
26 TITLE:=Library which can be used to write a source client like ices
27 URL:=http://www.icecast.org/download.php
28 endef
29
30 define Package/libshout/description
31 libshout allows applications to easily communicate and broadcast
32 to an Icecast streaming media server. It handles the socket connections,
33 metadata communication, and data streaming for the calling application,
34 and lets developers focus on feature sets instead of implementation
35 details.
36 endef
37
38 define Build/Configure
39 $(call Build/Configure/Default, \
40 VORBIS_CFLAGS="-I$(STAGING_DIR)/usr/include/tremor/"\
41 VORBIS_LIBS="-L$(STAGING_DIR)/usr/lib" \
42 --enable-shared \
43 --enable-static \
44 )
45 endef
46
47 TARGET_CFLAGS += $(FPIC)
48
49 define Build/Compile
50 $(MAKE) -C $(PKG_BUILD_DIR) \
51 DESTDIR="$(PKG_INSTALL_DIR)" \
52 all install
53 endef
54
55 define Build/InstallDev
56 mkdir -p $(1)/usr/include/shout
57 $(CP) $(PKG_INSTALL_DIR)/usr/include/shout/shout.h $(1)/usr/include/shout
58 mkdir -p $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libshout.{a,so*} $(1)/usr/lib/
60 mkdir -p $(1)/usr/lib/pkgconfig
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/shout.pc $(1)/usr/lib/pkgconfig/
62 endef
63
64 define Package/libshout/install
65 $(INSTALL_DIR) $(1)/usr/lib
66 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libshout.so.* $(1)/usr/lib/
67 endef
68
69 $(eval $(call BuildPackage,libshout))