1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit flag-o-matic multilib toolchain-funcs
8 DESCRIPTION="Tcl bindings to OpenGL and other 3D libraries"
9 HOMEPAGE="http://www.tcl3d.org"
10 SRC_URI="http://www.tcl3d.org/download/${P}.distrib/${PN}-src-${PV}.zip"
27 >=dev-lang/swig-1.3.19"
32 TCL_VERSION=( $(echo 'puts [info tclversion]' | tclsh | tr '.' ' ') )
33 einfo "Configuring for Tcl ${TCL_VERSION[0]}.${TCL_VERSION[1]}"
35 -e 's:^\(TCLMAJOR\) *=\(.*\)$:\1 = '${TCL_VERSION[0]}':' \
36 -e 's:^\(TCLMINOR\) *=\(.*\)$:\1 = '${TCL_VERSION[1]}':' \
41 -e 's:-lSDL-1\.2:-lSDL:g' \
42 tcl3dSDL/Makefile || die
46 append-flags -mieee-fp -ffloat-store -fPIC
47 use debug || append-flags -DNDEBUG
50 INSTDIR="/usr" OPT="${CFLAGS}" CC="$(tc-getCC) -c" \
51 CXX="$(tc-getCXX) -c" LD="$(tc-getLD)" \
52 WRAP_FTGL=1 WRAP_SDL=1 WRAP_GL2PS=0 WRAP_ODE=1
56 emake INSTDIR="${D}/usr" DESTDIR="${D}" INSTLIB="${D}/usr/$(get_libdir)" install