1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/java/netbeans/files/patch-bin_netbeans
2014-04-11 08:07:34 +00:00

23 lines
607 B
Plaintext

--- bin/netbeans.orig 2014-03-10 17:32:04.000000000 +0100
+++ bin/netbeans 2014-04-11 09:48:06.000000000 +0200
@@ -152,7 +152,7 @@
heap_size () {
mem=640
case "`uname`" in
- Linux*)
+ Linux*)
mem=`cat /proc/meminfo | grep MemTotal | tr -d [:space:][:alpha:]:`
mem=`expr $mem / 1024`
;;
@@ -163,6 +163,10 @@
mem=`/usr/sbin/sysctl hw.memsize | tr -d [:alpha:][:space:].:`
mem=`expr $mem / 1048576`
;;
+ FreeBSD*)
+ mem=`/sbin/sysctl -n hw.realmem`
+ mem=`expr $mem / 1048576`
+ ;;
*)
;;
esac