/[gentoo-x86]/dev-tcltk/tcl3d/tcl3d-0.4.0.ebuild
Gentoo

Contents of /dev-tcltk/tcl3d/tcl3d-0.4.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Mar 20 10:49:28 2015 UTC (4 years, 10 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +18 -19 lines
Fix tcl/tk slotting; Bump to EAPI=5

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tcl3d/tcl3d-0.4.0.ebuild,v 1.1 2009/05/10 13:17:04 mescalinum Exp $
4
5 EAPI=5
6
7 inherit flag-o-matic multilib toolchain-funcs
8
9 DESCRIPTION="Tcl bindings to OpenGL and other 3D libraries"
10 HOMEPAGE="http://www.tcl3d.org"
11 SRC_URI="http://www.tcl3d.org/download/${P}.distrib/${PN}-src-${PV}.zip"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="~amd64"
16 IUSE="debug"
17
18 RDEPEND="
19 dev-games/ode
20 dev-lang/tk:0=
21 dev-lang/tcl:0=
22 media-libs/libsdl
23 media-libs/ftgl
24 virtual/opengl
25 "
26 DEPEND="${RDEPEND}
27 >=dev-lang/swig-1.3.19"
28
29 S="${WORKDIR}/${PN}"
30
31 src_prepare() {
32 TCL_VERSION=( $(echo 'puts [info tclversion]' | tclsh | tr '.' ' ') )
33 einfo "Configuring for Tcl ${TCL_VERSION[0]}.${TCL_VERSION[1]}"
34 sed -i \
35 -e 's:^\(TCLMAJOR\) *=\(.*\)$:\1 = '${TCL_VERSION[0]}':' \
36 -e 's:^\(TCLMINOR\) *=\(.*\)$:\1 = '${TCL_VERSION[1]}':' \
37 config_Linux* || die
38
39 # fix libSDL link
40 sed -i \
41 -e 's:-lSDL-1\.2:-lSDL:g' \
42 tcl3dSDL/Makefile || die
43 }
44
45 src_compile() {
46 append-flags -mieee-fp -ffloat-store -fPIC
47 use debug || append-flags -DNDEBUG
48
49 emake \
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
53 }
54
55 src_install() {
56 emake INSTDIR="${D}/usr" DESTDIR="${D}" INSTLIB="${D}/usr$(get_libdir)" install
57 }

  ViewVC Help
Powered by ViewVC 1.1.20