1 # $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
2 # Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
7 pkgdesc="A uniquely powerful, full-featured software package for the visualization of scientific, engineering and analytical data"
9 url="http://www.opendx.org/"
11 depends=('lesstif' 'netcdf' 'imagemagick')
13 options=('!libtool' '!makeflags')
14 source=(http://www.sfr-fresh.com/unix/misc/dx-4.4.4.tar.gz opendx.desktop LICENSE)
15 md5sums=('8fe6a09faea4aa713a1540f51371b719' '9e3771c3881e1126fa74225d5525c1fa'\
16 'cb5e74007c76ca289235092e5c13e2cb')
19 cd ${srcdir}/dx-${pkgver}
20 # quick hack to fix compile linux/sys.h error
21 # ln -s /usr/lib/klibc/include /usr/include/klibc
22 sed -i -e 's|linux/sys.h|/usr/lib/klibc/include/linux/sys.h|' configure.ac src/exec/libdx/memory.c || return 1
23 ./configure --prefix=/usr/lib --exec-prefix=/usr/bin --with-javadx=no
24 CPPFLAGS="$CPPFLAGS -I/usr/lib/klibc/include" make || return 1
25 make DESTDIR=${pkgdir} install || return 1
26 rm -r ${pkgdir}/usr/lib/dx/{html,doc}
29 mv ${pkgdir}/usr/lib/bin ${pkgdir}/usr
32 install -D -m644 ${srcdir}/dx-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
34 # install freedesktop stuff
35 install -D -m644 ${srcdir}/opendx.desktop ${pkgdir}/usr/share/applications/opendx.desktop
37 # fix manpath - ugly but it works
38 install -D -m644 ${pkgdir}/usr/lib/dx/man/manl/dx.l ${pkgdir}/usr/share/man/manl/dx.l
39 install -D -m644 ${pkgdir}/usr/lib/dx/man/catl/dx.l ${pkgdir}/usr/share/man/catl/dx.l
40 rm -R ${pkgdir}/usr/lib/dx/man
42 md5sums=('6da0c4cd21d3c08f97b7662e3aee5b7b'
43 '9e3771c3881e1126fa74225d5525c1fa'
44 'cb5e74007c76ca289235092e5c13e2cb')