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

Diff of /media-gfx/freewrl/freewrl-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 Revision 1.5
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2014 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/freewrl-9999.ebuild,v 1.4 2014/03/12 14:24:13 axs Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/freewrl-9999.ebuild,v 1.5 2014/03/14 13:45:19 axs Exp $
4 4
5EAPI=5 5EAPI=5
6 6
7inherit autotools nsplugins eutils flag-o-matic java-pkg-opt-2 multilib 7inherit autotools nsplugins eutils flag-o-matic java-pkg-opt-2 multilib
8 8
78 78
79 if has_version "<dev-lang/spidermonkey-1.8.5" ; then 79 if has_version "<dev-lang/spidermonkey-1.8.5" ; then
80 # spidermonkey pre-1.8.5 has no pkg-config, so override ./configure 80 # spidermonkey pre-1.8.5 has no pkg-config, so override ./configure
81 myconf+="${spidermonkeys_pc[@]/#/ --disable-}" 81 myconf+="${spidermonkeys_pc[@]/#/ --disable-}"
82 JAVASCRIPT_ENGINE_CFLAGS="-I/usr/include/js -DXP_UNIX" 82 JAVASCRIPT_ENGINE_CFLAGS="-I/usr/include/js -DXP_UNIX"
83 if has_version ">=dev-lang/spidermonkey-1.8" ; then 83 if has_version ">=dev-lang/spidermonkey-1.8:0" ; then
84 # spidermonkey-1.8 changed the name of the lib 84 # spidermonkey-1.8 changed the name of the lib
85 JAVASCRIPT_ENGINE_LIBS="-lmozjs" 85 JAVASCRIPT_ENGINE_LIBS="-lmozjs"
86 else 86 else
87 JAVASCRIPT_ENGINE_LIBS="-ljs" 87 JAVASCRIPT_ENGINE_LIBS="-ljs"
88 fi 88 fi
89 if has_version dev-lang/spidermonkey[threadsafe] ; then 89 if has_version "dev-lang/spidermonkey:0[threadsafe]" ; then
90 JAVASCRIPT_ENGINE_CFLAGS+=" -DJS_THREADSAFE $(pkg-config --cflags nspr)" 90 JAVASCRIPT_ENGINE_CFLAGS+=" -DJS_THREADSAFE $(pkg-config --cflags nspr)"
91 JAVASCRIPT_ENGINE_LIBS="$(pkg-config --libs nspr) ${JAVASCRIPT_ENGINE_LIBS}" 91 JAVASCRIPT_ENGINE_LIBS="$(pkg-config --libs nspr) ${JAVASCRIPT_ENGINE_LIBS}"
92 fi 92 fi
93 export JAVASCRIPT_ENGINE_CFLAGS 93 export JAVASCRIPT_ENGINE_CFLAGS
94 export JAVASCRIPT_ENGINE_LIBS 94 export JAVASCRIPT_ENGINE_LIBS

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20