8c2435e49690f99c3812f13e4a6870f56f1853be
[openwrt/svn-archive/archive.git] / libs / libshout / Makefile
1 #
2 # Copyright (C) 2008-2010 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:=2
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:=autoreconf
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 TARGET_CFLAGS += $(FPIC) -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
24
25 define Package/libshout
26 SECTION:=libs
27 DEPENDS:= +libspeex +libtheora +libvorbis +libvorbisidec
28 CATEGORY:=Libraries
29 TITLE:=Library which can be used to write a source client like ices
30 URL:=http://www.icecast.org/download.php
31 endef
32
33 define Package/libshout/description
34 libshout allows applications to easily communicate and broadcast
35 to an Icecast streaming media server. It handles the socket connections,
36 metadata communication, and data streaming for the calling application,
37 and lets developers focus on feature sets instead of implementation
38 details.
39 endef
40
41 define Build/Configure
42 $(call Build/Configure/Default, \
43 VORBIS_CFLAGS="-I$(STAGING_DIR)/usr/include/tremor/" \
44 VORBIS_LIBS="$(TARGET_LDFLAGS) -lvorbis -lvorbisidec" \
45 --enable-shared \
46 --enable-static \
47 )
48 endef
49
50 define Build/InstallDev
51 $(INSTALL_DIR) $(1)/usr/include/shout
52 $(CP) $(PKG_INSTALL_DIR)/usr/include/shout/shout.h $(1)/usr/include/shout
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libshout.{a,so*} $(1)/usr/lib/
55 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
56 $(SED) 's|/usr/include|$(STAGING_DIR)/usr/include|' \
57 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/shout.pc
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/shout.pc $(1)/usr/lib/pkgconfig/
59 endef
60
61 define Package/libshout/install
62 $(INSTALL_DIR) $(1)/usr/lib
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libshout.so.* $(1)/usr/lib/
64 endef
65
66 $(eval $(call BuildPackage,libshout))