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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu May 13 14:10:32 2010 UTC (10 years, 2 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.2_rc67/cvs/Linux x86_64)

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.2 2007/07/22 10:02:16 dberkholz 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 epatch ${FILESDIR}/freewrl-makefile
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