summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/portaudio')
-rw-r--r--media-libs/portaudio/ChangeLog9
-rw-r--r--media-libs/portaudio/files/digest-portaudio-18.1-r53
-rw-r--r--media-libs/portaudio/files/portaudio-18.1-r5-Makefile.linux60
-rw-r--r--media-libs/portaudio/portaudio-18.1-r5.ebuild40
4 files changed, 111 insertions, 1 deletions
diff --git a/media-libs/portaudio/ChangeLog b/media-libs/portaudio/ChangeLog
index 045117626c71..d519a1c5c3d3 100644
--- a/media-libs/portaudio/ChangeLog
+++ b/media-libs/portaudio/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-libs/portaudio
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/portaudio/ChangeLog,v 1.31 2006/10/20 21:50:05 kloeri Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/portaudio/ChangeLog,v 1.32 2006/10/22 14:53:15 aballier Exp $
+
+*portaudio-18.1-r5 (22 Oct 2006)
+
+ 22 Oct 2006; Alexis Ballier <aballier@gentoo.org>
+ +files/portaudio-18.1-r5-Makefile.linux, +portaudio-18.1-r5.ebuild:
+ Minor modification to the makefile.linux to correctly link libportaudio, bug
+ #135119
20 Oct 2006; Bryan Østergaard <kloeri@gentoo.org>
portaudio-18.1-r4.ebuild:
diff --git a/media-libs/portaudio/files/digest-portaudio-18.1-r5 b/media-libs/portaudio/files/digest-portaudio-18.1-r5
new file mode 100644
index 000000000000..f45c914f9616
--- /dev/null
+++ b/media-libs/portaudio/files/digest-portaudio-18.1-r5
@@ -0,0 +1,3 @@
+MD5 ce66a732d263fde2b5ad2262ef37a691 portaudio_v18_1.zip 550130
+RMD160 3352d70225a81aae80eefabc3701658da0c750c2 portaudio_v18_1.zip 550130
+SHA256 9da7f1ba0b8029f934d5a8300199e29095127e6abfa03dbb3c1ce40e10751f0a portaudio_v18_1.zip 550130
diff --git a/media-libs/portaudio/files/portaudio-18.1-r5-Makefile.linux b/media-libs/portaudio/files/portaudio-18.1-r5-Makefile.linux
new file mode 100644
index 000000000000..170e4a3fac12
--- /dev/null
+++ b/media-libs/portaudio/files/portaudio-18.1-r5-Makefile.linux
@@ -0,0 +1,60 @@
+# Make PortAudio for Linux
+# Updated 2001/08/25 Bill Eldridge bill@rfa.org
+# Updated 2001/10/16, philburk@softsynth.com, s/unix_oss/unix_oss/
+# Updated 2002/04/30 Bill Eldridge bill@rfa.org
+# Made the libinstall and tests compile a bit cleaner
+# Updated 2005/07/22 Jeremy Huddleston eradicator@gentoo.org
+
+# A pretty bare makefile, that figures out all the test files
+# and compiles them against the library in the pa_unix_oss directory.
+
+# Do "make all" and then when happy, "make libinstall"
+# (if not happy, "make clean")
+
+# The ldconfig stuff in libinstall is the wrong way to do it -
+# someone tell me the right way, please
+
+LIBS = -lm -lpthread
+
+CFLAGS = -O2
+
+LIBFILES:= ./pa_common/pa_lib.c ./pa_unix_oss/pa_unix_oss.c ./pa_unix_oss/pa_unix.c
+
+VERSION=18
+
+CC=gcc
+LD=ld
+AR=ar
+RANLIB=ranlib
+LN=ln
+CP=cp
+MKDIR=mkdir
+
+prefix=/usr
+libdir=/usr/lib
+includedir=/usr/include
+
+all: libportaudio.so libportaudio.a
+
+%.lo : %.c
+ $(CC) -fPIC $(CFLAGS) -c -I./pa_common $? -o $@
+
+.c.o:
+ $(CC) $(CFLAGS) -c -I./pa_common $? -o $@
+
+libportaudio.so.$(VERSION): $(LIBFILES:.c=.lo)
+ $(LD) -shared $(LIBS) -soname $@ -o $@ $?
+
+libportaudio.so: libportaudio.so.$(VERSION)
+ $(LN) -s $? $@
+
+libportaudio.a: $(LIBFILES:.c=.o)
+ $(AR) ruv $@ $?
+ $(RANLIB) $@
+
+install: libportaudio.so libportaudio.a
+ $(MKDIR) -p $(DESTDIR)$(includedir)/portaudio
+ $(MKDIR) -p $(DESTDIR)$(libdir)
+ $(CP) -dpf libportaudio.so.$(VERSION) libportaudio.so libportaudio.a $(DESTDIR)$(libdir)
+ $(CP) -dpf pa_common/portaudio.h $(DESTDIR)$(includedir)/portaudio
+ $(LN) -s portaudio/portaudio.h $(DESTDIR)$(includedir)//portaudio.h
diff --git a/media-libs/portaudio/portaudio-18.1-r5.ebuild b/media-libs/portaudio/portaudio-18.1-r5.ebuild
new file mode 100644
index 000000000000..bc6dab896fe9
--- /dev/null
+++ b/media-libs/portaudio/portaudio-18.1-r5.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/portaudio/portaudio-18.1-r5.ebuild,v 1.1 2006/10/22 14:53:15 aballier Exp $
+
+inherit toolchain-funcs
+
+MY_P=${PN}_v${PV/./_}
+DESCRIPTION="An open-source cross platform audio API."
+HOMEPAGE="http://www.portaudio.com"
+SRC_URI="http://www.portaudio.com/archives/${MY_P}.zip"
+
+LICENSE="GPL-2"
+SLOT="18"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~sh ~sparc ~x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+
+ if use userland_Darwin ; then
+ cp "${FILESDIR}"/${P}-Makefile.macos "${S}"/Makefile
+ else
+ cp "${FILESDIR}"/${PF}-Makefile.linux "${S}"/Makefile
+ fi
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" LD="$(tc-getLD)" CFLAGS="${CFLAGS}" || die
+}
+
+src_install() {
+ make DESTDIR="${D}" libdir="/usr/$(get_libdir)" install || die
+ fperms 644 /usr/include/portaudio/portaudio.h
+ dodoc docs/*
+}