Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 20th, 2012  |  syntax: Bash  |  size: 1.61 KB  |  hits: 74  |  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: Giuseppe Borzi <gborzi@ieee.org>
  2. # Contributor: Brice M<E9>alier <mealier_brice@yahoo.fr>
  3. # Contributor: Michele Mocciola <mickele>
  4. pkgname=opencascade
  5. pkgver=6.5.3
  6. pkgrel=1
  7. pkgdesc="Open CASCADE Technology, 3D modeling & numerical simulation"
  8. arch=('i686' 'x86_64')
  9. url="http://www.opencascade.org"
  10. license=('custom')
  11. depends=('tk' 'mesa' 'libxmu' 'ftgl')
  12. options=(!libtool)
  13. source=("http://files.opencascade.com/OCCT/OCC_${pkgver}_release/OpenCASCADE${pkgver//./}.tar.gz" "env.sh" "opencascade.sh" "opencascade.conf")
  14. md5sums=('5664a2ece641e1053035b08362b30a19'
  15.          'acf8ad1e470cd7d1c2033954c1b0f03a'
  16.          'd9368b8d348ced3ec4462012977552d2'
  17.          '2924ecf57c95d25888f51071fdc72ad0')
  18.  
  19. build() {
  20.   cd "$srcdir/ros"
  21.  
  22.   export CPLUS_INCLUDE_PATH=/usr/include/FTGL:/usr/include/freetype2
  23.   export CASROOT="$srcdir/ros"
  24.  
  25.   # fix missing include
  26.   sed -i -e '/#include <fstream>/a#include <unistd.h>' src/OSD/OSD_MemInfo.cxx
  27.   # fix wrong ftgl.h
  28.   sed -i -e 's_FTGL\.h_ftgl.h_' configure.ac
  29.   # fix for automake 1.12
  30.   sed -i -e '/AM_C_PROTOTYPES/d' configure.ac
  31.   ./build_configure
  32.   ./configure --disable-debug --enable-production \
  33.   --prefix="$pkgdir/opt/$pkgname"
  34.   make -j4
  35. }
  36.  
  37. package() {
  38.   cd "$srcdir/ros"
  39.  
  40.   make install
  41.   install -D -m644 "${srcdir}/opencascade.conf" "${pkgdir}/etc/ld.so.conf.d/opencascade.conf"
  42.   install -D -m 755 "${srcdir}/opencascade.sh" "${pkgdir}/etc/profile.d/opencascade.sh"
  43.   install -m 755 "${srcdir}/env.sh" "${pkgdir}/opt/$pkgname"
  44.   install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/License.txt"
  45. }
  46.  
  47. # vim:set ts=2 sw=2 et: