2 # Copyright (C) 2008-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://downloads.us.xiph.org/releases/libshout/
16 PKG_MD5SUM:=4f75fc9901c724b712c371c9a1e782d3
20 include $(INCLUDE_DIR)/package.mk
22 define Package/libshout
24 DEPENDS:=+libvorbisidec
26 TITLE:=Library which can be used to write a source client like ices
27 URL:=http://www.icecast.org/download.php
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
38 define Build/Configure
39 $(call Build/Configure/Default, \
40 VORBIS_CFLAGS="-I$(STAGING_DIR)/usr/include/tremor/"\
41 VORBIS_LIBS="$(TARGET_LDFLAGS)" \
47 TARGET_CFLAGS += $(FPIC)
50 $(MAKE) -C $(PKG_BUILD_DIR) \
51 DESTDIR="$(PKG_INSTALL_DIR)" \
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
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/
64 define Package/libshout/install
65 $(INSTALL_DIR) $(1)/usr/lib
66 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libshout.so.* $(1)/usr/lib/
69 $(eval $(call BuildPackage,libshout))