blob: d1e79773d0c22c8e17c80b5ff78268218c949f5e (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
IUSE="examples imagetexture javascript jpeg nsplugin opengl png truetype zlib" # java
DESCRIPTION="VRML97 library"
SRC_URI="mirror://sourceforge/openvrml/${P}.tar.gz"
HOMEPAGE="http://openvrml.org"
SLOT="0"
LICENSE="BSD GPL-2 LGPL-2.1 public-domain"
KEYWORDS="~amd64 ~x86"
RDEPEND=">=dev-libs/glib-2.6
gnome-base/libglade
gnome-base/libgnomeui
>=gnome-base/libgnome-2.14.1
net-misc/curl
examples? ( media-libs/libsdl )
javascript? ( www-client/mozilla-firefox )
jpeg? ( media-libs/jpeg )
nsplugin? ( www-client/mozilla-firefox )
opengl? ( virtual/opengl virtual/glut )
png? ( media-libs/libpng sys-libs/zlib )
truetype? ( >=media-libs/freetype-2 media-libs/fontconfig )"
# java? ( virtual/jre )
DEPEND="${RDEPEND}
dev-libs/boost
app-doc/doxygen"
# java? ( virtual/jdk dev-java/antlr )
# TODO: add support for java via libmozjs (http://www.mozilla.org/js/spidermonkey/)
pkg_setup() {
ewarn "Java is currently unsupported in this version!"
ewarn "Building openvrml with --disable-script-node-java."
}
src_compile() {
local myconf="--with-x \
$(use_enable examples) \
$(use_enable javascript script-node-javascript) \
$(use_enable jpeg jpeg-textures) \
$(use_enable nsplugin mozilla-plugin) \
$(use_enable opengl gl-renderer) \
$(use_enable png png-textures) \
$(use_enable truetype render-text-node) \
$(use_enable zlib gzip) \
--disable-script-node-java"
# Java is currently unsupported
# $(use_enable java script-node-java)
# use java && myconf="${myconf} --with-jdk=`java-config -O`"
econf --prefix=/usr ${myconf}
emake || die "make failed"
}
src_install() {
emake DESTDIR="${D}" install || die "make install failed"
dodoc AUTHORS ChangeLog NEWS README THANKS
}
|