changeset 771:52c015181055

Summary: Avoid PKG_PATH build var Reviewed-by: glewis
author kurt
date Sat, 10 Jan 2009 22:13:03 -0500
parents 1536df243bf6
children 8663c12b4c56
files make/common/Defs.gmk make/common/shared/Defs-bsd.gmk make/java/instrument/Makefile make/java/jli/Makefile make/java/npt/Makefile make/sun/awt/mawt.gmk make/sun/splashscreen/Makefile make/sun/xawt/Makefile src/solaris/bin/java_md.c src/solaris/native/sun/awt/fontpath.c
diffstat 10 files changed, 43 insertions(+), 43 deletions(-) [+]
line wrap: on
line diff
--- a/make/common/Defs.gmk	Fri Jan 09 09:01:03 2009 -0500
+++ b/make/common/Defs.gmk	Sat Jan 10 22:13:03 2009 -0500
@@ -172,6 +172,24 @@
   endif
 endif # OPENJDK
 
+ifneq ($(PLATFORM), windows)
+  ifdef ALT_X11_PATH
+    X11_PATH = $(ALT_X11_PATH)
+  else
+    X11_PATH = /usr/X11R6
+  endif 
+
+  ifdef ALT_PACKAGE_PATH
+    PACKAGE_PATH = $(ALT_PACKAGE_PATH)
+  else
+    ifeq ($(PLATFORM), linux)
+      PACKAGE_PATH = /usr
+    else
+      PACKAGE_PATH = /usr/local
+    endif
+  endif
+endif
+
 #
 # Get platform definitions
 #
@@ -234,24 +252,6 @@
   endif
 endif
 
-ifneq ($(PLATFORM), windows)
-  ifdef ALT_X11_PATH
-    X11_PATH = $(ALT_X11_PATH)
-  else
-    X11_PATH = /usr/X11R6
-  endif 
-
-  ifdef ALT_PKG_PATH
-    PKG_PATH = $(ALT_PKG_PATH)
-  else
-    ifeq ($(PLATFORM), linux)
-      PKG_PATH = /usr
-    else
-      PKG_PATH = /usr/local
-    endif
-  endif
-endif
-
 #
 # Localizations for the different parts of the product beyond English
 #
--- a/make/common/shared/Defs-bsd.gmk	Fri Jan 09 09:01:03 2009 -0500
+++ b/make/common/shared/Defs-bsd.gmk	Sat Jan 10 22:13:03 2009 -0500
@@ -54,7 +54,7 @@
 endef
 
 # Location on system where jdk installs might be
-USRJDKINSTANCES_PATH = $(PKG_PATH)
+USRJDKINSTANCES_PATH = $(PACKAGE_PATH)
 
 # UNIXCOMMAND_PATH: path to where the most common Unix commands are.
 #  NOTE: Must end with / so that it could be empty, allowing PATH usage.
@@ -121,7 +121,7 @@
 BUILD_HEADLESS = true
 LIBM=-lm
 
-_CUPS_HEADERS_PATH=$(PKG_PATH)/include
+_CUPS_HEADERS_PATH=$(PACKAGE_PATH)/include
 
 # Import JDK images allow for partial builds, components not built are
 #    imported (or copied from) these import areas when needed.
--- a/make/java/instrument/Makefile	Fri Jan 09 09:01:03 2009 -0500
+++ b/make/java/instrument/Makefile	Sat Jan 10 22:13:03 2009 -0500
@@ -112,7 +112,7 @@
     LDFLAGS += -Wl,--no-whole-archive
   endif
 
-  ICONV_PATH = $(PKG_PATH)
+  ICONV_PATH = $(PACKAGE_PATH)
 # Use CPPFLAGS instead of OTHER_INCLUDES to force this last
   CPPFLAGS += -I$(ICONV_PATH)/include
   OTHER_LDLIBS += -L$(ICONV_PATH)/lib -liconv
--- a/make/java/jli/Makefile	Fri Jan 09 09:01:03 2009 -0500
+++ b/make/java/jli/Makefile	Sat Jan 10 22:13:03 2009 -0500
@@ -97,7 +97,7 @@
   LIBARCH_DEFINES += -DLIBARCH64NAME='"$(LIBARCH64)"'
 endif
 
-OTHER_CPPFLAGS += $(LIBARCH_DEFINES) -DPKG_PATH=\"$(PKG_PATH)\"
+OTHER_CPPFLAGS += $(LIBARCH_DEFINES) -DPACKAGE_PATH=\"$(PACKAGE_PATH)\"
 
 
 ifneq ($(PLATFORM), windows)	# UNIX systems
--- a/make/java/npt/Makefile	Fri Jan 09 09:01:03 2009 -0500
+++ b/make/java/npt/Makefile	Sat Jan 10 22:13:03 2009 -0500
@@ -67,7 +67,7 @@
 
 # Add location of iconv headers
 ifeq ($(PLATFORM), bsd)
-  ICONV_PATH = $(PKG_PATH)
+  ICONV_PATH = $(PACKAGE_PATH)
   CPPFLAGS += -I$(ICONV_PATH)/include
   OTHER_LDLIBS += -L$(ICONV_PATH)/lib -liconv
 endif
--- a/make/sun/awt/mawt.gmk	Fri Jan 09 09:01:03 2009 -0500
+++ b/make/sun/awt/mawt.gmk	Sat Jan 10 22:13:03 2009 -0500
@@ -250,7 +250,7 @@
 endif
 
 ifneq ($(PLATFORM), windows)
-  CPPFLAGS += -DX11_PATH=\"$(X11_PATH)\" -DPKG_PATH=\"$(PKG_PATH)\"
+  CPPFLAGS += -DX11_PATH=\"$(X11_PATH)\" -DPACKAGE_PATH=\"$(PACKAGE_PATH)\"
 endif
 
 LDFLAGS += -L$(LIBDIR)/$(LIBARCH)/$(TSOBJDIR) \
--- a/make/sun/splashscreen/Makefile	Fri Jan 09 09:01:03 2009 -0500
+++ b/make/sun/splashscreen/Makefile	Sat Jan 10 22:13:03 2009 -0500
@@ -72,7 +72,7 @@
   CFLAGS += -DWITH_X11
   ifeq ($(PLATFORM), bsd)
     CFLAGS += -DPNG_NO_MMX_CODE
-    ICONV_PATH = $(PKG_PATH)
+    ICONV_PATH = $(PACKAGE_PATH)
     CPPFLAGS += -I$(OPENWIN_HOME)/include \
                 -I$(OPENWIN_HOME)/include/X11/extensions \
                 -I$(ICONV_PATH)/include
--- a/make/sun/xawt/Makefile	Fri Jan 09 09:01:03 2009 -0500
+++ b/make/sun/xawt/Makefile	Sat Jan 10 22:13:03 2009 -0500
@@ -148,7 +148,7 @@
 endif
 
 ifneq ($(PLATFORM), windows)
-  CPPFLAGS += -DX11_PATH=\"$(X11_PATH)\" -DPKG_PATH=\"$(PKG_PATH)\"
+  CPPFLAGS += -DX11_PATH=\"$(X11_PATH)\" -DPACKAGE_PATH=\"$(PACKAGE_PATH)\"
 endif
 
 ifeq ($(MILESTONE), internal)
--- a/src/solaris/bin/java_md.c	Fri Jan 09 09:01:03 2009 -0500
+++ b/src/solaris/bin/java_md.c	Sat Jan 10 22:13:03 2009 -0500
@@ -97,19 +97,19 @@
  *      entries, but actual strings can be more efficient (with many compilers).
  */
 #if defined(__FreeBSD__)
-static const char *system_dir	= PKG_PATH "/openjdk7";
+static const char *system_dir	= PACKAGE_PATH "/openjdk7";
 static const char *user_dir	= "/java";
 #elif defined(__NetBSD__)
-static const char *system_dir	= PKG_PATH "/openjdk7";
+static const char *system_dir	= PACKAGE_PATH "/openjdk7";
 static const char *user_dir	= "/java";
 #elif defined(__OpenBSD__)
-static const char *system_dir	= PKG_PATH "/openjdk7";
+static const char *system_dir	= PACKAGE_PATH "/openjdk7";
 static const char *user_dir	= "/java";
 #elif defined(__APPLE__)
-static const char *system_dir	= PKG_PATH "/openjdk7";
+static const char *system_dir	= PACKAGE_PATH "/openjdk7";
 static const char *user_dir	= "/java";
 #elif defined(__linux__)
-static const char *system_dir   = PKG_PATH "/java";
+static const char *system_dir   = PACKAGE_PATH "/java";
 static const char *user_dir     = "/java";
 #else /* Solaris */
 static const char *system_dir   = "/usr/jdk";
--- a/src/solaris/native/sun/awt/fontpath.c	Fri Jan 09 09:01:03 2009 -0500
+++ b/src/solaris/native/sun/awt/fontpath.c	Sat Jan 10 22:13:03 2009 -0500
@@ -134,13 +134,13 @@
     X11_PATH "/lib/X11/fonts/tt",
     X11_PATH "/lib/X11/fonts/TTF",
     X11_PATH "/lib/X11/fonts/OTF",
-    PKG_PATH "/share/fonts/TrueType",
-    PKG_PATH "/share/fonts/truetype",
-    PKG_PATH "/share/fonts/tt",
-    PKG_PATH "/share/fonts/TTF",
-    PKG_PATH "/share/fonts/OTF",
+    PACKAGE_PATH "/share/fonts/TrueType",
+    PACKAGE_PATH "/share/fonts/truetype",
+    PACKAGE_PATH "/share/fonts/tt",
+    PACKAGE_PATH "/share/fonts/TTF",
+    PACKAGE_PATH "/share/fonts/OTF",
     X11_PATH "/lib/X11/fonts/Type1",
-    PKG_PATH "/share/fonts/Type1",
+    PACKAGE_PATH "/share/fonts/Type1",
     NULL, /* terminates the list */
 };
 #else /* __linux */
@@ -153,14 +153,14 @@
     X11_PATH "/lib/X11/fonts/tt",
     X11_PATH "/lib/X11/fonts/TTF",
     X11_PATH "/lib/X11/fonts/OTF",       /* RH 9.0 (but empty!) */
-    PKG_PATH "/share/fonts/ja/TrueType",       /* RH 7.2+ */
-    PKG_PATH "/share/fonts/truetype",
-    PKG_PATH "/share/fonts/ko/TrueType",       /* RH 9.0 */
-    PKG_PATH "/share/fonts/zh_CN/TrueType",    /* RH 9.0 */
-    PKG_PATH "/share/fonts/zh_TW/TrueType",    /* RH 9.0 */
+    PACKAGE_PATH "/share/fonts/ja/TrueType",       /* RH 7.2+ */
+    PACKAGE_PATH "/share/fonts/truetype",
+    PACKAGE_PATH "/share/fonts/ko/TrueType",       /* RH 9.0 */
+    PACKAGE_PATH "/share/fonts/zh_CN/TrueType",    /* RH 9.0 */
+    PACKAGE_PATH "/share/fonts/zh_TW/TrueType",    /* RH 9.0 */
     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType", /* Debian */
     X11_PATH "/lib/X11/fonts/Type1",
-    PKG_PATH "/share/fonts/default/Type1",     /* RH 9.0 */
+    PACKAGE_PATH "/share/fonts/default/Type1",     /* RH 9.0 */
     NULL, /* terminates the list */
 };
 #endif