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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Thu Jul 28 16:44:09 2011 UTC (9 years ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Remove old

(Portage version: 2.2.0_alpha47/cvs/Linux x86_64)

1 ssuominen 1.4 # Copyright 1999-2011 Gentoo Foundation
2 patrick 1.1 # Distributed under the terms of the GNU General Public License v2
3 patrick 1.6 # $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/freewrl-1.22.9.ebuild,v 1.5 2011/04/01 14:23:55 patrick Exp $
4 patrick 1.1
5     EAPI="2"
6    
7     inherit nsplugins eutils flag-o-matic
8    
9     DESCRIPTION="VRML2 and X3D compliant browser"
10     SRC_URI="mirror://sourceforge/freewrl/${P}.tar.bz2"
11     HOMEPAGE="http://freewrl.sourceforge.net/"
12    
13     LICENSE="GPL-3"
14     SLOT="0"
15     KEYWORDS="~amd64 ~x86"
16     IUSE="curl debug libeai +glew +motif nsplugin +sox spidermonkey static"
17    
18     COMMONDEPEND="x11-libs/libXau
19     x11-libs/libXdmcp
20     x11-libs/libXext
21     x11-libs/libX11
22 ulm 1.3 motif? ( >=x11-libs/openmotif-2.3:0 )
23 patrick 1.1 media-libs/mesa
24     glew? ( media-libs/glew )
25     virtual/opengl
26     media-libs/libpng
27 ssuominen 1.4 virtual/jpeg
28 patrick 1.1 media-libs/imlib2
29     >=media-libs/freetype-2
30     curl? ( net-misc/curl )
31 patrick 1.5 !spidermonkey? ( <net-libs/xulrunner-2.0 )
32 patrick 1.1 spidermonkey? ( dev-lang/spidermonkey )
33     nsplugin? ( || (
34 patrick 1.5 <net-libs/xulrunner-2.0
35 patrick 1.1 www-client/firefox
36     ) )"
37     DEPEND="${COMMONDEPEND}
38     >=dev-util/pkgconfig-0.22"
39     RDEPEND="${COMMONDEPEND}
40     media-fonts/ttf-bitstream-vera
41     media-gfx/imagemagick
42     app-arch/unzip
43     sox? ( media-sound/sox )"
44    
45     src_prepare() {
46     # A hack to get around expat being grabbed from xulrunner
47     mkdir "${S}/src/lib/include";
48     cp /usr/include/expat.h "${S}/src/lib/include/";
49     cp /usr/include/expat_external.h "${S}/src/lib/include/";
50     }
51    
52     src_configure() {
53     local myconf="--with-fontsdir=/usr/share/fonts/ttf-bitstream-vera
54     --with-imageconvert=/usr/bin/convert
55     --with-unzip=/usr/bin/unzip"
56     if use motif; then
57     myconf="${myconf} --with-x --with-target=motif"
58     else
59     myconf="${myconf} --with-x --with-target=x11"
60     fi
61     if use nsplugin; then
62     myconf="${myconf} --with-plugindir=/usr/$(get_libdir)/${PLUGINS_DIR}"
63     fi
64     if use sox; then
65     myconf="${myconf} --with-soundconv=/usr/bin/sox"
66     fi
67     if use spidermonkey; then
68     # disable the checks for other js libs, in case they are installed
69     myconf="${myconf} --disable-mozilla-js --disable-xulrunner-js --disable-firefox-js --disable-seamonkey-js"
70     # spidermonkey has no pkg-config, so override ./configure
71     JAVASCRIPT_ENGINE_CFLAGS="-I/usr/include/js -DXP_UNIX"
72     JAVASCRIPT_ENGINE_LIBS="-ljs"
73     if has_version dev-lang/spidermonkey[threadsafe] ; then
74     JAVASCRIPT_ENGINE_CFLAGS="${JAVASCRIPT_ENGINE_CFLAGS} -DJS_THREADSAFE $(pkg-config --cflags nspr)"
75     JAVASCRIPT_ENGINE_LIBS="$(pkg-config --libs nspr) ${JAVASCRIPT_ENGINE_LIBS}"
76     fi
77     export JAVASCRIPT_ENGINE_CFLAGS
78     export JAVASCRIPT_ENGINE_LIBS
79     else
80     # more hack to get around expat being grabbed from xulrunner
81     myconf="${myconf} --with-expat=${S}/src/lib"
82     fi
83     econf ${myconf} \
84     $(use_enable curl libcurl) \
85     $(use_with glew) \
86     $(use_enable debug) $(use_enable debug thread_colorized) \
87     $(use_enable libeai) \
88     $(use_enable nsplugin plugin) \
89     $(use_enable static) \
90     $(use_enable sox sound)
91     }
92    
93     src_install() {
94     emake DESTDIR="${D}" install || die "emake install failed"
95    
96     # remove unneeded .la files (as per Flameeyes' rant)
97     cd "${D}"
98     rm "usr/$(get_libdir)"/*.la "usr/$(get_libdir)/${PLUGINS_DIR}"/*.la
99 mr_bones_ 1.2 }

  ViewVC Help
Powered by ViewVC 1.1.20