libshout package cheers michu
Signed-off-by: Michael Vogt <michu at neophob.com>
Index: package/libs/libshout/patches/120-vorbis-c.patch =================================================================== --- package/libs/libshout/patches/120-vorbis-c.patch (revision 0) +++ package/libs/libshout/patches/120-vorbis-c.patch (revision 0) @@ -0,0 +1,11 @@ +--- libshout-2.2.2/src/vorbis.c.orig 2006-01-31 02:42:42.000000000 +0100 ++++ libshout-2.2.2/src/vorbis.c 2008-02-12 07:59:59.000000000 +0100 +@@ -27,7 +27,7 @@ + #include <inttypes.h> + #endif + +-#include <vorbis/codec.h> ++#include <tremor/ivorbiscodec.h> + + #include "shout_private.h" + #include "shout_ogg.h" Index: package/libs/libshout/patches/100-ogg-c.patch =================================================================== --- package/libs/libshout/patches/100-ogg-c.patch (revision 0) +++ package/libs/libshout/patches/100-ogg-c.patch (revision 0) @@ -0,0 +1,11 @@ +--- libshout-2.2.2/src/ogg.c.orig 2006-01-31 02:42:42.000000000 +0100 ++++ libshout-2.2.2/src/ogg.c 2008-02-12 07:52:03.000000000 +0100 +@@ -30,7 +30,7 @@ + #include <inttypes.h> + #endif + +-#include <ogg/ogg.h> ++#include <tremor/ogg.h> + + #include <shout/shout.h> + #include "shout_private.h" Index: package/libs/libshout/patches/140-noexample.patch =================================================================== --- package/libs/libshout/patches/140-noexample.patch (revision 0) +++ package/libs/libshout/patches/140-noexample.patch (revision 0) @@ -0,0 +1,19 @@ +--- libshout-2.2.2/Makefile.in.orig 2006-06-19 22:36:36.000000000 +0200 ++++ libshout-2.2.2/Makefile.in 2008-02-12 08:24:37.000000000 +0100 +@@ -246,14 +246,14 @@ + target_alias = @target_alias@ + AUTOMAKE_OPTIONS = 1.6 foreign + ACLOCAL_AMFLAGS = -I m4 +-SUBDIRS = include src examples debian doc win32 ++SUBDIRS = include src debian doc win32 + EXTRA_DIST = INSTALL m4/shout.m4 m4/ac_config_libconfig_in.m4 m4/acx_pthread.m4 \ + m4/ogg.m4 m4/vorbis.m4 m4/xiph_compiler.m4 m4/xiph_net.m4 \ + m4/xiph_types.m4 + + DISTCLEANFILES = shout-config.in + docdir = $(datadir)/doc/$(PACKAGE) +-doc_DATA = COPYING NEWS README examples/example.c examples/nonblocking.c ++doc_DATA = COPYING NEWS README + m4datadir = $(datadir)/aclocal + m4data_DATA = m4/shout.m4 + @[EMAIL PROTECTED] = $(libdir)/pkgconfig Index: package/libs/libshout/patches/110-shout-ogg-c.patch =================================================================== --- package/libs/libshout/patches/110-shout-ogg-c.patch (revision 0) +++ package/libs/libshout/patches/110-shout-ogg-c.patch (revision 0) @@ -0,0 +1,11 @@ +--- libshout-2.2.2/src/shout_ogg.h.orig 2006-01-31 02:42:42.000000000 +0100 ++++ libshout-2.2.2/src/shout_ogg.h 2008-02-12 07:54:46.000000000 +0100 +@@ -28,7 +28,7 @@ + + #include <stdlib.h> + +-#include <ogg/ogg.h> ++#include <tremor/ogg.h> + + typedef struct _ogg_codec_tag { + ogg_stream_state os; Index: package/libs/libshout/Makefile =================================================================== --- package/libs/libshout/Makefile (revision 0) +++ package/libs/libshout/Makefile (revision 0) @@ -0,0 +1,70 @@ +# +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# $Id: Makefile 9907 2007-12-25 01:59:55Z nbd $ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libshout +PKG_VERSION:=2.2.2 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://downloads.us.xiph.org/releases/libshout/ +PKG_MD5SUM:=4f75fc9901c724b712c371c9a1e782d3 + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install + +include $(INCLUDE_DIR)/package.mk + +define Package/libshout + SECTION:=libs + DEPENDS:=+libvorbisidec + CATEGORY:=Libraries + TITLE:=Library which can be used to write a source client like ices + URL:=http://www.icecast.org/download.php +endef + +define Package/libshout/description + libshout allows applications to easily communicate and broadcast + to an Icecast streaming media server. It handles the socket connections, + metadata communication, and data streaming for the calling application, + and lets developers focus on feature sets instead of implementation + details. +endef + +define Build/Configure + $(call Build/Configure/Default, \ + VORBIS_CFLAGS="$(STAGING_DIR)/usr/include/tremor"\ + VORBIS_LIBS="$(STAGING_DIR)/usr/lib" \ + --enable-shared \ + --enable-static \ + ) +endef + +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) \ + DESTDIR="$(PKG_INSTALL_DIR)" \ + all install +endef + +define Build/InstallDev + mkdir -p $(1)/usr/include/shout + $(CP) $(PKG_INSTALL_DIR)/usr/include/shout/shout.h $(1)/usr/include/shout + mkdir -p $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libshout.{a,so*} $(1)/usr/lib/ + mkdir -p $(1)/usr/lib/pkgconfig + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/shout.pc $(1)/usr/lib/pkgconfig/ +endef + +define Package/libshout/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libshout.so.* $(1)/usr/lib/ +endef + + +$(eval $(call BuildPackage,libshout))
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel