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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

1 hanno 1.5 # Copyright 1999-2007 Gentoo Foundation
2 hanno 1.1 # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.7 # $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/freewrl-1.16.1.ebuild,v 1.6 2007/07/22 10:02:16 dberkholz Exp $
4 hanno 1.1
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 dberkholz 1.6 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 hanno 1.1 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     RDEPEND="media-gfx/imagemagick
29     media-sound/sox
30     net-misc/wget
31     ${DEPEND}"
32 hanno 1.2 MAKEOPTS="${MAKEOPTS} -j1"
33 hanno 1.1
34     src_unpack() {
35     unpack ${A}
36     cd ${S}
37     if use nsplugin; then
38     sed -i -e "s:/usr/lib/mozilla/plugins:/usr/$(get_libdir)/${PLUGINS_DIR}:g" vrml.conf
39     else
40     sed -i -e "s:NETSCAPE_:#NETSCAPE_:g" vrml.conf
41     fi
42    
43     epatch "${FILESDIR}/freewrl-1.16.1-plugin-install.patch"
44     epatch "${FILESDIR}/freewrl-1.16.1-use-java-home.patch"
45     epatch "${FILESDIR}/freewrl-1.16.1-disable-rpm.patch"
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     }

  ViewVC Help
Powered by ViewVC 1.1.20