summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--html/en/download_tips.html38
-rw-r--r--src/tecmake.mak104
2 files changed, 80 insertions, 62 deletions
diff --git a/html/en/download_tips.html b/html/en/download_tips.html
index 325fced..2073239 100644
--- a/html/en/download_tips.html
+++ b/html/en/download_tips.html
@@ -228,24 +228,24 @@ http://www.tecgraf.puc-rio.br/iup/en/ide_guide/eclipse.html</a>
<td bgcolor="#DDDDDD">&nbsp;Free BSD 5.4 (x86) / gcc 3.4</td>
</tr>
<tr>
- <td bgcolor="#C0C0C0" align="right"><b>Darwin811</b></td>
+ <td bgcolor="#C0C0C0" align="right"><b>MacOS104</b></td>
<td bgcolor="#C0C0C0">&nbsp;Mac OS X 10.4.11 (ppc)
- [Tiger] / Darwin Kernel 8.11 / gcc 4.0</td>
+ [Tiger] / Darwin Kernel 8 / gcc 4.0</td>
</tr>
<tr>
- <td bgcolor="#C0C0C0" align="right"><b>Darwin811x86</b></td>
+ <td bgcolor="#C0C0C0" align="right"><b>MacOS104x86</b></td>
<td bgcolor="#C0C0C0">&nbsp;Mac OS X 10.4.11 (x86)
- [Tiger] / Darwin Kernel 8.11 / gcc 4.0</td>
+ [Tiger] / Darwin Kernel 8 / gcc 4.0</td>
</tr>
<tr>
- <td bgcolor="#C0C0C0" align="right"><b>Darwin98x86</b></td>
+ <td bgcolor="#C0C0C0" align="right"><b>MacOS105x86</b></td>
<td bgcolor="#C0C0C0">&nbsp;Mac OS X 10.5.8 (x86)
- [Leopard] / Darwin Kernel 9.8 / gcc 4.0</td>
+ [Leopard] / Darwin Kernel 9 / gcc 4.0</td>
</tr>
<tr>
- <td bgcolor="#C0C0C0" align="right"><b>Darwin103</b></td>
+ <td bgcolor="#C0C0C0" align="right"><b>MacOS106</b></td>
<td bgcolor="#C0C0C0">&nbsp;Mac OS X 10.6.3 (x64)
- [Snow Leopard] / Darwin Kernel 10.3 / gcc 4.2</td>
+ [Snow Leopard] / Darwin Kernel 10 / gcc 4.2</td>
</tr>
<tr>
<td bgcolor="#DDDDDD" align="right"><b>Win32_vc6</b></td>
@@ -380,15 +380,29 @@ http://www.tecgraf.puc-rio.br/iup/en/ide_guide/eclipse.html</a>
<a href="http://www.openwatcom.org/" style="text-decoration: none">http://www.openwatcom.org/</a></td>
</tr>
<tr>
- <td bgcolor="#C0C0C0" align="right"><b>Win32_bc56</b></td>
- <td bgcolor="#C0C0C0">&nbsp;Static library built with Borland C++ BuilderX 1.0 / Borland C++ 5.6 Compiler -
+ <td bgcolor="#C0C0C0" align="right"><b>Win32_bc55</b></td>
+ <td bgcolor="#C0C0C0">&nbsp;Static library built with Borland C++ 5.5 Compiler -
<br />
- &nbsp;<a href="http://www.borland.com/products/downloads/download_cbuilderx.html" style="text-decoration: none">http://www.borland.com/products/downloads/download_cbuilderx.html</a>
- <font face="Times New Roman">¹,²</font><br>
+ &nbsp;<a href="https://downloads.embarcadero.com/free/c_builder">https://downloads.embarcadero.com/free/c_builder</a>
+ <font face="Times New Roman">¹</font>
+ </td>
+ </tr>
+ <tr>
+ <td bgcolor="#C0C0C0" align="right"><b>Win32_bc56</b></td>
+ <td bgcolor="#C0C0C0">&nbsp;Static library built with Borland C++ BuilderX
+ 1.0 / Borland C++ 5.6 Compiler <font face="Times New Roman">¹,²</font><br>
&nbsp;(the C++ BuilderX IDE can also be configured to use mingw3 or gcc3 versions.)
</td>
</tr>
<tr>
+ <td bgcolor="#C0C0C0" align="right"><b>Win32_bc6</b></td>
+ <td bgcolor="#C0C0C0">&nbsp;Static library built with Embarcadero C++ Builder
+ 2010 / Embarcadero C++ 6 Compiler -
+ <br />
+ &nbsp;<a href="https://downloads.embarcadero.com/free/c_builder">https://downloads.embarcadero.com/free/c_builder</a>
+ (trial)</td>
+ </tr>
+ <tr>
<td bgcolor="#DDDDDD" align="right"><b>Win32_bin</b></td>
<td bgcolor="#DDDDDD">&nbsp;Executables only for Windows NT/2000/XP/Vista/7 (can be
generated by any of the above compilers)</td>
diff --git a/src/tecmake.mak b/src/tecmake.mak
index 039b83b..b165af6 100644
--- a/src/tecmake.mak
+++ b/src/tecmake.mak
@@ -41,6 +41,9 @@ ifndef TEC_UNAME
TEC_SYSARCH:=ppc
endif
ifeq ($(TEC_SYSNAME), Darwin)
+ TEC_SYSNAME:=MacOS
+ TEC_SYSVERSION:=$(shell sw_vers -productVersion|cut -f1 -d.)
+ TEC_SYSMINOR:=$(shell sw_vers -productVersion|cut -f2 -d.)
TEC_SYSARCH:=$(shell uname -p)
endif
@@ -102,9 +105,9 @@ ifndef TEC_UNAME
endif
endif
- # Darwin and Intel
- ifeq ($(TEC_SYSNAME), Darwin)
- ifeq ($(TEC_SYSVERSION), 10)
+ # MacOS and Intel
+ ifeq ($(TEC_SYSNAME), MacOS)
+ ifeq ($(TEC_SYSMINOR), 6)
TEC_SYSARCH:=x64
else
ifeq ($(TEC_SYSARCH), x86)
@@ -192,7 +195,7 @@ endif
ifneq ($(findstring Linux, $(TEC_UNAME)), )
GTK_DEFAULT = Yes
endif
-ifneq ($(findstring Darwin, $(TEC_UNAME)), )
+ifneq ($(findstring MacOS, $(TEC_UNAME)), )
GTK_DEFAULT = Yes
endif
ifneq ($(findstring FreeBSD, $(TEC_UNAME)), )
@@ -398,6 +401,19 @@ MOTIFGL_LIB := GLw #include <GL/GLwMDrawA.h>
#GLUT_LIB :=
#GLUT_INC :=
+# Definitions for GTK
+ifdef GTK_BASE
+ GTK := $(GTK_BASE)
+else
+ ifneq ($(findstring MacOS, $(TEC_UNAME)), )
+ # Option 1 - Fink GTK port
+ GTK = /sw
+ # Option 3 - GTK-OSX Framework
+ # GTK := /Users/cpts/gtk/inst
+ else
+ GTK = /usr
+ endif
+endif
ifneq ($(findstring Linux, $(TEC_UNAME)), )
ifdef BUILD_64
@@ -479,7 +495,7 @@ ifneq ($(findstring SunOS, $(TEC_UNAME)), )
endif
endif
-ifneq ($(findstring Darwin, $(TEC_UNAME)), )
+ifneq ($(findstring MacOS, $(TEC_UNAME)), )
X11_LIBS := Xmu Xp Xt Xext X11
X11_LIB := /usr/X11R6/lib
X11_INC := /usr/X11R6/include
@@ -499,7 +515,6 @@ ifneq ($(findstring FreeBSD, $(TEC_UNAME)), )
X11_INC := /usr/X11R6/include
endif
-
#---------------------------------#
# Allows an extra configuration file.
ifdef EXTRA_CONFIG
@@ -727,57 +742,49 @@ ifdef USE_IUP
endif
ifdef USE_CD
+ CDSUFX :=
override USE_X11 = Yes
+ ifdef USE_GDK
+ ifndef GTK_DEFAULT
+ CDSUFX := gdk
+ endif
+ else
+ ifdef GTK_DEFAULT
+ CDSUFX := x11
+ endif
+ endif
ifdef USE_STATIC
ifdef USE_XRENDER
SLIB += $(CD)/lib/$(TEC_UNAME_LIB_DIR)/libcdcontextplus.a
+ LIBS += Xrender Xft
endif
ifdef USE_CAIRO
# To use Cairo with X11 base driver (NOT for GDK)
+ # Can NOT be used together with XRender
SLIB += $(CD)/lib/$(TEC_UNAME_LIB_DIR)/libcdcairo.a
+ LIBS += pangocairo-1.0 cairo
endif
- ifdef USE_GDK
- SLIB += $(CD)/lib/$(TEC_UNAME_LIB_DIR)/libcdgdk.a
- else
- SLIB += $(CD)/lib/$(TEC_UNAME_LIB_DIR)/libcd.a
- endif
- ifdef USE_XRENDER
- LIBS += Xrender Xft
- else
- ifdef USE_CAIRO
- # To use Cairo with X11 base driver (NOT for GDK)
- LIBS += pangocairo-1.0 cairo
- endif
- ifndef USE_GTK
- # Freetype is already included in GTK
- SLIB += $(CD)/lib/$(TEC_UNAME_LIB_DIR)/libfreetype.a
- endif
+ SLIB += $(CD)/lib/$(TEC_UNAME_LIB_DIR)/libcd$(CDSUFX).a
+ ifndef USE_GTK
+ # Freetype is already included in GTK
+ SLIB += $(CD)/lib/$(TEC_UNAME_LIB_DIR)/libfreetype.a
endif
else
ifdef USE_XRENDER
LIBS += cdcontextplus
+ LIBS += Xrender Xft
endif
ifdef USE_CAIRO
# To use Cairo with X11 base driver (NOT for GDK)
+ # Can NOT be used together with XRender
LIBS += cdcairo
+ LIBS += pangocairo-1.0 cairo
endif
- ifdef USE_GDK
- LIBS += cdgdk
- else
- LIBS += cd
- endif
+ LIBS += cd$(CDSUFX)
LDIR += $(CD)/lib/$(TEC_UNAME_LIB_DIR)
- ifdef USE_XRENDER
- LIBS += Xrender Xft
- else
- ifdef USE_CAIRO
- # To use Cairo with X11 base driver (NOT for GDK)
- LIBS += pangocairo-1.0 cairo
- endif
- ifndef USE_GTK
- # Freetype is already included in GTK
- LIBS += freetype
- endif
+ ifndef USE_GTK
+ # Freetype is already included in GTK
+ LIBS += freetype
endif
endif
INCLUDES += $(CD)/include
@@ -825,10 +832,9 @@ ifdef USE_MOTIF
endif
ifdef USE_GTK
- ifneq ($(findstring Darwin, $(TEC_UNAME)), )
+ ifneq ($(findstring MacOS, $(TEC_UNAME)), )
# Option 1 - Fink GTK port
- GTK_BASE ?= /sw
- LDIR += $(GTK_BASE)/lib
+ LDIR += $(GTK)/lib
override USE_X11 = Yes
LIBS += gtk-x11-2.0 gdk-x11-2.0 pangox-1.0
# Option 2 - Imendio Framework
@@ -837,8 +843,7 @@ ifdef USE_GTK
# STDINCS += /Library/Frameworks/Cairo.framework/Headers
# LFLAGS += -framework Gtk
# Option 3 - GTK-OSX Framework
-# GTK_BASE := /Users/cpts/gtk/inst
-# LDIR += $(GTK_BASE)/lib
+# LDIR += $(GTK)/lib
# LFLAGS += -framework Carbon
# LIBS += gtk-quartz-2.0 gdk-quartz-2.0 pangoft2-1.0
@@ -847,25 +852,24 @@ ifdef USE_GTK
# if not the default, then include it for linker
# must be before the default
ifdef GTK_BASE
- LDIR += $(GTK_BASE)/lib
+ LDIR += $(GTK)/lib
endif
- GTK_BASE ?= /usr
override USE_X11 = Yes
LIBS += gtk-x11-2.0 gdk-x11-2.0 pangox-1.0
endif
LIBS += gdk_pixbuf-2.0 pango-1.0 gobject-2.0 gmodule-2.0 glib-2.0
- STDINCS += $(GTK_BASE)/include/atk-1.0 $(GTK_BASE)/include/gtk-2.0 $(GTK_BASE)/include/cairo $(GTK_BASE)/include/pango-1.0 $(GTK_BASE)/include/glib-2.0
+ STDINCS += $(GTK)/include/atk-1.0 $(GTK)/include/gtk-2.0 $(GTK)/include/cairo $(GTK)/include/pango-1.0 $(GTK)/include/glib-2.0
ifeq ($(TEC_SYSARCH), x64)
- STDINCS += $(GTK_BASE)/lib64/glib-2.0/include $(GTK_BASE)/lib64/gtk-2.0/include
+ STDINCS += $(GTK)/lib64/glib-2.0/include $(GTK)/lib64/gtk-2.0/include
# Add also these to avoid errors in systems that lib64 does not exists
- STDINCS += $(GTK_BASE)/lib/glib-2.0/include $(GTK_BASE)/lib/gtk-2.0/include
+ STDINCS += $(GTK)/lib/glib-2.0/include $(GTK)/lib/gtk-2.0/include
else
ifeq ($(TEC_SYSARCH), ia64)
- STDINCS += $(GTK_BASE)/lib64/glib-2.0/include $(GTK_BASE)/lib64/gtk-2.0/include
+ STDINCS += $(GTK)/lib64/glib-2.0/include $(GTK)/lib64/gtk-2.0/include
else
- STDINCS += $(GTK_BASE)/lib/glib-2.0/include $(GTK_BASE)/lib/gtk-2.0/include
+ STDINCS += $(GTK)/lib/glib-2.0/include $(GTK)/lib/gtk-2.0/include
endif
endif
ifneq ($(findstring FreeBSD, $(TEC_UNAME)), )