Skip to content
Snippets Groups Projects
Commit bec45fd1 authored by Natanael Copa's avatar Natanael Copa
Browse files

main/mesa: x86_64 build fix. need secial case for sis too

based on nenolods patch
parent 20d46f0e
No related merge requests found
...@@ -13,7 +13,6 @@ subpackages="$pkgname-dev ...@@ -13,7 +13,6 @@ subpackages="$pkgname-dev
$pkgname-dri-mga:mga $pkgname-dri-mga:mga
$pkgname-dri-r128:r128 $pkgname-dri-r128:r128
$pkgname-dri-savage:savage $pkgname-dri-savage:savage
$pkgname-dri-sis:sis
$pkgname-dri-swrast:swrast $pkgname-dri-swrast:swrast
$pkgname-dri-tdfx:tdfx $pkgname-dri-tdfx:tdfx
$pkgname-dri-unichrome:unichrome $pkgname-dri-unichrome:unichrome
...@@ -32,6 +31,16 @@ _dri_driverdir=/usr/lib/xorg/modules/dri ...@@ -32,6 +31,16 @@ _dri_driverdir=/usr/lib/xorg/modules/dri
_builddir="$srcdir/Mesa-$pkgver" _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() { prepare() {
cd "$_builddir" cd "$_builddir"
for i in ../*.patch; do for i in ../*.patch; do
...@@ -78,14 +87,7 @@ _mv_dri() { ...@@ -78,14 +87,7 @@ _mv_dri() {
} }
ati() { _mv_dri radeon_dri r200_dri r300_dri r600_dri; } ati() { _mv_dri radeon_dri r200_dri r300_dri r600_dri; }
intel() { intel() { _mv_dri $_intel_dri; }
# 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;
}
mach64() { _mv_dri mach64_dri; } mach64() { _mv_dri mach64_dri; }
mga() { _mv_dri mga_dri; } mga() { _mv_dri mga_dri; }
r128() { _mv_dri r128_dri; } r128() { _mv_dri r128_dri; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment