1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/graphics/inventor/files/patch-ivcommondefs
Martin Wilke 3e4ed01146 - Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+

Thanks to all Helpers:
	Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
	ehaupt, nox, itetcu, flz, pav

PR:		116263
Tested on:	pointyhat
Approved by:	portmgr (pav)
2008-04-19 17:56:05 +00:00

83 lines
1.5 KiB
Plaintext

--- make/ivcommondefs.orig Sat Jul 12 07:40:54 2003
+++ make/ivcommondefs Sun Aug 3 15:10:28 2003
@@ -49,9 +49,9 @@
ifeq ($(usingLinux), 1)
-CC = /usr/bin/gcc
-C++ = /usr/bin/g++
-LD = /usr/bin/g++
+CC = %%CC%%
+C++ = %%CXX%%
+LD = %%CXX%%
INSTALL = /usr/bin/install
@@ -74,7 +74,7 @@
LCXXOPTS += $(LINUXOPTS)
LCOPTS += $(LINUXOPTS)
-X11DIR = /usr/X11R6
+X11DIR = ${LOCALBASE}
X11INCDIR = $(X11DIR)/include
X11LIBDIR = $(X11DIR)/lib
@@ -86,6 +86,10 @@
endif
+ifeq ($(usingFreeBSD), 1)
+LCINCS += -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2
+LCXXINCS += -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2
+endif
#
@@ -131,9 +135,9 @@
# Determine optimization from LIBTYPE.
#
-OPTIMIZER = -O -DNDEBUG
+OPTIMIZER = %%CXXFLAGS%% -DNDEBUG
ifneq (, $(findstring debug, $(LIBTYPE)))
-OPTIMIZER = -g
+OPTIMIZER = %%CXXFLAGS%% -g -DDEBUG
endif
@@ -158,6 +162,10 @@
# Font library directories.
#
+ifeq ($(usingFreeBSD), 1)
+FREETYPE=1
+endif
+
FLDIR = $(IVDEPTH)/libFL/src
FLLIB = -lFL
ifdef FREETYPE
@@ -183,7 +191,12 @@
# Inventor install directories.
#
+ifeq ($(usingFreeBSD), 1)
+IVPREFIX = ${LOCALBASE}
+else
IVPREFIX = /usr
+endif
+
LCXXOPTS += -DIVPREFIX=\"$(IVPREFIX)\"
LCOPTS += -DIVPREFIX=\"$(IVPREFIX)\"
@@ -213,5 +226,10 @@
else
LLDDSOOPTS += -L$(IVLIBDIR)
LLDOPTS += -L$(IVLIBDIR)
+endif
+
+ifeq ($(usingFreeBSD), 1)
+LLDOPTS += -L$(IVDEPTH)/lib -L$(IVDEPTH)/libSoXt
+LLDDSOOPTS += -L$(IVDEPTH)/lib -L$(IVDEPTH)/libSoXt -L$(LOCALBASE)/lib
CXXDSOOPTS += -L$(IVLIBDIR)
endif