forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tcl3d-0.5.0-include-tk-dir-and-permissive.patch
72 lines (65 loc) · 2.48 KB
/
tcl3d-0.5.0-include-tk-dir-and-permissive.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
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 \