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