2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://downloads.us.xiph.org
/releases
/libshout
/
17 PKG_MD5SUM
:=4f75fc9901c724b712c371c9a1e782d3
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/libshout
25 DEPENDS
:=+libvorbisidec
27 TITLE
:=Library which can be used to write a source client like ices
28 URL
:=http
://www.icecast.org
/download.php
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
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" \
48 TARGET_CFLAGS
+= $(FPIC
)
51 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
52 DESTDIR
="$(PKG_INSTALL_DIR)" \
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
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
/
65 define Package
/libshout
/install
66 $(INSTALL_DIR
) $(1)/usr
/lib
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libshout.so.
* $(1)/usr
/lib
/
70 $(eval
$(call BuildPackage
,libshout
))