Make openmotif friendly with multilib includes...
authorJeremy Huddleston <eradicator@gentoo.org>
Sat, 15 Jan 2005 13:49:52 +0000 (13:49 +0000)
committerJeremy Huddleston <eradicator@gentoo.org>
Sat, 15 Jan 2005 13:49:52 +0000 (13:49 +0000)
Package-Manager: portage-2.0.51-r12

x11-libs/openmotif/openmotif-2.1.30-r4.ebuild
x11-libs/openmotif/openmotif-2.1.30-r5.ebuild

index f02748a7412c3f5b584555d0455ab7bcc50a1173..b580ccb4750d0c91f48dad2f81c0adb3b494943c 100644 (file)
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/openmotif-2.1.30-r4.ebuild,v 1.12 2004/11/18 08:57:15 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/openmotif-2.1.30-r4.ebuild,v 1.13 2005/01/15 13:47:49 eradicator Exp $
 
 inherit eutils
 
@@ -26,6 +26,11 @@ SLOT="0"
 inherit flag-o-matic
 replace-flags "-mcpu=athlon-xp" "-mcpu=i686"
 
+pkg_setup() {
+       # multilib includes don't work right in this package...
+       [ -n "${ABI}" ] && append-flags "-I/usr/include/gentoo-multilib/${ABI}"
+}
+
 src_unpack() {
        local cfg="${S}/config/cf/site.def"
 
index bab3a622b222280fe20d1cce5ebda1f7a705caed..3282235e0bb0951faa3079ae48d931fe8354c16d 100644 (file)
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/openmotif-2.1.30-r5.ebuild,v 1.20 2004/11/18 17:31:36 lanius Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/openmotif-2.1.30-r5.ebuild,v 1.21 2005/01/15 13:47:49 eradicator Exp $
 
 inherit eutils flag-o-matic
 
@@ -19,6 +19,11 @@ DEPEND="virtual/libc
        virtual/x11
        >=sys-apps/sed-4"
 
+pkg_setup() {
+       # multilib includes don't work right in this package...
+       [ -n "${ABI}" ] && append-flags "-I/usr/include/gentoo-multilib/${ABI}"
+}
+
 src_unpack() {
        local cfg="${S}/config/cf/site.def"