* [gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tcl3d/, dev-tcltk/tcl3d/files/
@ 2016-10-31 14:25 Amy Winston
0 siblings, 0 replies; 3+ messages in thread
From: Amy Winston @ 2016-10-31 14:25 UTC (permalink / raw
To: gentoo-commits
commit: f5fb3bbbabcb12914894e6cd21dc84f929a11bc8
Author: Jonathan Vasquez <jvasquez1011 <AT> gmail <DOT> com>
AuthorDate: Mon Oct 24 01:26:47 2016 +0000
Commit: Amy Winston <amynka <AT> gentoo <DOT> org>
CommitDate: Mon Oct 31 14:19:29 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5fb3bbb
dev-tcltk/tcl3d version bump to 0.5.0 and added x86 support
Gentoo-Bug: 469304,514300
dev-tcltk/tcl3d/Manifest | 1 +
...tcl3d-0.5.0-include-tk-dir-and-permissive.patch | 72 ++++++++++++++++++++++
dev-tcltk/tcl3d/metadata.xml | 1 +
dev-tcltk/tcl3d/tcl3d-0.5.0.ebuild | 71 +++++++++++++++++++++
4 files changed, 145 insertions(+)
diff --git a/dev-tcltk/tcl3d/Manifest b/dev-tcltk/tcl3d/Manifest
index a5c60e4..a1f72dd 100644
--- a/dev-tcltk/tcl3d/Manifest
+++ b/dev-tcltk/tcl3d/Manifest
@@ -1 +1,2 @@
DIST tcl3d-src-0.4.0.zip 1501305 SHA256 f98bee3c2ca0189780125b683481949e1499018ee56ad1d21b4e3e594e058496 SHA512 a8a525693bc45e9fb9e2167e2121d300ff60534f2bced33bb068a1075cfd8e8281dd97bd7fb432b9d6a95cdb37fc3da03c82dd1ee20e368fb8ac249ea54c30a5 WHIRLPOOL cbc1982df7a28b93249ff7877d0376b06b64261bb33f3df8c64b2c80600684529605b9eeff6f593c2e9f7c64c253066b226f0a0dae9cee21bec980f6782c7777
+DIST tcl3d-src-0.5.0.zip 3936271 SHA256 a2ecccbdb9c87fd02a7b969cc02abbf43aa51e619bd79e08dbffb8e376b6957c SHA512 24f799d5cc0ad9daf060b6b723d1197be678c0716b2099287e004221889c56da03f7368d6cd4c47dbbbbfe936b0bf65366cd452d3d9c2335cdfbae6ff3860a29 WHIRLPOOL b2a1f3d81be1bed6476652bc6fd4ed2dd3bd85a2b895c950a1298f6ed998b05f0ac02937233f352bf794818112e114f22b3d2123c99be7a6458e464ee33e1604
diff --git a/dev-tcltk/tcl3d/files/tcl3d-0.5.0-include-tk-dir-and-permissive.patch b/dev-tcltk/tcl3d/files/tcl3d-0.5.0-include-tk-dir-and-permissive.patch
new file mode 100644
index 00000000..58efa18
--- /dev/null
+++ b/dev-tcltk/tcl3d/files/tcl3d-0.5.0-include-tk-dir-and-permissive.patch
@@ -0,0 +1,72 @@
+diff -ru tcl3d/config_Linux tcl3d-m/config_Linux
+--- tcl3d/config_Linux 2010-08-30 15:57:56.000000000 -0400
++++ tcl3d-m/config_Linux 2016-10-30 13:28:34.080601812 -0400
+@@ -74,6 +74,8 @@
+ TKINCDIR = $(TKDIR)/include
+ TCLLIBDIR = $(TCLDIR)/lib
+ TKLIBDIR = $(TKDIR)/lib
++TCLLIBINCDIR = $(TCLLIBDIR)/tcl$(TCLVERSION)/include
++TKLIBINCDIR = $(TCLLIBDIR)/tk$(TCLVERSION)/include
+ TCLSTUBLIBS = $(TKLIBDIR)/libtkstub$(TCLVERSION)$(LIBEXT) $(TCLLIBDIR)/libtclstub$(TCLVERSION)$(LIBEXT)
+ TCLSTDLIBS = $(TKLIBDIR)/libtk$(TCLVERSION)$(LIBEXT) $(TCLLIBDIR)/libtcl$(TCLVERSION)$(LIBEXT)
+ TCLSH = tclsh$(TCLVERSION)
+@@ -84,7 +86,13 @@
+ CPDIR = csh -f cpdir
+ MKDIR = mkdir -p
+
+-INCL = -I. -I$(TCLINCDIR)
++INCL = \
++ -I. \
++ -I$(TCLINCDIR) \
++ -I$(TCLLIBINCDIR)/generic \
++ -I$(TCLLIBINCDIR)/unix \
++ -I$(TKLIBINCDIR)/generic \
++ -I$(TKLIBINCDIR)/unix
+
+ ifdef WITH_STUBS
+ TCLLIBS = $(TCLSTUBLIBS)
+diff -ru tcl3d/config_Linux64 tcl3d-m/config_Linux64
+--- tcl3d/config_Linux64 2010-12-30 16:06:48.000000000 -0500
++++ tcl3d-m/config_Linux64 2016-10-30 13:08:33.326771912 -0400
+@@ -74,6 +74,8 @@
+ TKINCDIR = $(TKDIR)/include
+ TCLLIBDIR = $(TCLDIR)/lib64
+ TKLIBDIR = $(TKDIR)/lib64
++TCLLIBINCDIR = $(TCLLIBDIR)/tcl$(TCLVERSION)/include
++TKLIBINCDIR = $(TCLLIBDIR)/tk$(TCLVERSION)/include
+ TCLSTUBLIBS = $(TKLIBDIR)/libtkstub$(TCLVERSION)$(LIBEXT) $(TCLLIBDIR)/libtclstub$(TCLVERSION)$(LIBEXT)
+ TCLSTDLIBS = $(TKLIBDIR)/libtk$(TCLVERSION)$(SHLIBEXT) $(TCLLIBDIR)/libtcl$(TCLVERSION)$(SHLIBEXT)
+ TCLSH = tclsh$(TCLVERSION)
+@@ -84,7 +86,13 @@
+ CPDIR = csh -f cpdir
+ MKDIR = mkdir -p
+
+-INCL = -I. -I$(TCLINCDIR)
++INCL = \
++ -I. \
++ -I$(TCLINCDIR) \
++ -I$(TCLLIBINCDIR)/generic \
++ -I$(TCLLIBINCDIR)/unix \
++ -I$(TKLIBINCDIR)/generic \
++ -I$(TKLIBINCDIR)/unix
+
+ ifdef WITH_STUBS
+ TCLLIBS = $(TCLSTUBLIBS)
+diff -ru tcl3d/tcl3dOsg/Makefile tcl3d-m/tcl3dOsg/Makefile
+--- tcl3d/tcl3dOsg/Makefile 2010-09-30 16:20:28.000000000 -0400
++++ tcl3d-m/tcl3dOsg/Makefile 2016-10-30 13:12:53.367593401 -0400
+@@ -308,12 +308,13 @@
+ OPT += /Od
+ endif
+ CFLAGS = $(OPT) $(PPDEFS) -I$(GL_INCDIR) -Iinclude $(INCL)
++CXXFLAGS = -fpermissive
+
+ .SUFFIXES: # Delete the default suffixes.
+ .SUFFIXES: .cpp $(OBJEXT) .h # Install our own suffixes.
+
+ .cpp$(OBJEXT):
+- $(CXX) $(CFLAGS) $<
++ $(CXX) $(CFLAGS) $(CXXFLAGS) $<
+
+ all: osg osganimation osgdb osgfx osgga osgmanipulator osgopenthreads \
+ osgparticle osgsim osgshadow osgterrain osgtext osgutil osgviewer \
diff --git a/dev-tcltk/tcl3d/metadata.xml b/dev-tcltk/tcl3d/metadata.xml
index 5ae050b..851c8cb 100644
--- a/dev-tcltk/tcl3d/metadata.xml
+++ b/dev-tcltk/tcl3d/metadata.xml
@@ -20,6 +20,7 @@ tcl3dSDL Wrapper for the Simple DirectMedia Library.
tcl3dFTGL Wrapper for the OpenGL Font Rendering Library.
tcl3dGl2ps Wrapper for the OpenGL To Postscript library. *
tcl3dOde Wrapper for the Open Dynamics Engine.
+tcl3dOsg Wrapper for OpenSceneGraph
tcl3dGauges Tcl3D package for displaying gauges.
</longdescription>
</pkgmetadata>
diff --git a/dev-tcltk/tcl3d/tcl3d-0.5.0.ebuild b/dev-tcltk/tcl3d/tcl3d-0.5.0.ebuild
new file mode 100644
index 00000000..fd106fc
--- /dev/null
+++ b/dev-tcltk/tcl3d/tcl3d-0.5.0.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="Tcl bindings to OpenGL and other 3D libraries"
+HOMEPAGE="http://www.tcl3d.org"
+SRC_URI="http://www.tcl3d.org/download/${P}.distrib/${PN}-src-${PV}.zip"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+DEPEND="
+ >=dev-lang/swig-1.3.38: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/libXmu
+"
+
+S="${WORKDIR}/${PN}"
+PATCHES=( "${FILESDIR}/${P}-include-tk-dir-and-permissive.patch" )
+
+src_prepare() {
+ default
+
+ local _TCL_V=( $(echo 'puts [info tclversion]' | tclsh | tr '.' ' ') )
+ local _TCL_FV="${_TCL_V[0]}.${_TCL_V[1]}"
+
+ einfo "Configuring for Tcl ${_TCL_FV}"
+ sed -i \
+ -e 's:^\(TCLMAJOR\) *=\(.*\)$:\1 = '${_TCL_V[0]}':' \
+ -e 's:^\(TCLMINOR\) *=\(.*\)$:\1 = '${_TCL_V[1]}':' \
+ config_Linux* || die
+
+ # Fix libSDL link
+ sed -i -e 's:-lSDL-1\.2:-lSDL:g' tcl3dSDL/Makefile || die
+}
+
+src_compile() {
+ append-flags -fPIC
+ use debug || append-flags -DNDEBUG
+
+ # 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.
+ emake \
+ -j1 \
+ INSTDIR="/usr" \
+ OPT="${CFLAGS}" \
+ CC="$(tc-getCC) -c" \
+ CXX="$(tc-getCXX) -c" \
+ LD="$(tc-getLD)" \
+ WRAP_FTGL=1 \
+ WRAP_SDL=1 \
+ WRAP_GL2PS=0 \
+ WRAP_ODE=1
+}
+
+src_install() {
+ emake INSTDIR="${D}/usr" DESTDIR="${D}" INSTLIB="${D}/usr/$(get_libdir)" install
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tcl3d/, dev-tcltk/tcl3d/files/
@ 2023-01-17 11:29 Alfredo Tupone
0 siblings, 0 replies; 3+ messages in thread
From: Alfredo Tupone @ 2023-01-17 11:29 UTC (permalink / raw
To: gentoo-commits
commit: d6f8deb9c030e91f540e34615cdc04199333b50e
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 17 11:28:06 2023 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Tue Jan 17 11:28:57 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6f8deb9
dev-tcltk/tcl3d: fix undeclared function
Closes: https://bugs.gentoo.org/880821
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
dev-tcltk/tcl3d/files/tcl3d-0.5.0-implicit.patch | 10 ++++++++++
dev-tcltk/tcl3d/tcl3d-0.5.0.ebuild | 7 +++++--
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/dev-tcltk/tcl3d/files/tcl3d-0.5.0-implicit.patch b/dev-tcltk/tcl3d/files/tcl3d-0.5.0-implicit.patch
new file mode 100644
index 000000000000..bdd02a0fbf50
--- /dev/null
+++ b/dev-tcltk/tcl3d/files/tcl3d-0.5.0-implicit.patch
@@ -0,0 +1,10 @@
+--- a/tcl3dOgl/swigfiles/tcl3dOgl.i 2023-01-17 12:19:29.845765609 +0100
++++ b/tcl3dOgl/swigfiles/tcl3dOgl.i 2023-01-17 12:21:51.336490329 +0100
+@@ -31,6 +31,7 @@
+
+ %{
+ #include <tk.h>
++#include "Togl/togl.h"
+ %}
+
+ %init %{
diff --git a/dev-tcltk/tcl3d/tcl3d-0.5.0.ebuild b/dev-tcltk/tcl3d/tcl3d-0.5.0.ebuild
index 7a07697e35ae..870f791b448b 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-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -29,7 +29,10 @@ DEPEND="${RDEPEND}
app-arch/unzip"
S="${WORKDIR}/${PN}"
-PATCHES=( "${FILESDIR}/${P}-include-tk-dir-and-permissive.patch" )
+PATCHES=(
+ "${FILESDIR}/${P}-include-tk-dir-and-permissive.patch"
+ "${FILESDIR}/${P}-implicit.patch"
+)
src_prepare() {
sed -i \
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tcl3d/, dev-tcltk/tcl3d/files/
@ 2025-09-07 8:07 Alfredo Tupone
0 siblings, 0 replies; 3+ messages in thread
From: Alfredo Tupone @ 2025-09-07 8:07 UTC (permalink / raw
To: gentoo-commits
commit: cffce8dea2ec09af76e9769a97e4a6efe56c7835
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 6 09:18:40 2025 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sun Sep 7 08:07:17 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cffce8de
dev-tcltk/tcl3d: drop 0.5.0-r1
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
Part-of: https://github.com/gentoo/gentoo/pull/43690
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
dev-tcltk/tcl3d/Manifest | 1 -
dev-tcltk/tcl3d/files/tcl3d-0.5.0-implicit.patch | 10 ---
...tcl3d-0.5.0-include-tk-dir-and-permissive.patch | 72 -----------------
dev-tcltk/tcl3d/metadata.xml | 8 --
dev-tcltk/tcl3d/tcl3d-0.5.0-r1.ebuild | 92 ----------------------
5 files changed, 183 deletions(-)
diff --git a/dev-tcltk/tcl3d/Manifest b/dev-tcltk/tcl3d/Manifest
index 47e3beda24e9..40addba53b40 100644
--- a/dev-tcltk/tcl3d/Manifest
+++ b/dev-tcltk/tcl3d/Manifest
@@ -1,2 +1 @@
DIST tcl3d-0.9.5.7z 1776479 BLAKE2B c6437073a36405cec8ffaece93e70996109de709c1bf8158a01e7fcc6b085e26ab361d30cbf09f0895761c220d83771beca26eff19f167c0c6c7a60b0965aa25 SHA512 deb21a48b672cc804723a4e8e8c01dee5ed706cb30011e59b532f791317a4620ab8363cf2db9aef802397439b515db54c46d2662513131d0771bc577cde17a11
-DIST tcl3d-src-0.5.0.zip 3936271 BLAKE2B 97bd3815c05254162d8af4b2029dd2ac4218ed4bfb94e19a6454f41c12953b48f616444e466dda5359433f84a9284a2e20316b6c97b0e3a20deada47f583510c SHA512 24f799d5cc0ad9daf060b6b723d1197be678c0716b2099287e004221889c56da03f7368d6cd4c47dbbbbfe936b0bf65366cd452d3d9c2335cdfbae6ff3860a29
diff --git a/dev-tcltk/tcl3d/files/tcl3d-0.5.0-implicit.patch b/dev-tcltk/tcl3d/files/tcl3d-0.5.0-implicit.patch
deleted file mode 100644
index bdd02a0fbf50..000000000000
--- a/dev-tcltk/tcl3d/files/tcl3d-0.5.0-implicit.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/tcl3dOgl/swigfiles/tcl3dOgl.i 2023-01-17 12:19:29.845765609 +0100
-+++ b/tcl3dOgl/swigfiles/tcl3dOgl.i 2023-01-17 12:21:51.336490329 +0100
-@@ -31,6 +31,7 @@
-
- %{
- #include <tk.h>
-+#include "Togl/togl.h"
- %}
-
- %init %{
diff --git a/dev-tcltk/tcl3d/files/tcl3d-0.5.0-include-tk-dir-and-permissive.patch b/dev-tcltk/tcl3d/files/tcl3d-0.5.0-include-tk-dir-and-permissive.patch
deleted file mode 100644
index 58efa18acdb2..000000000000
--- a/dev-tcltk/tcl3d/files/tcl3d-0.5.0-include-tk-dir-and-permissive.patch
+++ /dev/null
@@ -1,72 +0,0 @@
-diff -ru tcl3d/config_Linux tcl3d-m/config_Linux
---- tcl3d/config_Linux 2010-08-30 15:57:56.000000000 -0400
-+++ tcl3d-m/config_Linux 2016-10-30 13:28:34.080601812 -0400
-@@ -74,6 +74,8 @@
- TKINCDIR = $(TKDIR)/include
- TCLLIBDIR = $(TCLDIR)/lib
- TKLIBDIR = $(TKDIR)/lib
-+TCLLIBINCDIR = $(TCLLIBDIR)/tcl$(TCLVERSION)/include
-+TKLIBINCDIR = $(TCLLIBDIR)/tk$(TCLVERSION)/include
- TCLSTUBLIBS = $(TKLIBDIR)/libtkstub$(TCLVERSION)$(LIBEXT) $(TCLLIBDIR)/libtclstub$(TCLVERSION)$(LIBEXT)
- TCLSTDLIBS = $(TKLIBDIR)/libtk$(TCLVERSION)$(LIBEXT) $(TCLLIBDIR)/libtcl$(TCLVERSION)$(LIBEXT)
- TCLSH = tclsh$(TCLVERSION)
-@@ -84,7 +86,13 @@
- CPDIR = csh -f cpdir
- MKDIR = mkdir -p
-
--INCL = -I. -I$(TCLINCDIR)
-+INCL = \
-+ -I. \
-+ -I$(TCLINCDIR) \
-+ -I$(TCLLIBINCDIR)/generic \
-+ -I$(TCLLIBINCDIR)/unix \
-+ -I$(TKLIBINCDIR)/generic \
-+ -I$(TKLIBINCDIR)/unix
-
- ifdef WITH_STUBS
- TCLLIBS = $(TCLSTUBLIBS)
-diff -ru tcl3d/config_Linux64 tcl3d-m/config_Linux64
---- tcl3d/config_Linux64 2010-12-30 16:06:48.000000000 -0500
-+++ tcl3d-m/config_Linux64 2016-10-30 13:08:33.326771912 -0400
-@@ -74,6 +74,8 @@
- TKINCDIR = $(TKDIR)/include
- TCLLIBDIR = $(TCLDIR)/lib64
- TKLIBDIR = $(TKDIR)/lib64
-+TCLLIBINCDIR = $(TCLLIBDIR)/tcl$(TCLVERSION)/include
-+TKLIBINCDIR = $(TCLLIBDIR)/tk$(TCLVERSION)/include
- TCLSTUBLIBS = $(TKLIBDIR)/libtkstub$(TCLVERSION)$(LIBEXT) $(TCLLIBDIR)/libtclstub$(TCLVERSION)$(LIBEXT)
- TCLSTDLIBS = $(TKLIBDIR)/libtk$(TCLVERSION)$(SHLIBEXT) $(TCLLIBDIR)/libtcl$(TCLVERSION)$(SHLIBEXT)
- TCLSH = tclsh$(TCLVERSION)
-@@ -84,7 +86,13 @@
- CPDIR = csh -f cpdir
- MKDIR = mkdir -p
-
--INCL = -I. -I$(TCLINCDIR)
-+INCL = \
-+ -I. \
-+ -I$(TCLINCDIR) \
-+ -I$(TCLLIBINCDIR)/generic \
-+ -I$(TCLLIBINCDIR)/unix \
-+ -I$(TKLIBINCDIR)/generic \
-+ -I$(TKLIBINCDIR)/unix
-
- ifdef WITH_STUBS
- TCLLIBS = $(TCLSTUBLIBS)
-diff -ru tcl3d/tcl3dOsg/Makefile tcl3d-m/tcl3dOsg/Makefile
---- tcl3d/tcl3dOsg/Makefile 2010-09-30 16:20:28.000000000 -0400
-+++ tcl3d-m/tcl3dOsg/Makefile 2016-10-30 13:12:53.367593401 -0400
-@@ -308,12 +308,13 @@
- OPT += /Od
- endif
- CFLAGS = $(OPT) $(PPDEFS) -I$(GL_INCDIR) -Iinclude $(INCL)
-+CXXFLAGS = -fpermissive
-
- .SUFFIXES: # Delete the default suffixes.
- .SUFFIXES: .cpp $(OBJEXT) .h # Install our own suffixes.
-
- .cpp$(OBJEXT):
-- $(CXX) $(CFLAGS) $<
-+ $(CXX) $(CFLAGS) $(CXXFLAGS) $<
-
- all: osg osganimation osgdb osgfx osgga osgmanipulator osgopenthreads \
- osgparticle osgsim osgshadow osgterrain osgtext osgutil osgviewer \
diff --git a/dev-tcltk/tcl3d/metadata.xml b/dev-tcltk/tcl3d/metadata.xml
index 969f63152bd5..a369053cbccc 100644
--- a/dev-tcltk/tcl3d/metadata.xml
+++ b/dev-tcltk/tcl3d/metadata.xml
@@ -5,14 +5,6 @@
<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-r1.ebuild b/dev-tcltk/tcl3d/tcl3d-0.5.0-r1.ebuild
deleted file mode 100644
index b295909cdc56..000000000000
--- a/dev-tcltk/tcl3d/tcl3d-0.5.0-r1.ebuild
+++ /dev/null
@@ -1,92 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit flag-o-matic toolchain-funcs
-
-DESCRIPTION="Tcl bindings to OpenGL and other 3D libraries"
-HOMEPAGE="http://www.tcl3d.org"
-SRC_URI="http://www.tcl3d.org/download/${P}.distrib/${PN}-src-${PV}.zip"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="debug ode osg sdl truetype"
-
-RDEPEND="dev-lang/tcl:0=
- dev-lang/tk:0=
- 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=
- app-arch/unzip"
-
-S="${WORKDIR}/${PN}"
-PATCHES=(
- "${FILESDIR}/${P}-include-tk-dir-and-permissive.patch"
- "${FILESDIR}/${P}-implicit.patch"
-)
-
-src_prepare() {
- sed -i \
- -e '/\..$(DSEP)pkgIndex.tcl/d' \
- tcl3d*/Makefile \
- || die
-
- default
-}
-
-src_configure() {
- local _TCL_V=( $(echo 'puts [info tclversion]' | tclsh | tr '.' ' ') )
- local _TCL_FV="${_TCL_V[0]}.${_TCL_V[1]}"
-
- einfo "Configuring for Tcl ${_TCL_FV}"
- sed -i \
- -e 's:^\(TCLMAJOR\) *=\(.*\)$:\1 = '${_TCL_V[0]}':' \
- -e 's:^\(TCLMINOR\) *=\(.*\)$:\1 = '${_TCL_V[1]}':' \
- -e "s:lib64:$(get_libdir):" \
- config_Linux* || die
-
- # Fix libSDL link
- sed -i -e 's:-lSDL-1\.2:-lSDL:g' tcl3dSDL/Makefile || die
-}
-
-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.
- emake \
- -j1 \
- INSTDIR="/usr" \
- OPT="${CFLAGS}" \
- CC="$(tc-getCC) -c" \
- CXX="$(tc-getCXX) -c" \
- LD="$(tc-getLD)" \
- LDOUT="${LDFLAGS} -o" \
- SHLIB_LD="$(tc-getCC) -shared" \
- SHLIB_LDXX="$(tc-getCXX) -shared" \
- ${CONFIG_PLUGIN}
-}
-
-src_install() {
- emake INSTDIR="${D}/usr" DESTDIR="${D}" INSTLIB="${D}/usr/$(get_libdir)" install
- insinto /usr/$(get_libdir)/${PN}${PV}
- doins pkgIndex.tcl
-}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-09-07 8:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-07 8:07 [gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tcl3d/, dev-tcltk/tcl3d/files/ Alfredo Tupone
-- strict thread matches above, loose matches on Subject: below --
2023-01-17 11:29 Alfredo Tupone
2016-10-31 14:25 Amy Winston
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox