/[gentoo-x86]/media-gfx/freewrl/freewrl-1.18.14.ebuild
Gentoo

Contents of /media-gfx/freewrl/freewrl-1.18.14.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Jul 22 10:02:16 2007 UTC (13 years ago) by dberkholz
Branch: MAIN
Changes since 1.1: +7 -9 lines
Drop virtual/x11 references.
(Portage version: 2.1.3_rc8)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/freewrl-1.18.14.ebuild,v 1.1 2007/02/13 14:56:13 hanno Exp $
4
5 inherit nsplugins eutils perl-module toolchain-funcs
6
7 IUSE="nsplugin"
8
9 DESCRIPTION="VRML2 and X3D compliant browser"
10 SRC_URI="mirror://sourceforge/freewrl/${P}.tar.gz"
11 HOMEPAGE="http://freewrl.sourceforge.net/"
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~x86"
15 DEPEND="x11-libs/libXau
16 x11-libs/libXdmcp
17 x11-libs/libXxf86vm
18 x11-libs/libXext
19 x11-libs/libX11
20 media-libs/mesa
21 virtual/opengl
22 virtual/jdk
23 media-libs/libpng
24 media-libs/jpeg
25 >=media-libs/freetype-2
26 >=dev-lang/perl-5.8.2
27 dev-perl/XML-Parser
28 media-fonts/ttf-bitstream-vera
29 !<media-gfx/freewrl-1.18.10"
30 RDEPEND="media-gfx/imagemagick
31 media-sound/sox
32 net-misc/wget
33 ${DEPEND}"
34 MAKEOPTS="${MAKEOPTS} -j1"
35
36 src_unpack() {
37 unpack ${A}
38 cd ${S}
39 if use nsplugin; then
40 sed -i -e "s:/usr/lib/mozilla/plugins:/usr/$(get_libdir)/${PLUGINS_DIR}:g" vrml.conf
41 else
42 sed -i -e "s:NETSCAPE_:#NETSCAPE_:g" vrml.conf
43 fi
44
45 sed -i -e 's:-DHAVE_MOTIF::g' vrml.conf
46 }
47
48 src_compile() {
49 perl Makefile.PL
50 emake || die "make failed"
51
52 if use nsplugin; then
53 cd ${S}/Plugin
54 # build plugin with -fPIC
55 emake OPTIMIZER="$CFLAGS -DPIC -fPIC" || die "make failed"
56 fi
57 }
58
59 src_install() {
60 if use nsplugin; then
61 # create plugins dir *before* emake install, so that plugin will get installed
62 insinto /usr/$(get_libdir)/${PLUGINS_DIR}
63 doins java/classes/vrml.jar
64 fi
65 emake DESTDIR=${D} install || die "make install failed"
66 rm -rf ${D}/usr/share/freewrl/fonts
67 dosym /usr/share/fonts/ttf-bitstream-vera /usr/share/freewrl/fonts
68 }

  ViewVC Help
Powered by ViewVC 1.1.20