# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $ # Contributor: Sergej Pupykin pkgname=freewrl pkgver=1.22.3 pkgrel=1 pkgdesc="VRML viewer" arch=('i686' 'x86_64') url="http://freewrl.sourceforge.net/" license=('GPL') depends=('java-runtime' 'libx11' 'libjpeg' 'libpng' 'expat' 'mesa' 'lesstif' 'libxaw') makedepends=('java-environment' 'perl' 'patch' 'xulrunner') source=(http://easynews.dl.sf.net/sourceforge/freewrl/$pkgname-$pkgver.tar.bz2) md5sums=('c21d85aa20b2d45453f83df532e769e4') build() { . /etc/profile.d/openjdk6.sh cd $startdir/src/$pkgname-$pkgver sed -i 's#| JSPROP_EXPORTED##' src/lib/world_script/jsUtils.c sed -i 's#DOUBLE_TO_JSVAL(0.0)#DOUBLE_TO_JSVAL(0)#' src/lib/world_script/jsVRML_MFClasses.c [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr make || return 1 make DESTDIR=$startdir/pkg install || return 1 }