diff options
Diffstat (limited to 'dev-tcltk/tcl3d')
-rw-r--r-- | dev-tcltk/tcl3d/Manifest | 4 | ||||
-rw-r--r-- | dev-tcltk/tcl3d/metadata.xml | 8 | ||||
-rw-r--r-- | dev-tcltk/tcl3d/tcl3d-0.5.0.ebuild | 39 |
3 files changed, 31 insertions, 20 deletions
diff --git a/dev-tcltk/tcl3d/Manifest b/dev-tcltk/tcl3d/Manifest index 68454ee8b48a..345ea61f37ef 100644 --- a/dev-tcltk/tcl3d/Manifest +++ b/dev-tcltk/tcl3d/Manifest @@ -3,5 +3,5 @@ DIST tcl3d-src-0.4.0.zip 1501305 BLAKE2B 61fe35df0bf5624ef5fbd7fa029b8ad7a23ed63 DIST tcl3d-src-0.5.0.zip 3936271 BLAKE2B 97bd3815c05254162d8af4b2029dd2ac4218ed4bfb94e19a6454f41c12953b48f616444e466dda5359433f84a9284a2e20316b6c97b0e3a20deada47f583510c SHA512 24f799d5cc0ad9daf060b6b723d1197be678c0716b2099287e004221889c56da03f7368d6cd4c47dbbbbfe936b0bf65366cd452d3d9c2335cdfbae6ff3860a29 EBUILD tcl3d-0.4.0-r1.ebuild 1333 BLAKE2B d07d4f56b7cea8ef7f5d03211be9a3a5bbd5e9a3e0d71b4dcff726a29ceb7fd85eaf372f820edd88987200adfbd285793bc6a47e343d39cb308c8186b2bf6e3d SHA512 541ab991db6ee8c54838abe091d6574cfa45afc7529d0a6bc2da58370369f0b11bc633ea8ef216a4910a35d4a43e9b6b2b2ebba93bde29e70b01975780a87646 EBUILD tcl3d-0.4.0.ebuild 1332 BLAKE2B 2d958e54233102755773f21b394acf30c79c6489df5bed1bfea5ab657223eb667465a8fda07f5ec1d48a35a0528dd03822233786ba97086f7059e4f4e592d28f SHA512 7bcb8c5cadb7720734b3b8bf69417840f7af75d300b53c822609207efe1f82ab428c41872218dc0d2efbf20b2df701398c908c2da0d073695a0fbdaaf276bd93 -EBUILD tcl3d-0.5.0.ebuild 1596 BLAKE2B 235282d16ec37e5bb50ef2fb0a1b789365a723915a47c8c85b9ed595ba307e76abcfa1b979b4114a2afd1ff4b299e91f6d93644ca66152435e37461c72961b7f SHA512 329a86fa856a055bf1a68b9e9c650ccf15da85491a1c64b733009c0bb01af05c2e892fc69890625980e714b5facf205dfc3778361c3dab43fdf7f8511b052899 -MISC metadata.xml 1103 BLAKE2B b5528e54e960a114a53f560125ffdb30e45bf2dd2e9376a3d296d1734a40a8782b9e10e64cd50a80cd38b0f72cad7afe651c053c636f553f3c881cfc56a1f394 SHA512 8b5a1142c700c1319ce44617f1f4fe81475df16d3be90f5a8774c72cabab5fce196821d95d957bed2009454295edd868ad03c67fe0b8b8953f3338b197c53fa7 +EBUILD tcl3d-0.5.0.ebuild 1878 BLAKE2B 785ced313466891f52fb0a06e17fee11abcafb98737da5d5b2efc3121c7ffa92e13ffb1c09794258c2a55ce9479d692faf9edec8d9b8361f2c1bd34adf8f8e1f SHA512 b39e5086385319f9c9f70a515229444ab8d1bd3f93f7d1f971cf1f87bf55a0edcbf3531d099f93d96c1c8381a3aae181c700a68dd9f845eac1be371918ea3aab +MISC metadata.xml 1311 BLAKE2B 72c200e646b9fddd4b20a266d7d66e967f918e467d413a063af6076cc0fb786b38bf0b61c9ce288f3215b0ec30485cbed4ad3ad35bad48f48c09936eff6f90da SHA512 291f517e0690cb71786359156418f3622ac8e5e86f8d8d33377b967d85bddd4c05fa49dccee56bc2ff719b2ebe45b497304fa5262ec193832b6c3c8f9ca09943 diff --git a/dev-tcltk/tcl3d/metadata.xml b/dev-tcltk/tcl3d/metadata.xml index 851c8cbb0582..2b1fbebe51e1 100644 --- a/dev-tcltk/tcl3d/metadata.xml +++ b/dev-tcltk/tcl3d/metadata.xml @@ -5,6 +5,14 @@ <email>tcltk@gentoo.org</email> <name>Gentoo Tcltk Project</name> </maintainer> +<use> + <flag name="ode"> + Enable support for physics engine from <pkg>dev-games/ode</pkg> + </flag> + <flag name="osg"> + Enable support for 3D toolkit from <pkg>dev-games/openscenegraph</pkg> + </flag> +</use> <longdescription> Tcl3D offers the 3D functionality of OpenGL and other 3D libraries at the Tcl scripting level. The Tcl3D package currently consists of the following modules: diff --git a/dev-tcltk/tcl3d/tcl3d-0.5.0.ebuild b/dev-tcltk/tcl3d/tcl3d-0.5.0.ebuild index e9a64f8be868..1b0775851245 100644 --- a/dev-tcltk/tcl3d/tcl3d-0.5.0.ebuild +++ b/dev-tcltk/tcl3d/tcl3d-0.5.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -12,26 +12,25 @@ SRC_URI="http://www.tcl3d.org/download/${P}.distrib/${PN}-src-${PV}.zip" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="debug" +IUSE="debug ode osg sdl truetype" -DEPEND=" - >=dev-lang/swig-1.3.38:0= +RDEPEND="dev-lang/tcl:0= dev-lang/tk:0= - dev-lang/tcl:0= - dev-games/ode - dev-games/openscenegraph - media-libs/libsdl - media-libs/ftgl - virtual/opengl + x11-libs/libXi x11-libs/libXmu -" + virtual/opengl + virtual/glu + ode? ( dev-games/ode ) + osg? ( dev-games/openscenegraph ) + truetype? ( media-libs/ftgl ) + sdl? ( media-libs/libsdl )" +DEPEND="${RDEPEND} + >=dev-lang/swig-1.3.38:0=" S="${WORKDIR}/${PN}" PATCHES=( "${FILESDIR}/${P}-include-tk-dir-and-permissive.patch" ) -src_prepare() { - default - +src_configure() { local _TCL_V=( $(echo 'puts [info tclversion]' | tclsh | tr '.' ' ') ) local _TCL_FV="${_TCL_V[0]}.${_TCL_V[1]}" @@ -49,6 +48,13 @@ src_compile() { append-flags -fPIC use debug || append-flags -DNDEBUG + # Configure wrapper + local CONFIG_PLUGIN="WRAP_GL2PS=" + use truetype || CONFIG_PLUGIN+=" WRAP_FTGL=" + use ode || CONFIG_PLUGIN+=" WRAP_ODE=" + use osg || CONFIG_PLUGIN+=" WRAP_OSG=" + use sdl || CONFIG_PLUGIN+=" WRAP_SDL=" + # Restricting build to -j1 since it seems that if we build it in parallel, # it fails with the "tcl3dOsg" project attempting to import glewdefs.i, # and not finding it. @@ -59,10 +65,7 @@ src_compile() { CC="$(tc-getCC) -c" \ CXX="$(tc-getCXX) -c" \ LD="$(tc-getLD)" \ - WRAP_FTGL=1 \ - WRAP_SDL=1 \ - WRAP_GL2PS=0 \ - WRAP_ODE=1 + ${CONFIG_PLUGIN} } src_install() { |