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
commit539d0a4191550d156d3ebc4446de0a2e62dbe2f3 (patch)
treeb91aee238795760afe98177ecdf068acf37c2fce /media-libs/portaudio
parentadd hal for gnome meta (diff)
downloadgentoo-2-539d0a4191550d156d3ebc4446de0a2e62dbe2f3.tar.gz
gentoo-2-539d0a4191550d156d3ebc4446de0a2e62dbe2f3.tar.bz2
gentoo-2-539d0a4191550d156d3ebc4446de0a2e62dbe2f3.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/files/portaudio-Makefile.macos34
-rw-r--r--media-libs/portaudio/portaudio-18.1.ebuild18
3 files changed, 52 insertions, 6 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/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