pkgsrc/lang/openjdk7/patches/patch-ah
jperkin 9d0617357b Add SunOS 64-bit support. This patch disables the default multiarch build,
creating a useable 64-bit-only package, but still leaves it possible to
re-enable it if necessary by removing the 'NOMULTIARCH' sections.
2013-06-23 17:39:43 +00:00

43 lines
1.6 KiB
Text

$NetBSD: patch-ah,v 1.5 2013/06/23 17:39:43 jperkin Exp $
DragonFly support.
Disable SunOS multiarch.
--- jdk/make/common/shared/Platform.gmk.orig 2013-06-21 13:12:13.786915027 +0000
+++ jdk/make/common/shared/Platform.gmk
@@ -119,7 +119,7 @@ ifeq ($(SYSTEM_UNAME), SunOS)
ARCH := $(shell isainfo -n)
# ISA_DIR is used to locate 64-bit specific libraries which are generally
# in the same general place as other libraries under the ./$(ARCH) directory
- ISA_DIR = /$(ARCH)
+ NOMULTIARCHISA_DIR = /$(ARCH)
endif
# Need to maintain the jre/lib/i386 location for 32-bit Intel
ifeq ($(ARCH), i586)
@@ -224,6 +224,13 @@ ifeq ($(SYSTEM_UNAME), Linux)
MB_OF_MEMORY := $(shell free -m | fgrep Mem: | awk '{print $$2;}' )
endif
+ifeq ($(SYSTEM_UNAME), DragonFly)
+ PLATFORM = bsd
+ OS_NAME = dragonfly
+ OS_VENDOR = DragonFlyBSD
+ REQUIRED_OS_VERSION = 2.4
+endif
+
ifeq ($(SYSTEM_UNAME), Darwin)
PLATFORM = macosx
OS_NAME = darwin
@@ -371,9 +378,9 @@ ifeq ($(PLATFORM), bsd)
REQUIRED_FREE_SPACE=1500000
# How much RAM does this machine have:
ifeq ($(OS_VENDOR), OpenBSD)
- MB_OF_MEMORY=$(shell sysctl -n hw.physmem | awk '{print int($$NF / 1048576); }' )
+ MB_OF_MEMORY=$(shell /sbin/sysctl -n hw.physmem | awk '{print int($$NF / 1048576); }' )
else
- MB_OF_MEMORY=$(shell (sysctl -n hw.physmem64 2> /dev/null || sysctl -n hw.physmem) | awk '{print int($$NF / 1048576); }' )
+ MB_OF_MEMORY=$(shell (/sbin/sysctl -n hw.physmem64 2> /dev/null || sysctl -n hw.physmem) | awk '{print int($$NF / 1048576); }' )
endif
endif