summaryrefslogtreecommitdiff
path: root/community/freewrl
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/freewrl
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/freewrl')
-rw-r--r--community/freewrl/PKGBUILD30
-rw-r--r--community/freewrl/build-fix.patch24
2 files changed, 54 insertions, 0 deletions
diff --git a/community/freewrl/PKGBUILD b/community/freewrl/PKGBUILD
new file mode 100644
index 000000000..dbf9e06ec
--- /dev/null
+++ b/community/freewrl/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD 41793 2011-03-08 22:30:52Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
+
+pkgname=freewrl
+pkgver=1.22.10
+pkgrel=3
+pkgdesc="VRML viewer"
+arch=('i686' 'x86_64')
+url="http://freewrl.sourceforge.net/"
+license=('GPL')
+depends=('java-runtime' 'libxaw' 'glew' 'freeglut' 'xulrunner' 'curl' 'freetype2'
+ 'imlib2' 'sox' 'unzip' 'imagemagick' 'libxml2' 'ttf-bitstream-vera' 'lesstif')
+makedepends=('java-environment' 'xulrunner')
+options=(!libtool)
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2
+ build-fix.patch)
+md5sums=('07fd8f193d14799ffb95a59a4887fc88'
+ '1586b3ea98dd8c5c9f5ebfc3dd176232')
+
+build() {
+ . /etc/profile.d/openjdk6.sh
+ cd $srcdir/$pkgname-$pkgver
+ patch -p1 <$srcdir/build-fix.patch
+ ./configure \
+ --prefix=/usr --with-fontsdir=/usr/share/fonts/TTF --enable-libeai \
+ --enable-libcurl --with-expat=/usr --with-target=motif
+ make
+ make DESTDIR=$pkgdir install
+}
diff --git a/community/freewrl/build-fix.patch b/community/freewrl/build-fix.patch
new file mode 100644
index 000000000..a5e31ff23
--- /dev/null
+++ b/community/freewrl/build-fix.patch
@@ -0,0 +1,24 @@
+diff -wbBur freewrl-1.22.9.org/src/lib/non_web3d_formats/ColladaParser.c freewrl-1.22.9/src/lib/non_web3d_formats/ColladaParser.c
+--- freewrl-1.22.9.org/src/lib/non_web3d_formats/ColladaParser.c 2010-08-19 02:20:36.000000000 +0000
++++ freewrl-1.22.9/src/lib/non_web3d_formats/ColladaParser.c 2010-10-18 13:31:25.000000000 +0000
+@@ -54,7 +54,7 @@
+ #include "ColladaParser.h"
+
+ #if HAVE_EXPAT_H
+-# include <expat.h>
++# include </usr/include/expat.h>
+ #endif
+
+ #define PROTOINSTANCE_MAX_LEVELS 10
+diff -wbBur freewrl-1.22.9.org/src/lib/x3d_parser/X3DParser.c freewrl-1.22.9/src/lib/x3d_parser/X3DParser.c
+--- freewrl-1.22.9.org/src/lib/x3d_parser/X3DParser.c 2010-08-19 02:20:36.000000000 +0000
++++ freewrl-1.22.9/src/lib/x3d_parser/X3DParser.c 2010-10-18 13:30:01.000000000 +0000
+@@ -54,7 +54,7 @@
+ #include "X3DProtoScript.h"
+
+ #if HAVE_EXPAT_H
+-# include <expat.h>
++# include </usr/include/expat.h>
+ #endif
+ //#define X3DPARSERVERBOSE 1
+