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
21 include $(INCLUDE_DIR
)/package.mk
23 TARGET_CFLAGS
+= $(FPIC
)
25 define Package
/libshout
27 DEPENDS
:=+libvorbisidec
29 TITLE
:=Library which can be used to write a source client like ices
30 URL
:=http
://www.icecast.org
/download.php
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
41 define Build
/Configure
42 $(call Build
/Configure
/Default
, \
43 VORBIS_CFLAGS
="-I$(STAGING_DIR)/usr/include/tremor/"\
44 VORBIS_LIBS
="$(TARGET_LDFLAGS)" \
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
/
61 define Package
/libshout
/install
62 $(INSTALL_DIR
) $(1)/usr
/lib
63 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libshout.so.
* $(1)/usr
/lib
/
66 $(eval
$(call BuildPackage
,libshout
))