aboutsummaryrefslogtreecommitdiffstats
path: root/main/xf86-video-xgixp/APKBUILD
blob: 5be06dafc744bfe69766968a8f42e5f1cb0a1ee4 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-xgixp
pkgver=1.8.1
pkgrel=8
pkgdesc="X.org XGIXP video driver"
url="http://xorg.freedesktop.org/"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
depends=
makedepends="xorg-server-dev libdrm-dev xf86driproto glproto mesa-dev"
source="http://www.x.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2
	git-fixes.patch"

builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$builddir"
	update_config_sub || return 1
	default_prepare
}

build() {
	cd "$builddir"
	export LDFLAGS="$LDFLAGS -Wl,-z,lazy"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
sha512sums="ab45909e4b48cc9dfa3daf5d2cb50dff6ad7d841fe1dc75ea699a7c555d70a6f565d97b7c68f4c58da16ad022b973892e229f8d0f4059c8712cf513c1ec10f84  xf86-video-xgixp-1.8.1.tar.bz2
c3a5f629655dba04af14db2006fdc82eb4ba406082eb830903e79bc4ac8f269ed096b11a0b91d0a789bff3bdda0ac4789ad76e4a8f568ef24a01d9cbc5c34745  git-fixes.patch"