summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2012-03-24 16:12:53 +0000
committerFabian Groffen <grobian@gentoo.org>2012-03-24 16:12:53 +0000
commit99d7f0ed1ef1def9ffefae0f9e654d11d99bfbab (patch)
tree8672fbf0bcf25e0a6ab61052cb3974bee8e45df1 /media-gfx
parentMask and force the only USE-flag combination supported for Mac OS X Intel for... (diff)
downloadgentoo-2-99d7f0ed1ef1def9ffefae0f9e654d11d99bfbab.tar.gz
gentoo-2-99d7f0ed1ef1def9ffefae0f9e654d11d99bfbab.tar.bz2
gentoo-2-99d7f0ed1ef1def9ffefae0f9e654d11d99bfbab.zip
Add support for Darwin targets by Francois Bissey in bug #408429, marked ~x{64,86}-macos
(Portage version: 2.2.01.20271-prefix/cvs/Darwin i386)
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/tachyon/ChangeLog6
-rw-r--r--media-gfx/tachyon/tachyon-0.98.9-r2.ebuild21
2 files changed, 19 insertions, 8 deletions
diff --git a/media-gfx/tachyon/ChangeLog b/media-gfx/tachyon/ChangeLog
index e7fb2111b97e..0564197a513b 100644
--- a/media-gfx/tachyon/ChangeLog
+++ b/media-gfx/tachyon/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-gfx/tachyon
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/tachyon/ChangeLog,v 1.5 2012/03/12 13:05:10 alexxy Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/tachyon/ChangeLog,v 1.6 2012/03/24 16:12:53 grobian Exp $
+
+ 24 Mar 2012; Fabian Groffen <grobian@gentoo.org> tachyon-0.98.9-r2.ebuild:
+ Add support for Darwin targets by Francois Bissey in bug #408429, marked
+ ~x{64,86}-macos
*tachyon-0.98.9-r2 (12 Mar 2012)
diff --git a/media-gfx/tachyon/tachyon-0.98.9-r2.ebuild b/media-gfx/tachyon/tachyon-0.98.9-r2.ebuild
index 279f7ed4e437..941113eebcb2 100644
--- a/media-gfx/tachyon/tachyon-0.98.9-r2.ebuild
+++ b/media-gfx/tachyon/tachyon-0.98.9-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/tachyon/tachyon-0.98.9-r2.ebuild,v 1.1 2012/03/12 13:05:10 alexxy Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/tachyon/tachyon-0.98.9-r2.ebuild,v 1.2 2012/03/24 16:12:53 grobian Exp $
EAPI="4"
@@ -12,7 +12,7 @@ SRC_URI="http://jedi.ks.uiuc.edu/~johns/raytracer/files/${PV}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
+KEYWORDS="~amd64 ~ppc ~x86 ~x64-macos ~x86-macos"
IUSE="doc examples jpeg mpi opengl png threads"
CDEPEND="jpeg? ( virtual/jpeg )
@@ -34,21 +34,28 @@ S="${WORKDIR}/${PN}/unix"
TACHYON_MAKE_TARGET=
pkg_setup() {
+ local ostarget
+ case ${CHOST} in
+ powerpc*-darwin*) ostarget=macosx ;;
+ *86*-darwin*) ostarget=macosx-x86 ;;
+ *) ostarget=linux ;;
+ esac
+
if use threads ; then
if use opengl ; then
- TACHYON_MAKE_TARGET=linux-thr-ogl
+ TACHYON_MAKE_TARGET=${ostarget}-thr-ogl
elif use mpi ; then
- TACHYON_MAKE_TARGET=linux-mpi-thr
+ TACHYON_MAKE_TARGET=${ostarget}-mpi-thr
else
- TACHYON_MAKE_TARGET=linux-thr
+ TACHYON_MAKE_TARGET=${ostarget}-thr
fi
# TODO: Support for linux-athlon-thr ?
else
if use mpi ; then
- TACHYON_MAKE_TARGET=linux-mpi
+ TACHYON_MAKE_TARGET=${ostarget}-mpi
else
- TACHYON_MAKE_TARGET=linux
+ TACHYON_MAKE_TARGET=${ostarget}
fi
fi