updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / nvidia-texture-tools / PKGBUILD
bloba64dbd62f4540f69ab2bdb559bc5253adfa4d99f
1 pkgname=nvidia-texture-tools
2 pkgver=2.0.8
3 pkgrel=2
4 pkgdesc="GPU-accelerated Texture Tools with support for DirectX 10 texture formats"
5 arch=('i686' 'x86_64')
6 url="http://code.google.com/p/nvidia-texture-tools/"
7 license=('MIT')
8 depends=('libpng' 'libjpeg' 'libtiff' 'openexr')
9 makedepends=('cmake')
10 source=(http://nvidia-texture-tools.googlecode.com/files/${pkgname}-${pkgver}-1.tar.gz
11                 nvidia-texture-tools-2.0.8-add-pthread.patch
12                 issue139.patch
13                 r1157.patch)
14 md5sums=('7449c95ca1583b512561c83c5a5f401c'
15                 '55d011f08ef9c924a7fd5b2c8b9e2c85'
16                 'c67927632740fbea5efb02969b97b52c'
17                 'a044c7cae45e8c9946b4349e34793656')
19 build() {
20         cd ${srcdir}/${pkgname}
22         # add -pthread to linker, r1211
23         patch -p1 -i ${srcdir}/nvidia-texture-tools-2.0.8-add-pthread.patch
24         # Fix aliasing bug, r1167
25         patch -p1 -i ${srcdir}/issue139.patch
26         # patch for CUDA 3.0, this pkg doesn't require cuda, but be nice
27         patch -p2 -i ${srcdir}/r1157.patch
29         ./configure --prefix=/usr --release
30         make
33 package() {
34         cd ${srcdir}/${pkgname}
35         make DESTDIR=${pkgdir} install