aboutsummaryrefslogtreecommitdiffstats
path: root/main/xf86-video-tdfx/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/xf86-video-tdfx/APKBUILD')
-rw-r--r--main/xf86-video-tdfx/APKBUILD27
1 files changed, 22 insertions, 5 deletions
diff --git a/main/xf86-video-tdfx/APKBUILD b/main/xf86-video-tdfx/APKBUILD
index c30557656b..8a72dd7680 100644
--- a/main/xf86-video-tdfx/APKBUILD
+++ b/main/xf86-video-tdfx/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-tdfx
pkgver=1.4.5
-pkgrel=2
+pkgrel=4
pkgdesc="3Dfx video driver"
url="http://xorg.freedesktop.org/"
arch="all"
@@ -12,19 +12,36 @@ makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
videoproto renderproto libdrm-dev xf86driproto mesa-dev glproto
"
-source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2
+ 0001-Remove-mibstore.h.patch"
+
+
+_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
rm "$pkgdir"/usr/lib/xorg/modules/*/*.la || return 1
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
-md5sums="1b4a7815a604b3764900b520336a75ea xf86-video-tdfx-1.4.5.tar.bz2"
+md5sums="1b4a7815a604b3764900b520336a75ea xf86-video-tdfx-1.4.5.tar.bz2
+11d1ec9437791cc8851124c19e9129da 0001-Remove-mibstore.h.patch"
+sha256sums="70d5fbadfb60fc25e4f90f2a1aad258f64fa3953efbc1059103a8d845870d859 xf86-video-tdfx-1.4.5.tar.bz2
+986b4c032003a27f91941ae71bc4734b6e606850bf0bd3f835c703acfedecd30 0001-Remove-mibstore.h.patch"
+sha512sums="721f487fe2f08c51fe4622bbbbdbf5c2b8f078f811e18d03e707fd2ab121a8e0a95165934e1567f4280e2613e94fdf5dd35c6c6ddd1ff935a07cfbb485670555 xf86-video-tdfx-1.4.5.tar.bz2
+9fbe484ab0eb34513a7dc4418a8e5725db35b37fb83f6ae5120f88db8471589e667c310ebad4c98ab3fa00e27ab06725c67d3486dce641575223537c14b06b73 0001-Remove-mibstore.h.patch"