summaryrefslogtreecommitdiffstats
path: root/main/libtxc_dxtn/APKBUILD
blob: 519aeb4c70d53f0ac7c172c54526a54e400c4224 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libtxc_dxtn
pkgver=1.0.1
pkgrel=3
pkgdesc="S3TC texture decompression helper library"
url="http://dri.freedesktop.org/wiki/S3TC"
arch="all"
license="BSD"
depends=""
depends_dev="mesa-dev"
makedepends="$depends_dev automake autoconf libtool"
install=""
subpackages="$pkgname-dev"
source="http://cgit.freedesktop.org/~mareko/libtxc_dxtn/snapshot/libtxc_dxtn-$pkgver.tar.bz2"

_builddir="$srcdir"/libtxc_dxtn-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	libtoolize --force && aclocal -I m4 && autoconf \
		&& automake --add-missing
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr --sysconfdir=/etc || return 1
	make
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	rm "$pkgdir"/usr/lib/libtxc_dxtn.la
}

md5sums="63dc19246e1b8a5990be5ced66aff913  libtxc_dxtn-1.0.1.tar.bz2"