1 # Maintainer: Oliver Goethel <godeezy at gmail.com>
2 # Contributor: Thomas Zervogiannis <tzervo@gmail.com>
3 # Contributor: Michael Schubert <mschu.dev at gmail>
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')
17 source=("http://downloads.sourceforge.net/netgen-mesher/${pkgname}-${pkgver}.tar.gz"
20 options=('docs' '!libtool')
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
32 make DESTDIR="$pkgdir" install
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"