updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / netgen / PKGBUILD
bloba30405dc08cc6a3dc74c08949bb0e84117f0ec4b
1 # Maintainer: Oliver Goethel <godeezy at gmail.com>
2 # Contributor: Thomas Zervogiannis <tzervo@gmail.com>
3 # Contributor: Michael Schubert <mschu.dev at gmail>
5 pkgname=netgen
6 pkgver=4.9.13
7 pkgrel=4
8 pkgdesc="An automatic 3D tetrahedral mesh generator"
9 url="http://www.hpfem.jku.at/netgen/"
10 depends=('tk' 'opencascade' 'libjpeg' 'ffmpeg' 
11 'tk-togl-legacy-netgen' 'tix')
12 arch=('i686' 'x86_64')
13 md5sums=('2d56642ca673106837bcd08ff9913d57'
14          'b963a08af5414da040f337ac863b93e5'
15          '6d48631e712839d728d7b9d99328fa15')
16 license=('LGPL')
17 source=("http://downloads.sourceforge.net/netgen-mesher/${pkgname}-${pkgver}.tar.gz" 
18 "netgen"
19 "netgen.patch")
20 options=('docs' '!libtool')
22 build() {
23   cd "${pkgname}-${pkgver}"
25   patch -Np1 -i ${srcdir}/netgen.patch
27   CXXFLAGS="-D__STDC_CONSTANT_MACROS" ./configure --prefix=/usr \
28     --enable-occ -with-occ=/opt/opencascade --with-gnu-ld --enable-nglib \
29     --enable-jpeglib --enable-ffmpeg --datadir=/usr/share
31   make || return 1
32   make DESTDIR="$pkgdir" install
33   
34   install -D -m644 "$srcdir/$pkgname-$pkgver/doc/ng4.pdf" \
35     "$pkgdir/usr/share/doc/$pkgname/ng4.pdf"
36   mv "$pkgdir/usr/bin/netgen" "$pkgdir/usr/bin/netgen.bin"
37   install -m 755 "$srcdir/netgen" "$pkgdir/usr/bin/netgen"