diff options
author | Jeremy Huddleston <eradicator@gentoo.org> | 2005-07-22 10:09:08 +0000 |
---|---|---|
committer | Jeremy Huddleston <eradicator@gentoo.org> | 2005-07-22 10:09:08 +0000 |
commit | 7e9baf331e2a2c8a7806e67dcb472b71bccfd76c (patch) | |
tree | 1a5eca63a8316c0656c0cdd3af38bf04c37c5f0b /media-libs/pablio | |
parent | Corrected dependencies as mentioned in bug #98724. (diff) | |
download | gentoo-2-7e9baf331e2a2c8a7806e67dcb472b71bccfd76c.tar.gz gentoo-2-7e9baf331e2a2c8a7806e67dcb472b71bccfd76c.tar.bz2 gentoo-2-7e9baf331e2a2c8a7806e67dcb472b71bccfd76c.zip |
New package for portaudio blocking i/o library. Ebuild and all that stuff by me.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'media-libs/pablio')
-rw-r--r-- | media-libs/pablio/ChangeLog | 11 | ||||
-rw-r--r-- | media-libs/pablio/Manifest | 2 | ||||
-rw-r--r-- | media-libs/pablio/files/digest-pablio-18.1 | 1 | ||||
-rw-r--r-- | media-libs/pablio/files/pablio-18.1-Makefile.linux | 59 | ||||
-rw-r--r-- | media-libs/pablio/metadata.xml | 5 | ||||
-rw-r--r-- | media-libs/pablio/pablio-18.1.ebuild | 40 |
6 files changed, 118 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 new file mode 100644 index 000000000000..c89931dc3dbb --- /dev/null +++ b/media-libs/pablio/Manifest @@ -0,0 +1,2 @@ +MD5 92f8b1371f7bef148d4989effce1149e pablio-18.1.ebuild 1088 +MD5 24037d452fff400001cf4a3a4dec3585 files/digest-pablio-18.1 64 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 +} |