/[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.1 - (show annotations) (download)
Tue Feb 13 14:56:13 2007 UTC (13 years, 5 months ago) by hanno
Branch: MAIN
freewrl bump
(Portage version: 2.1.2-r9)

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.10.ebuild,v 1.1 2007/01/17 07:45:27 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="|| ( (
16 x11-libs/libXau
17 x11-libs/libXdmcp
18 x11-libs/libXxf86vm
19 x11-libs/libXext
20 x11-libs/libX11
21 media-libs/mesa
22 ) virtual/x11 )
23 virtual/opengl
24 virtual/jdk
25 media-libs/libpng
26 media-libs/jpeg
27 >=media-libs/freetype-2
28 >=dev-lang/perl-5.8.2
29 dev-perl/XML-Parser
30 media-fonts/ttf-bitstream-vera
31 !<media-gfx/freewrl-1.18.10"
32 RDEPEND="media-gfx/imagemagick
33 media-sound/sox
34 net-misc/wget
35 ${DEPEND}"
36 MAKEOPTS="${MAKEOPTS} -j1"
37
38 src_unpack() {
39 unpack ${A}
40 cd ${S}
41 if use nsplugin; then
42 sed -i -e "s:/usr/lib/mozilla/plugins:/usr/$(get_libdir)/${PLUGINS_DIR}:g" vrml.conf
43 else
44 sed -i -e "s:NETSCAPE_:#NETSCAPE_:g" vrml.conf
45 fi
46
47 sed -i -e 's:-DHAVE_MOTIF::g' vrml.conf
48 }
49
50 src_compile() {
51 perl Makefile.PL
52 emake || die "make failed"
53
54 if use nsplugin; then
55 cd ${S}/Plugin
56 # build plugin with -fPIC
57 emake OPTIMIZER="$CFLAGS -DPIC -fPIC" || die "make failed"
58 fi
59 }
60
61 src_install() {
62 if use nsplugin; then
63 # create plugins dir *before* emake install, so that plugin will get installed
64 insinto /usr/$(get_libdir)/${PLUGINS_DIR}
65 doins java/classes/vrml.jar
66 fi
67 emake DESTDIR=${D} install || die "make install failed"
68 rm -rf ${D}/usr/share/freewrl/fonts
69 dosym /usr/share/fonts/ttf-bitstream-vera /usr/share/freewrl/fonts
70 }

  ViewVC Help
Powered by ViewVC 1.1.20