summaryrefslogtreecommitdiff
path: root/dev-tcltk/tcl3d
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-09-28 01:25:58 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-09-28 01:25:58 +0100
commit6405cba4bf18141460bc9fcb8f5580532d4b46f8 (patch)
tree377baa366741990f54b18ea82f5566c48295f4e0 /dev-tcltk/tcl3d
parentabc3bfc07d931f667a0f50cf607f1c8a49af879f (diff)
gentoo auto-resync : 28:09:2024 - 01:25:57
Diffstat (limited to 'dev-tcltk/tcl3d')
-rw-r--r--dev-tcltk/tcl3d/Manifest2
-rw-r--r--dev-tcltk/tcl3d/tcl3d-0.9.5.ebuild57
2 files changed, 59 insertions, 0 deletions
diff --git a/dev-tcltk/tcl3d/Manifest b/dev-tcltk/tcl3d/Manifest
index 587a699a65cf..a5bc9f4198fe 100644
--- a/dev-tcltk/tcl3d/Manifest
+++ b/dev-tcltk/tcl3d/Manifest
@@ -1,5 +1,7 @@
AUX tcl3d-0.5.0-implicit.patch 225 BLAKE2B 1a2a484e3d390e92f9889772e926b0529fa5adaf00e817c3d20a02cba33f00ea3f5f6f4a5c8a8ebe958a799fc1e78ad5d31d831f82ecaa31420c4dfec29abe91 SHA512 fc5fabaee860b0e89af47c6070f0394fe247a86f484292d657b96d3d762b451036b56983d6352719e141d4e0c17bdcec97ddee898adc55de36e712789736e581
AUX tcl3d-0.5.0-include-tk-dir-and-permissive.patch 2544 BLAKE2B c982924cffd60db538428d225a23023bcedbd3a9bf5e1087815d3a8fbe49d4f2be3f4dd3aadee3274a85f11a9c2d0e442bd739a0da3a415c15ac32eb8a116abe SHA512 ff5bb6df033cfa1ce9d01305cf3346653cc9ff6c144e19609b8cacc659993f0df0a8e0db741e0733e7c3f44aff6ed7f02596e382bd2b813980a8fbbfbbb376e6
+DIST tcl3d-0.9.5.7z 1776479 BLAKE2B c6437073a36405cec8ffaece93e70996109de709c1bf8158a01e7fcc6b085e26ab361d30cbf09f0895761c220d83771beca26eff19f167c0c6c7a60b0965aa25 SHA512 deb21a48b672cc804723a4e8e8c01dee5ed706cb30011e59b532f791317a4620ab8363cf2db9aef802397439b515db54c46d2662513131d0771bc577cde17a11
DIST tcl3d-src-0.5.0.zip 3936271 BLAKE2B 97bd3815c05254162d8af4b2029dd2ac4218ed4bfb94e19a6454f41c12953b48f616444e466dda5359433f84a9284a2e20316b6c97b0e3a20deada47f583510c SHA512 24f799d5cc0ad9daf060b6b723d1197be678c0716b2099287e004221889c56da03f7368d6cd4c47dbbbbfe936b0bf65366cd452d3d9c2335cdfbae6ff3860a29
EBUILD tcl3d-0.5.0-r1.ebuild 2218 BLAKE2B f54db5a1ba21bf40a377307c323bfd0aa23b121466939434b24589cddfcaf12d9f2a9b42c4549f523cb4692b5fcb1de165ca189791b6cb542a171a55c75149b8 SHA512 0a0168633431580a4ea75ed3a2273a55ee6b79c9a93db12b55e3e722dc321d284f3453be9f3decc577d75f71cdc13f1fd59a915014dcbfb33f823421e472e58c
+EBUILD tcl3d-0.9.5.ebuild 1214 BLAKE2B cbbd5b924eca9e6077f4813cd805cdf36fd11ec856b0b5d2504d95a917dd48c74cf92e7cf4c4bff8cac54423721ecd4e4c1df246524b4b4488fc53d8780986e8 SHA512 05a922c01942947b7253af4b718a7d508699e2fdabe5b0c4f0cee639d6216559e03ac175cf078d8e86fe30a8b62391fe34c633687001aa48e135e4abb47f7dac
MISC metadata.xml 1312 BLAKE2B 4201d0bb5484fa80df0439ea9e4b8a91823c7c47690bf10d525331edeb43f8799c33eb71d2e1305d84e1b916fa10ea3906104bd13f6c169f3c02279555491e9a SHA512 8269b94e36e04835c1deb69ece8ba04801a8e9daf08fd8f18fbc2a42687b9ceedf8f8fa5e525f10699a32c98de07a6944c70a3bbc9d5f673f8868bf5b090e3e2
diff --git a/dev-tcltk/tcl3d/tcl3d-0.9.5.ebuild b/dev-tcltk/tcl3d/tcl3d-0.9.5.ebuild
new file mode 100644
index 000000000000..1f2e0538bf28
--- /dev/null
+++ b/dev-tcltk/tcl3d/tcl3d-0.9.5.ebuild
@@ -0,0 +1,57 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic cmake unpacker
+
+DESCRIPTION="Tcl bindings to OpenGL and other 3D libraries"
+HOMEPAGE="http://www.tcl3d.org"
+SRC_URI="https://www.tcl3d.org/download/distributions/${P}.7z"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="sdl truetype"
+
+RDEPEND="dev-lang/tcl:0=
+ dev-lang/tk:0=
+ x11-libs/libX11
+ virtual/opengl
+ virtual/glu
+ truetype? ( media-libs/ftgl )
+ sdl? ( media-libs/libsdl )"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ dev-lang/swig
+ app-arch/p7zip
+"
+
+src_prepare() {
+ sed -i \
+ -e "s|FTGLGlyph|FTGlyph|" \
+ tcl3dFTGL/swigfiles/ftgl.i \
+ || die
+ cmake_src_prepare
+}
+
+src_configure() {
+ local _TCL_V=( $(echo 'puts [info tclversion]' | tclsh | tr '.' ' ') )
+ local _TCL_FV="${_TCL_V[0]}.${_TCL_V[1]}"
+
+ local tkPath=/usr/$(get_libdir)/tk${_TCL_FV}/include
+
+ append-cppflags -I${tkPath}/generic -I${tkPath}/unix \
+ $(pkg-config freetype2 --cflags) \
+ $(pkg-config sdl --cflags)
+
+ local mycmakeargs=(
+ -Wno-dev
+ -DTCL3D_BUILD_OGL=Yes
+ -DTCL3D_BUILD_GAUGES=Yes
+ -DTCL3D_BUILD_GL2PS=Yes
+ -DTCL3D_BUILD_FTGL=$(usex truetype)
+ -DTCL3D_BUILD_SDL=$(usex sdl)
+ )
+ cmake_src_configure
+}