summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Holzer <mholzer@gentoo.org>2003-03-12 22:10:23 +0000
committerMartin Holzer <mholzer@gentoo.org>2003-03-12 22:10:23 +0000
commit22b492d9754b1f855065f547954e2ba9a6eed4b6 (patch)
treeead4494525faf01fdad0d1973b9d9b1233f7666d /media-libs/libvorbis
parentVersion bumped & cleanup (diff)
downloadgentoo-2-22b492d9754b1f855065f547954e2ba9a6eed4b6.tar.gz
gentoo-2-22b492d9754b1f855065f547954e2ba9a6eed4b6.tar.bz2
gentoo-2-22b492d9754b1f855065f547954e2ba9a6eed4b6.zip
Added symblink to file .so.0 for libvorbisfile and libvorbisenc.
Diffstat (limited to 'media-libs/libvorbis')
-rw-r--r--media-libs/libvorbis/ChangeLog9
-rw-r--r--media-libs/libvorbis/files/digest-libvorbis-1.0-r21
-rw-r--r--media-libs/libvorbis/files/libvorbis-1.0-r2-m4.patch28
-rw-r--r--media-libs/libvorbis/libvorbis-1.0-r2.ebuild65
4 files changed, 102 insertions, 1 deletions
diff --git a/media-libs/libvorbis/ChangeLog b/media-libs/libvorbis/ChangeLog
index 741851d60483..a771689a99db 100644
--- a/media-libs/libvorbis/ChangeLog
+++ b/media-libs/libvorbis/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-libs/libvorbis
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libvorbis/ChangeLog,v 1.9 2003/02/12 07:13:24 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libvorbis/ChangeLog,v 1.10 2003/03/12 22:10:23 mholzer Exp $
+
+*libvorbis-1.0-r2 (12 Mar 2003)
+
+ 12 Mar 2003; Martin Holzer <mholzer@gentoo.org> libvorbis-1.0-r2.ebuild,
+ files/libvorbis-1.0-r2-m4.patch:
+ Added symblink to file .so.0 for libvorbisfile and libvorbisenc. Also known as
+ libvorbis-compat in other distros. Closes #15798.
06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
diff --git a/media-libs/libvorbis/files/digest-libvorbis-1.0-r2 b/media-libs/libvorbis/files/digest-libvorbis-1.0-r2
new file mode 100644
index 000000000000..6c800c478006
--- /dev/null
+++ b/media-libs/libvorbis/files/digest-libvorbis-1.0-r2
@@ -0,0 +1 @@
+MD5 d1ad94fe8e240269c790e18992171e53 libvorbis-1.0.tar.gz 749064
diff --git a/media-libs/libvorbis/files/libvorbis-1.0-r2-m4.patch b/media-libs/libvorbis/files/libvorbis-1.0-r2-m4.patch
new file mode 100644
index 000000000000..55a82bc98411
--- /dev/null
+++ b/media-libs/libvorbis/files/libvorbis-1.0-r2-m4.patch
@@ -0,0 +1,28 @@
+--- libvorbis-1.0/vorbis.m4 2002-07-09 23:08:57.000000000 +1000
++++ libvorbis-cvs/vorbis.m4 2002-08-07 02:01:40.000000000 +1000
+@@ -54,6 +54,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <vorbis/codec.h>
++#include <vorbis/vorbisenc.h>
+
+ int main ()
+ {
+@@ -62,7 +63,7 @@
+ vorbis_info vi;
+
+ vorbis_info_init (&vi);
+- vorbis_encode_init (&vi, 2, 44100, -1, 128, -1);
++ vorbis_encode_init (&vi, 2, 44100, -1, 128000, -1);
+ vorbis_analysis_init (&vd, &vi);
+ vorbis_block_init (&vd, &vb);
+ /* this function was added in 1.0rc3, so this is what we're testing for */
+@@ -87,7 +88,7 @@
+ else
+ echo "*** Could not run Vorbis test program, checking why..."
+ CFLAGS="$CFLAGS $VORBIS_CFLAGS"
+- LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
++ LIBS="$LIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
+ AC_TRY_LINK([
+ #include <stdio.h>
+ #include <vorbis/codec.h>
diff --git a/media-libs/libvorbis/libvorbis-1.0-r2.ebuild b/media-libs/libvorbis/libvorbis-1.0-r2.ebuild
new file mode 100644
index 000000000000..6bb3732ed1ff
--- /dev/null
+++ b/media-libs/libvorbis/libvorbis-1.0-r2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libvorbis/libvorbis-1.0-r2.ebuild,v 1.1 2003/03/12 22:10:23 mholzer Exp $
+
+inherit libtool eutils
+
+S=${WORKDIR}/${P}
+DESCRIPTION="the Ogg Vorbis sound file format library"
+SRC_URI="http://fatpipe.vorbis.com/files/1.0/unix/${P}.tar.gz"
+HOMEPAGE="http://www.xiph.org/ogg/vorbis/index.html"
+
+DEPEND=">=media-libs/libogg-1.0"
+
+SLOT="0"
+LICENSE="as-is"
+KEYWORDS="x86 ppc sparc alpha"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/${PF}-m4.patch || die "Patching failed"
+ # Fix a gcc crash. With the new atexit patch to gcc, it
+ # seems it do not handle -mno-ieee-fp too well.
+ cp configure configure.orig
+ sed -e "s:-mno-ieee-fp::g" \
+ configure.orig >configure
+}
+
+src_compile() {
+ elibtoolize
+
+ export CFLAGS="${CFLAGS/-march=*/}"
+
+ ./configure --prefix=/usr \
+ --host=${CHOST} || die
+
+ emake || die
+}
+
+src_install () {
+ make DESTDIR=${D} install || die
+
+ dosym /usr/lib/libvorbisfile.so.3.0.0 /usr/lib/libvorbisfile.so.0
+ dosym /usr/lib/libvorbisenc.so.2.0.0 /usr/lib/libvorbisenc.so.0
+
+ echo "Removing docs installed by make install"
+ rm -rf ${D}/usr/share/doc
+
+ dodoc AUTHORS COPYING README todo.txt
+ docinto txt
+ dodoc doc/*.txt
+ dohtml -r doc
+}
+
+pkg_postinst() {
+ einfo
+ einfo "Note the 1.0 version of libvorbis has been installed"
+ einfo "Applications that used pre-1.0 vorbis libraries will"
+ einfo "need to be recompiled for the new version."
+ einfo "Now that the vorbis folks have finalized the API"
+ einfo "this should be the last time for a while that"
+ einfo "recompilation is needed for these things."
+ einfo
+}