summaryrefslogtreecommitdiffstats
path: root/x11/mesa/APKBUILD
blob: 8bf386f6c43b63cc7e4ff8d0647890d53deabee8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mesa
pkgver=7.4.4
pkgrel=0
pkgdesc="Mesa DRI OpenGL library and drivers"
url="http://www.mesa3d.org"
license="LGPL"
depends=
subpackages="$pkgname-dev"
makedepends="pkgconfig libdrm-dev libxxf86vm-dev libxdamage-dev expat-dev
	dri2proto xextproto libx11-dev glproto"
source="http://downloads.sourceforge.net/mesa3d/MesaLib-$pkgver.tar.bz2
	mesa-7.1-link-shared.patch
	mesa-7.4-parallel.patch"

depends_dev="libdrm-dev dri2proto libx11-dev libxext-dev libxxf86vm-dev
	libxdamage-dev libxfixes-dev libxcb-dev"

build () 
{ 
	cd "$srcdir"/Mesa-$pkgver
	for i in ../*.patch; do
		msg "Applying $i..."
		patch -p1 -i $i || return 1
	done
	${CC:-gcc} -dumpspecs | sed 's/%(link_now)//g' > "$srcdir"/gcc-specs
	export GCC_SPECS="$srcdir"/gcc-specs

	./configure --prefix=/usr \
		--with-dri-driverdir=/usr/lib/xorg/modules/dri \
		--with-dri-drivers=swrast \
		--disable-asm \
		--enable-glx-tls \
		--disable-ttm-api \
		--with-driver=dri \
		--enable-xcb \
		--disable-glu \
		--disable-glut \
		--disable-glw || return 1
	make || return 1
	make -j1 DESTDIR="$pkgdir" install || return 1
	install -m755 -d "$pkgdir"/usr/lib/xorg/modules/extensions
	ln -sf libglx.xorg "$pkgdir"/usr/lib/xorg/modules/extensions/libglx.so || return 1
}
md5sums="b66528d314c574dccbe0ed963cac5e93  MesaLib-7.4.4.tar.bz2
f0baa948d9810f268413111ee439d24b  mesa-7.1-link-shared.patch
75e1bb69f384e9d60544fa03c15cc0ec  mesa-7.4-parallel.patch"