aboutsummaryrefslogtreecommitdiffstats
path: root/main/xf86-video-r128/APKBUILD
blob: 495b36dc211a6602c7edcae55a30db48658eae13 (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
48
49
50
51
52
53
54
55
56
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-r128
pkgver=6.9.2
pkgrel=3
pkgdesc="ATI Rage128 video driver"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
subpackages="$pkgname-doc"
depends=
makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
	videoproto renderproto xineramaproto libdrm-dev xf86driproto glproto
	mesa-dev expat-dev
	util-macros autoconf automake libtool
	"

source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2
	git-fixes.patch"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	autoreconf -fi || return 1
}

build() {
	cd "$_builddir"
	export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-dri \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/xorg/modules/*/*.la || return 1
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
md5sums="2e906d856a1c477bde000254b142445c  xf86-video-r128-6.9.2.tar.bz2
4f1b508b64dd0435f1ab85c043bd531d  git-fixes.patch"
sha256sums="8b2d295f1842d07304a75da1cfb9bf139b320a6539970eaf8d5ecc010cd36ee0  xf86-video-r128-6.9.2.tar.bz2
2139a1d3b12950f452b72f4d9b916143814789df5080cee03a1e0955421b1808  git-fixes.patch"
sha512sums="7f8dc174ff8cff6d109a62610b255c3f3a99e6fbdc38373da3efb88a960a25fe3124dbdb6a9379de6b45edaedb3aae44a183a5604f80bbb488dbb98faebc2fb3  xf86-video-r128-6.9.2.tar.bz2
00836925ffd54a7e51b4e9e4e29fddc6d5bf587ed456e758f44681a7f89b0d6a4b46b166ff22627407fc3d97d49ed4e2d313d4ec67990b9f249f8ee734ccd4e5  git-fixes.patch"