blob: 4ff18322b65e30bcb73f2cd880beb9f9d7996518 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# $Id: PKGBUILD 63566 2012-02-05 11:56:27Z ibiru $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=freewrl
pkgver=1.22.10
pkgrel=8
pkgdesc="VRML viewer"
arch=('i686' 'x86_64')
url="http://freewrl.sourceforge.net/"
license=('GPL')
depends=('java-runtime' 'libxaw' 'glew' 'freeglut' 'curl' 'freetype2' 'imlib2' 'sox'
'unzip' 'imagemagick' 'libxml2' 'ttf-bitstream-vera' 'lesstif' 'js')
makedepends=('java-environment')
options=(!libtool)
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2
build-fix.patch)
md5sums=('07fd8f193d14799ffb95a59a4887fc88'
'52e4b6aacebcaf18cbec8975e0eb7fd8')
build() {
. /etc/profile.d/jre.sh
. /etc/profile.d/jdk.sh
cd $srcdir/$pkgname-$pkgver
patch -p1 <$srcdir/build-fix.patch
export JAVASCRIPT_ENGINE_CFLAGS="-I/usr/include/js -DXP_UNIX -DJS_THREADSAFE $(pkg-config --cflags nspr)"
export JAVASCRIPT_ENGINE_LIBS="$(pkg-config --libs nspr) -lmozjs185"
./configure \
--prefix=/usr --with-fontsdir=/usr/share/fonts/TTF --enable-libeai \
--enable-libcurl --with-expat=/usr --with-target=x11 --disable-plugin \
--disable-mozilla-js --disable-xulrunner-js --disable-firefox-js \
--disable-seamonkey-js
make
}
package() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
}
|