summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKito Danya Dietrich <kito@gentoo.org>2004-09-23 15:04:14 +0000
committerKito Danya Dietrich <kito@gentoo.org>2004-09-23 15:04:14 +0000
commit41f295572173495929a4fb3ca005c9e058a270d1 (patch)
tree9553ba076e0b53b228157c13589de46ea4b9784a /media-libs/portaudio
parentadd hal for gnome meta (diff)
downloadhistorical-41f295572173495929a4fb3ca005c9e058a270d1.tar.gz
historical-41f295572173495929a4fb3ca005c9e058a270d1.tar.bz2
historical-41f295572173495929a4fb3ca005c9e058a270d1.zip
ppc-macos keyword and Makefile
Diffstat (limited to 'media-libs/portaudio')
-rw-r--r--media-libs/portaudio/ChangeLog6
-rw-r--r--media-libs/portaudio/Manifest5
-rw-r--r--media-libs/portaudio/files/portaudio-Makefile.macos34
-rw-r--r--media-libs/portaudio/portaudio-18.1.ebuild18
4 files changed, 55 insertions, 8 deletions
diff --git a/media-libs/portaudio/ChangeLog b/media-libs/portaudio/ChangeLog
index 162bc3795bf8..06110240caee 100644
--- a/media-libs/portaudio/ChangeLog
+++ b/media-libs/portaudio/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-libs/portaudio
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/portaudio/ChangeLog,v 1.12 2004/07/01 08:02:45 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/portaudio/ChangeLog,v 1.13 2004/09/23 15:04:14 kito Exp $
+
+ 23 Sep 2004; kito@gentoo.org +files/portaudio-Makefile.macos,
+ portaudio-18.1.ebuild:
+ ppc-macos patch and keyword
01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org>
portaudio-18.1.ebuild, portaudio-18.ebuild:
diff --git a/media-libs/portaudio/Manifest b/media-libs/portaudio/Manifest
index 30f245546a45..5038a7260eab 100644
--- a/media-libs/portaudio/Manifest
+++ b/media-libs/portaudio/Manifest
@@ -1,8 +1,9 @@
-MD5 e0586679c660635049b08db793f8cd7a ChangeLog 1275
+MD5 af08fe7a6919af7b99b0edc2f0341610 ChangeLog 1389
MD5 a1eaeb2ae801daeb712c90c060e922dc metadata.xml 158
-MD5 8451c9ee86c9e5e8aa090f91c1d0b45d portaudio-18.1.ebuild 787
+MD5 37079e92c357a2d44f80ad4548b1ec00 portaudio-18.1.ebuild 969
MD5 9faa7252c1c25810308f3290b17aab3c portaudio-18.ebuild 871
MD5 216bea28964aee7308b174121350d20d files/digest-portaudio-18 62
MD5 24037d452fff400001cf4a3a4dec3585 files/digest-portaudio-18.1 64
MD5 8461b4a89f5c56d005f6818a8bf410f3 files/portaudio-18.1-use-fpic.patch 3420
+MD5 4a5af6dac92bc368d934853c11e40447 files/portaudio-Makefile.macos 960
MD5 18d9bba97a0da6eb457678c0ea20aa4b files/portaudio-use-fpic.patch 323
diff --git a/media-libs/portaudio/files/portaudio-Makefile.macos b/media-libs/portaudio/files/portaudio-Makefile.macos
new file mode 100644
index 000000000000..d93d9f8861fd
--- /dev/null
+++ b/media-libs/portaudio/files/portaudio-Makefile.macos
@@ -0,0 +1,34 @@
+LIBS = -lm
+
+CDEFINES = -I../pa_common -I../pablio
+CFLAGS =
+LIBINST = /usr/lib
+
+TESTS:= $(wildcard pa_tests/pa*.c pa_tests/debug*.c)
+TESTO:= $(wildcard pa_tests/pa*.o pa_tests/debug*.o)
+
+LIBFILES:= ./pa_common/pa_lib.c ./pa_common/pa_convert.c ./pablio/ringbuffer.c ./pa_mac_core/pa_mac_core.c
+
+all: sharedlib libinstall testo testq
+
+.c.o:
+ -gcc -c -I./pa_common $< -o $*.o
+
+.o:
+ -gcc $*.o -o $* -Lpa_mac_core $(LIBS) -lportaudio
+
+sharedlib: $(LIBFILES:.c=.o)
+ gcc -framework CoreAudio -framework AudioToolbox -framework AudioUnit -dynamiclib -o ./pa_mac_core/libportaudio.dylib ./pablio/ringbuffer.o ./pa_common/pa_lib.o ./pa_common/pa_convert.o ./pa_mac_core/pa_mac_core.o
+
+libinstall: ./pa_mac_core/libportaudio.dylib
+ @cp -f ./pa_mac_core/libportaudio.dylib $(LIBINST)
+
+testo: $(TESTS:.c=.o)
+
+testq: $(TESTO:.o=)
+
+clean:
+ -@rm -f $(TESTS:.c=.o)
+ -@rm -f $(TESTS:.c=)
+ -@rm -f $(LIBFILES:.c=.o)
+ -@rm -f ./pa_mac_core/libportaudio.dylib \ No newline at end of file
diff --git a/media-libs/portaudio/portaudio-18.1.ebuild b/media-libs/portaudio/portaudio-18.1.ebuild
index 10914e023412..17c18021771c 100644
--- a/media-libs/portaudio/portaudio-18.1.ebuild
+++ b/media-libs/portaudio/portaudio-18.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/portaudio/portaudio-18.1.ebuild,v 1.6 2004/07/01 08:02:45 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/portaudio/portaudio-18.1.ebuild,v 1.7 2004/09/23 15:04:14 kito Exp $
inherit eutils
@@ -12,7 +12,7 @@ SRC_URI="http://www.portaudio.com/archives/${MY_P}.zip"
SLOT="0"
LICENSE="GPL-2"
-KEYWORDS="x86 sparc amd64 ~ppc"
+KEYWORDS="x86 sparc amd64 ~ppc ~ppc-macos"
IUSE=""
@@ -23,17 +23,25 @@ src_unpack() {
cd ${S}
epatch ${FILESDIR}/${P}-use-fpic.patch
+ use ppc-macos && cp ${FILESDIR}/${PN}-Makefile.macos ${S}/Makefile || \
+ cp ${S}/Makefile.linux ${S}/Makefile
}
src_compile() {
- make -f Makefile.linux sharedlib || die
+ cd ${S}
+ make sharedlib || die
}
src_install() {
- dolib pa_unix_oss/libportaudio.so
+ if ! use ppc-macos
+ then
+ dolib pa_unix_oss/libportaudio.so
+ else
+ dolib pa_mac_core/libportaudio.dylib
+ fi
insinto /usr/include
doins pa_common/portaudio.h
dodoc docs/*
-}
+} \ No newline at end of file