summaryrefslogtreecommitdiffstats
path: root/main/xf86-video-openchrome/APKBUILD
blob: 0f1785cf8a0fff3c20f28f707c6f8014171c13c7 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-openchrome
pkgver=0.2.904
pkgrel=6
pkgdesc="X.Org driver for VIA/S3G cards"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
subpackages="$pkgname-dev $pkgname-doc"
depends=
makedepends="pkgconfig xorg-server-dev libxi-dev libxvmc-dev fontsproto glproto
	randrproto videoproto renderproto xf86driproto mesa-dev
	"

source="http://www.openchrome.org/releases/xf86-video-openchrome-$pkgver.tar.bz2
	openchrome-0.2.904-svn916.patch
	openchrome-0.2.904-fix_tvout_flickering.patch
	openchrome.xinf
	"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}
	
build() {
	cd "$_builddir"
	export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
	./configure --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
	install -Dm644 "$srcdir"/openchrome.xinf \
		"$pkgdir"/usr/share/hwdata/videoaliases/openchrome.xinf
}

md5sums="f2481d98ef54febf5bffbb88a2a2426d  xf86-video-openchrome-0.2.904.tar.bz2
aa0b1e76e3fc531aa487779dc5e1d1cc  openchrome-0.2.904-svn916.patch
cc7dff654c8363c61e8a77e0a12ea4fc  openchrome-0.2.904-fix_tvout_flickering.patch
d6906087f0e93ea2d98e553f4dfbcc97  openchrome.xinf"