summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2005-07-22 10:09:08 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2005-07-22 10:09:08 +0000
commitb6153ee849a066efe8e2fcff6c804ab72ea85699 (patch)
tree680956a8d46badae65366cd3226eeda019675b77 /media-libs/pablio
parentCorrected dependencies as mentioned in bug #98724. (diff)
downloadhistorical-b6153ee849a066efe8e2fcff6c804ab72ea85699.tar.gz
historical-b6153ee849a066efe8e2fcff6c804ab72ea85699.tar.bz2
historical-b6153ee849a066efe8e2fcff6c804ab72ea85699.zip
New package for portaudio blocking i/o library. Ebuild and all that stuff by me.
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'media-libs/pablio')
-rw-r--r--media-libs/pablio/ChangeLog11
-rw-r--r--media-libs/pablio/Manifest10
-rw-r--r--media-libs/pablio/files/digest-pablio-18.11
-rw-r--r--media-libs/pablio/files/pablio-18.1-Makefile.linux59
-rw-r--r--media-libs/pablio/metadata.xml5
-rw-r--r--media-libs/pablio/pablio-18.1.ebuild40
6 files changed, 126 insertions, 0 deletions
diff --git a/media-libs/pablio/ChangeLog b/media-libs/pablio/ChangeLog
new file mode 100644
index 000000000000..69e76211861d
--- /dev/null
+++ b/media-libs/pablio/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for media-libs/pablio
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/pablio/ChangeLog,v 1.1 2005/07/22 10:09:08 eradicator Exp $
+
+*pablio-18.1 (22 Jul 2005)
+
+ 22 Jul 2005; Jeremy Huddleston <eradicator@gentoo.org>
+ +files/pablio-18.1-Makefile.linux, +metadata.xml, +pablio-18.1.ebuild:
+ New package for portaudio blocking i/o library. Ebuild and all that stuff by
+ me.
+
diff --git a/media-libs/pablio/Manifest b/media-libs/pablio/Manifest
index cf5ac85f3707..e6487ae6f264 100644
--- a/media-libs/pablio/Manifest
+++ b/media-libs/pablio/Manifest
@@ -1,5 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
MD5 c27aafb74eacbc9f8563af1cb5dd2546 pablio-18.1.ebuild 1009
MD5 a1eaeb2ae801daeb712c90c060e922dc metadata.xml 158
MD5 1e90c4403b814af16cbc8af20dbf32a1 ChangeLog 455
MD5 24037d452fff400001cf4a3a4dec3585 files/digest-pablio-18.1 64
MD5 e8a78131e0509237cf7bd5906b60d8aa files/pablio-18.1-Makefile.linux 1494
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.1 (GNU/Linux)
+
+iD8DBQFC4MXXArHZZzCEUG0RAqCIAJ4xSPK5OVjC+yzLFerGPbETGrtyPgCcDAAV
+zkFsxrXijGLbif7wR+TD+8M=
+=/6sj
+-----END PGP SIGNATURE-----
diff --git a/media-libs/pablio/files/digest-pablio-18.1 b/media-libs/pablio/files/digest-pablio-18.1
new file mode 100644
index 000000000000..75343fea7e3d
--- /dev/null
+++ b/media-libs/pablio/files/digest-pablio-18.1
@@ -0,0 +1 @@
+MD5 ce66a732d263fde2b5ad2262ef37a691 portaudio_v18_1.zip 550130
diff --git a/media-libs/pablio/files/pablio-18.1-Makefile.linux b/media-libs/pablio/files/pablio-18.1-Makefile.linux
new file mode 100644
index 000000000000..709b4c267ca3
--- /dev/null
+++ b/media-libs/pablio/files/pablio-18.1-Makefile.linux
@@ -0,0 +1,59 @@
+# 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 -lportaudio
+
+CFLAGS = -O2
+
+LIBFILES:= pablio/pablio.c pablio/ringbuffer.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: libpablio.so libpablio.a
+
+%.lo : %.c
+ $(CC) -fPIC $(CFLAGS) -c -I./pa_common -I./pablio $? -o $@
+
+.c.o:
+ $(CC) $(CFLAGS) -c -I./pa_common -I./pablio $? -o $@
+
+libpablio.so.$(VERSION): $(LIBFILES:.c=.lo)
+ $(LD) -shared -soname $@ -o $@ $?
+
+libpablio.so: libpablio.so.$(VERSION)
+ $(LN) -s $? $@
+
+libpablio.a: $(LIBFILES:.c=.o)
+ $(AR) ruv $@ $?
+ $(RANLIB) $@
+
+install: libpablio.so libpablio.a
+ $(MKDIR) -p $(DESTDIR)$(includedir)/portaudio
+ $(MKDIR) -p $(DESTDIR)$(libdir)
+ $(CP) -dpf libpablio.so.$(VERSION) libpablio.so libpablio.a $(DESTDIR)$(libdir)
+ $(CP) -dpf pablio/ringbuffer.h pablio/pablio.h $(DESTDIR)$(includedir)/portaudio
diff --git a/media-libs/pablio/metadata.xml b/media-libs/pablio/metadata.xml
new file mode 100644
index 000000000000..e1774e3d9ad7
--- /dev/null
+++ b/media-libs/pablio/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sound</herd>
+</pkgmetadata>
diff --git a/media-libs/pablio/pablio-18.1.ebuild b/media-libs/pablio/pablio-18.1.ebuild
new file mode 100644
index 000000000000..fce594f5a2ce
--- /dev/null
+++ b/media-libs/pablio/pablio-18.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/pablio/pablio-18.1.ebuild,v 1.1 2005/07/22 10:09:08 eradicator Exp $
+
+IUSE="userland_Darwin"
+
+inherit toolchain-funcs
+
+MY_P=portaudio_v${PV/./_}
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="A blocking I/O library for portaudio."
+HOMEPAGE="http://www.portaudio.com"
+SRC_URI="http://www.portaudio.com/archives/${MY_P}.zip"
+
+SLOT="18"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~sparc ~x86"
+
+RDEPEND="=media-libs/portaudio-18*"
+DEPEND="app-arch/unzip
+ ${RDEPEND}"
+
+src_unpack() {
+ unpack ${A}
+
+ if use userland_Darwin ; then
+ cp ${FILESDIR}/${P}-Makefile.macos ${S}/Makefile
+ else
+ cp ${FILESDIR}/${P}-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
+ dodoc portaudio/README.txt
+}