summaryrefslogtreecommitdiffstats
path: root/main/xf86-video-openchrome/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-05-02 14:06:23 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-05-02 14:32:54 +0000
commit86719178c41db9670e90503b788edb84c131ae2e (patch)
tree9cbdb65438a5a70fe541609246d81ea411ce1f9f /main/xf86-video-openchrome/APKBUILD
parent36ad57c8dbd8adc17ad79dcbe702289e3a4758e4 (diff)
downloadaports-86719178c41db9670e90503b788edb84c131ae2e.tar.bz2
aports-86719178c41db9670e90503b788edb84c131ae2e.tar.xz
main/xf86-video-openchrome: add fixes from upstreram
Diffstat (limited to 'main/xf86-video-openchrome/APKBUILD')
-rw-r--r--main/xf86-video-openchrome/APKBUILD30
1 files changed, 25 insertions, 5 deletions
diff --git a/main/xf86-video-openchrome/APKBUILD b/main/xf86-video-openchrome/APKBUILD
index 982dc2444..0f1785cf8 100644
--- a/main/xf86-video-openchrome/APKBUILD
+++ b/main/xf86-video-openchrome/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-openchrome
pkgver=0.2.904
-pkgrel=5
+pkgrel=6
pkgdesc="X.Org driver for VIA/S3G cards"
url="http://xorg.freedesktop.org/"
arch="all"
@@ -12,18 +12,38 @@ 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"
+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 "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
./configure --prefix=/usr || return 1
make || return 1
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ 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"
+
+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"