summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Jacquin <beber@meleeweb.net>2010-07-06 00:32:12 +0200
committerBertrand Jacquin <beber@meleeweb.net>2010-07-06 00:32:12 +0200
commit46f8180470f5c8414b490321fc2661e2c21a66b6 (patch)
tree79d730aa091edc677c487f243f38142f614b3091
parentradvd for cross compile (diff)
downloadportage-46f8180470f5c8414b490321fc2661e2c21a66b6.tar.xz
libshout for cross compile
-rw-r--r--media-libs/libshout/files/libshout-2.2.2-asneeded.patch15
-rw-r--r--media-libs/libshout/files/libshout-2.2.2-automagic.patch42
-rw-r--r--media-libs/libshout/libshout-2.1.ebuild35
3 files changed, 92 insertions, 0 deletions
diff --git a/media-libs/libshout/files/libshout-2.2.2-asneeded.patch b/media-libs/libshout/files/libshout-2.2.2-asneeded.patch
new file mode 100644
index 00000000..1655996c
--- /dev/null
+++ b/media-libs/libshout/files/libshout-2.2.2-asneeded.patch
@@ -0,0 +1,15 @@
+https://trac.xiph.org/ticket/1161
+
+Index: libshout-2.2.2/src/Makefile.am
+===================================================================
+--- libshout-2.2.2.orig/src/Makefile.am
++++ libshout-2.2.2/src/Makefile.am
+@@ -26,7 +26,7 @@ libshout_la_SOURCES = shout.c util.c ogg
+ AM_CFLAGS = @XIPH_CFLAGS@
+
+ libshout_la_LIBADD = net/libicenet.la timing/libicetiming.la avl/libiceavl.la\
+- httpp/libicehttpp.la $(MAYBE_THREAD_LIB) $(THEORA_LIBS) $(VORBIS_LIBS)
++ httpp/libicehttpp.la $(MAYBE_THREAD_LIB) $(THEORA_LIBS) $(VORBIS_LIBS) $(SPEEX_LIBS)
+
+ INCLUDES = -I$(top_builddir)/include
+
diff --git a/media-libs/libshout/files/libshout-2.2.2-automagic.patch b/media-libs/libshout/files/libshout-2.2.2-automagic.patch
new file mode 100644
index 00000000..6dc28bf7
--- /dev/null
+++ b/media-libs/libshout/files/libshout-2.2.2-automagic.patch
@@ -0,0 +1,42 @@
+https://trac.xiph.org/ticket/1162
+
+Index: libshout-2.2.2/configure.ac
+===================================================================
+--- libshout-2.2.2.orig/configure.ac
++++ libshout-2.2.2/configure.ac
+@@ -122,12 +122,17 @@ PKG_CHECK_MODULES(VORBIS, vorbis, [
+ VORBIS_LIBS="$VORBIS_LDFLAGS $VORBIS_LIBS"
+ XIPH_CFLAGS="$XIPH_CFLAGS $VORBIS_CFLAGS"
+
++AC_ARG_ENABLE([theora],
++ AC_HELP_STRING([--disable-theora],[do not build with theora support]))
++
++if test "x$enable_theora" != "xno"; then
+ PKG_CHECK_MODULES(THEORA, theora, [
+ HAVE_THEORA="yes"
+ SHOUT_REQUIRES="$SHOUT_REQUIRES, theora"
+ ], [
+ XIPH_PATH_THEORA(, [AC_MSG_WARN([Theora library not found, disabling])])
+ ])
++fi
+ XIPH_VAR_APPEND([XIPH_CPPFLAGS],[$THEORA_CFLAGS])
+ XIPH_VAR_PREPEND([XIPH_LIBS],[$THEORA LDFLAGS $THEORA_LIBS])
+ AM_CONDITIONAL([HAVE_THEORA], [test -n "$THEORA_LIBS"])
+@@ -136,12 +141,17 @@ then
+ AC_DEFINE([HAVE_THEORA], 1, [Define if you want theora streams supported])
+ fi
+
++AC_ARG_ENABLE([speex],
++ AC_HELP_STRING([--disable-speex],[do not build with speex support]))
++
++if test "x$enable_speex" != "xno"; then
+ PKG_CHECK_MODULES(SPEEX, speex, [
+ HAVE_SPEEX="yes"
+ SHOUT_REQUIRES="$SHOUT_REQUIRES, speex"
+ ], [
+ XIPH_PATH_SPEEX(, [AC_MSG_WARN([Speex library not found, disabling])])
+ ])
++fi
+ XIPH_VAR_APPEND([XIPH_CPPFLAGS],[$SPEEX_CFLAGS])
+ XIPH_VAR_PREPEND([XIPH_LIBS],[$SPEEX LDFLAGS $SPEEX_LIBS])
+ AM_CONDITIONAL([HAVE_SPEEX], [test -n "$SPEEX_LIBS"])
diff --git a/media-libs/libshout/libshout-2.1.ebuild b/media-libs/libshout/libshout-2.1.ebuild
new file mode 100644
index 00000000..9ac57d9d
--- /dev/null
+++ b/media-libs/libshout/libshout-2.1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libshout/libshout-2.1.ebuild,v 1.11 2007/02/11 11:04:38 vapier Exp $
+
+inherit multilib
+
+DESCRIPTION="library for connecting and sending data to icecast servers"
+HOMEPAGE="http://www.icecast.org/"
+SRC_URI="http://downloads.xiph.org/releases/libshout/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND="media-libs/libogg
+ media-libs/libvorbis"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+src_compile() {
+ econf \
+ --with-theora="${ROOT}/usr/$(get_libdir)" \
+ --with-vorbis="${ROOT}/usr/$(get_libdir)" \
+ --with-ogg="${ROOT}/usr/$(get_libdir)" \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+ dodoc README examples/example.c
+ rm -rf "${D}"/usr/share/doc/libshout
+}