aboutsummaryrefslogtreecommitdiffstats
path: root/main/libtxc_dxtn
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-12-08 22:41:34 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2011-12-08 22:41:34 -0600
commit84009e4c79006b51709b9c3a92a2e58d2121af7d (patch)
tree74cb5577ae27b3dbca9d21d4cf90d6fe12af56d7 /main/libtxc_dxtn
parent276e37454bbb8d65636801cdb06295392c20779e (diff)
downloadaports-84009e4c79006b51709b9c3a92a2e58d2121af7d.tar.bz2
aports-84009e4c79006b51709b9c3a92a2e58d2121af7d.tar.xz
main/libtxc_dxtn: new aport
Diffstat (limited to 'main/libtxc_dxtn')
-rw-r--r--main/libtxc_dxtn/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/main/libtxc_dxtn/APKBUILD b/main/libtxc_dxtn/APKBUILD
new file mode 100644
index 0000000000..6a3c79ec03
--- /dev/null
+++ b/main/libtxc_dxtn/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=libtxc_dxtn
+pkgver=1.0.1
+pkgrel=0
+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
+}
+
+build() {
+ cd "$_builddir"
+
+ sh autogen.sh
+ ./configure --prefix=/usr --sysconfdir=/etc || return 1
+ make -j4
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+ rm "$pkgdir"/usr/lib/libtxc_dxtn.la
+}
+
+md5sums="63dc19246e1b8a5990be5ced66aff913 libtxc_dxtn-1.0.1.tar.bz2"