aboutsummaryrefslogtreecommitdiffstats
path: root/main/mesa
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-11-25 10:56:47 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-11-25 10:58:50 +0000
commitbec45fd10ac12b0bad88dcd52585c087a721663b (patch)
tree9b24a6e50889250130d34c749810505e353beb53 /main/mesa
parent20d46f0e38abf595dc20f2c183cbeb4fb9304618 (diff)
downloadaports-bec45fd10ac12b0bad88dcd52585c087a721663b.tar.bz2
aports-bec45fd10ac12b0bad88dcd52585c087a721663b.tar.xz
main/mesa: x86_64 build fix. need secial case for sis too
based on nenolods patch
Diffstat (limited to 'main/mesa')
-rw-r--r--main/mesa/APKBUILD20
1 files changed, 11 insertions, 9 deletions
diff --git a/main/mesa/APKBUILD b/main/mesa/APKBUILD
index d38a2cd1d1..34cba8682c 100644
--- a/main/mesa/APKBUILD
+++ b/main/mesa/APKBUILD
@@ -13,7 +13,6 @@ subpackages="$pkgname-dev
$pkgname-dri-mga:mga
$pkgname-dri-r128:r128
$pkgname-dri-savage:savage
- $pkgname-dri-sis:sis
$pkgname-dri-swrast:swrast
$pkgname-dri-tdfx:tdfx
$pkgname-dri-unichrome:unichrome
@@ -32,6 +31,16 @@ _dri_driverdir=/usr/lib/xorg/modules/dri
_builddir="$srcdir/Mesa-$pkgver"
+case "$CHOST" in
+x86_64-*)
+ _intel_dri="i915_dri i965_dri"
+ ;;
+i[3456789]86-*)
+ _intel_dri="i810_dri i915_dri i965_dri"
+ subpackages="$subpackages $pkgname-dri-sis:sis"
+ ;;
+esac
+
prepare() {
cd "$_builddir"
for i in ../*.patch; do
@@ -78,14 +87,7 @@ _mv_dri() {
}
ati() { _mv_dri radeon_dri r200_dri r300_dri r600_dri; }
-intel() {
- # there are no i810_dri for x86_64
- local _i810=
- if [ "$CARCH" != "x86_64" ]; then
- _i810=i810_dri
- fi
- _mv_dri $_i810 i915_dri i965_dri;
-}
+intel() { _mv_dri $_intel_dri; }
mach64() { _mv_dri mach64_dri; }
mga() { _mv_dri mga_dri; }
r128() { _mv_dri r128_dri; }