mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
30cf4a8a62
Release notes: https://netbeans.org/community/releases/80/relnotes.html New and noteworthy: http://wiki.netbeans.org/NewAndNoteworthyNB80 - IGNORE netbeans-devel
23 lines
607 B
Plaintext
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
|