Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 23rd, 2011  |  syntax: None  |  size: 1.24 KB  |  views: 138  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Michael Schubert <mschu.dev at gmail>
  2. # Contributor: Thomas Zervogiannis <tzervo@gmail.com>
  3. # Contributor: Oliver Goethel <godeezy at gmail.com>
  4.  
  5. pkgname=netgen
  6. pkgver=4.9.13
  7. pkgrel=3
  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')
  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')
  21.  
  22. build() {
  23.   cd "${pkgname}-${pkgver}"
  24.  
  25.   patch -Np1 -i ${srcdir}/netgen.patch
  26.  
  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
  30.  
  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"
  38. }
clone this paste RAW Paste Data