fix xsupplicant: remove unneeded private linux header includes
[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="-I$(STAGING_DIR)/usr/include/tremor/"\
42 VORBIS_LIBS="-L$(STAGING_DIR)/usr/lib" \
43 --enable-shared \
44 --enable-static \
45 )
46 endef
47
48 TARGET_CFLAGS += $(FPIC)
49
50 define Build/Compile
51 $(MAKE) -C $(PKG_BUILD_DIR) \
52 DESTDIR="$(PKG_INSTALL_DIR)" \
53 all install
54 endef
55
56 define Build/InstallDev
57 mkdir -p $(1)/usr/include/shout
58 $(CP) $(PKG_INSTALL_DIR)/usr/include/shout/shout.h $(1)/usr/include/shout
59 mkdir -p $(1)/usr/lib
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libshout.{a,so*} $(1)/usr/lib/
61 mkdir -p $(1)/usr/lib/pkgconfig
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/shout.pc $(1)/usr/lib/pkgconfig/
63 endef
64
65 define Package/libshout/install
66 $(INSTALL_DIR) $(1)/usr/lib
67 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libshout.so.* $(1)/usr/lib/
68 endef
69
70 $(eval $(call BuildPackage,libshout))