summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gabert <pappy@gentoo.org>2004-10-12 13:45:53 +0000
committerAlexander Gabert <pappy@gentoo.org>2004-10-12 13:45:53 +0000
commit1c04299ad881b32c9eb57b3518e435a618516251 (patch)
tree6c526846712c9263d15621c09f9b9bdd0ac3bcb8 /media-gfx/gimp/gimp-2.0.4.ebuild
parentStable on sparc (Manifest recommit) (diff)
downloadgentoo-2-1c04299ad881b32c9eb57b3518e435a618516251.tar.gz
gentoo-2-1c04299ad881b32c9eb57b3518e435a618516251.tar.bz2
gentoo-2-1c04299ad881b32c9eb57b3518e435a618516251.zip
repoman broken, committing directly
Diffstat (limited to 'media-gfx/gimp/gimp-2.0.4.ebuild')
-rw-r--r--media-gfx/gimp/gimp-2.0.4.ebuild15
1 files changed, 13 insertions, 2 deletions
diff --git a/media-gfx/gimp/gimp-2.0.4.ebuild b/media-gfx/gimp/gimp-2.0.4.ebuild
index 3487562b44e6..f2daca18dd2b 100644
--- a/media-gfx/gimp/gimp-2.0.4.ebuild
+++ b/media-gfx/gimp/gimp-2.0.4.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-gfx/gimp/gimp-2.0.4.ebuild,v 1.5 2004/09/22 22:47:28 pvdabeel Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/gimp-2.0.4.ebuild,v 1.6 2004/10/12 13:45:53 pappy Exp $
inherit flag-o-matic libtool eutils
@@ -70,14 +70,25 @@ src_compile() {
# Workaround portage variable leakage
local AA=
+ # only use mmx if hardened is not set
+ local USE_MMX=
+
replace-flags "-march=k6*" "-march=i586"
+
# gimp uses inline functions (plug-ins/common/grid.c) (#23078)
filter-flags "-fno-inline"
+ if use hardened; then
+ ewarn "hardened use flag suppressing mmx use flag"
+ HARDENED_SUPPRESS_MMX="--disable-mmx"
+ else
+ HARDENED_SUPPRESS_MMX="`use_enable mmx`"
+ fi
+
econf \
--disable-default-binary \
--with-x \
- `use_enable mmx` \
+ "${HARDENED_SUPPRESS_MMX}" \
`use_enable sse` \
`use_enable altivec` \
`use_enable doc gtk-doc` \