summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorkwm <kwm@058c260c-8361-11dd-a0ac-aa2bafec7d09>2013-09-03 01:52:31 +0800
committerkwm <kwm@058c260c-8361-11dd-a0ac-aa2bafec7d09>2013-09-03 01:52:31 +0800
commit96a1ef764767b33d5a56e0f6143244c90ed58392 (patch)
tree5f459683cb1916c5abc539ea21e53b068fdc8764 /graphics
parent394481fd880b0c08ddcb4ebe23ce3c94556d768f (diff)
downloadxorg-devel-ports-96a1ef764767b33d5a56e0f6143244c90ed58392.tar
xorg-devel-ports-96a1ef764767b33d5a56e0f6143244c90ed58392.tar.gz
xorg-devel-ports-96a1ef764767b33d5a56e0f6143244c90ed58392.tar.bz2
xorg-devel-ports-96a1ef764767b33d5a56e0f6143244c90ed58392.tar.lz
xorg-devel-ports-96a1ef764767b33d5a56e0f6143244c90ed58392.tar.xz
xorg-devel-ports-96a1ef764767b33d5a56e0f6143244c90ed58392.tar.zst
xorg-devel-ports-96a1ef764767b33d5a56e0f6143244c90ed58392.zip
Add ARCH check for gallium parts in do-install.
Remove the need for USE_GCC for non-x86 archs. The code that we need a newer gcc version or clang for is in the i965 driver. Which is only build on x86 archs. git-svn-id: https://trillian.chruetertee.ch/svn/ports/trunk@1132 058c260c-8361-11dd-a0ac-aa2bafec7d09
Diffstat (limited to 'graphics')
-rw-r--r--graphics/dri/Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/graphics/dri/Makefile b/graphics/dri/Makefile
index 53c8b83..074a3bc 100644
--- a/graphics/dri/Makefile
+++ b/graphics/dri/Makefile
@@ -19,6 +19,7 @@ USE_XORG= glproto x11 xext xxf86vm xdamage xfixes dri2proto
# gcc from base can't handle some code in mesa 9.1+
# We only care for 9.x and 8.x, not for old pre-clang default current.
+# This is for 0b0000 binary which gcc 4.3+ understands and is in the i965 driver.
.if defined(WITH_NEW_XORG)
. if ${OSVERSION} >= 901000 && ${OSVERSION} < 902502 \
&& (${ARCH} == i386 || ${ARCH} == amd64)
@@ -28,10 +29,6 @@ CPP=clang-cpp
. elif ${OSVERSION} < 901500
USE_GCC=yes
. endif
-# for archs that don't have clang at all or isn't mature enough/untested.
-. if ${ARCH} != i386 && ${ARCH} != amd64
-USE_GCC=yes
-. endif
.endif
.if ${ARCH} == ia64
@@ -109,7 +106,7 @@ do-install:
.else
cd ${WRKSRC}/src/mesa/libdricore; ${GMAKE} install
cd ${WRKSRC}/src/mesa/drivers/dri; ${GMAKE} install
-. if defined(WITH_GALLIUM)
+. if defined(WITH_GALLIUM) && (${ARCH} == i386 || ${ARCH} == amd64)
cd ${WRKSRC}/src/gallium/drivers/radeon; ${GMAKE} install
cd ${WRKSRC}/src/gallium/targets; ${GMAKE} install
. endif