30 lines
1.1 KiB
Text
30 lines
1.1 KiB
Text
$NetBSD: patch-ah,v 1.2 2009/10/18 10:21:01 tnn Exp $
|
|
|
|
--- jdk/make/common/shared/Platform.gmk.orig 2009-10-17 16:49:37.000000000 +0200
|
|
+++ jdk/make/common/shared/Platform.gmk
|
|
@@ -218,6 +218,13 @@ ifeq ($(SYSTEM_UNAME), FreeBSD)
|
|
REQUIRED_OS_VERSION = 6.0
|
|
endif
|
|
|
|
+ifeq ($(SYSTEM_UNAME), DragonFly)
|
|
+ PLATFORM = bsd
|
|
+ OS_NAME = dragonfly
|
|
+ OS_VENDOR = DragonFlyBSD
|
|
+ REQUIRED_OS_VERSION = 2.4
|
|
+endif
|
|
+
|
|
ifeq ($(SYSTEM_UNAME), Darwin)
|
|
PLATFORM = bsd
|
|
OS_NAME = darwin
|
|
@@ -288,9 +295,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
|
|
|