freebsd-ports/java/jdk14/files/patch-common::Defs-bsd.gmk
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

41 lines
1.5 KiB
Text

$FreeBSD$
--- ../../j2se/make/common/Defs-bsd.gmk.orig Sun Jun 3 10:46:29 2007
+++ ../../j2se/make/common/Defs-bsd.gmk Sun Jun 3 11:04:08 2007
@@ -40,15 +40,15 @@
BASENAME = $(USRBIN_PATH)basename
CAT = $(UNIXCOMMAND_PATH)cat
ifneq ($(TRUE_PLATFORM), OpenBSD)
-CC = $(COMPILER_PATH)gcc
-CPP = $(COMPILER_PATH)gcc -E
+CC ?= $(COMPILER_PATH)gcc
+CPP ?= $(COMPILER_PATH)gcc -E
ifeq ($(STATIC_CXX),true)
# g++ always dynamically links libstdc++, even we use "-Wl,-Bstatic -lstdc++"
# We need to use gcc to statically link the C++ runtime. gcc and g++ use
# the same subprocess to compile C++ files, so it is OK to build using gcc.
-CXX = $(COMPILER_PATH)gcc
+CXX ?= $(COMPILER_PATH)gcc
else
-CXX = $(COMPILER_PATH)g++
+CXX ?= $(COMPILER_PATH)g++
endif
else
# Allow ports/pkgsrc infrastructure to override CC, CPP and CXX.
@@ -192,7 +192,7 @@
ifeq ($(TRUE_PLATFORM), NetBSD)
DEVTOOLS_PATH = /usr/pkg/bin/
else
-DEVTOOLS_PATH = /usr/local/bin/
+DEVTOOLS_PATH = ${LOCALBASE}/bin/
endif
# Allow the user to override the default value...
ifdef ALT_DEVTOOLS_PATH
@@ -443,7 +443,7 @@
override LIBTHREAD =
override MOOT_PRIORITIES = true
override NO_INTERRUPTIBLE_IO = false
-override OPENWIN_HOME = /usr/X11R6
+override OPENWIN_HOME = $(LOCALBASE)
override OPENWIN_LIB = $(OPENWIN_HOME)/lib
override OTHER_M4FLAGS = -DGNU_ASSEMBLER
override SUN_CMM_SUBDIR =