ports/java/netbeans/files/patch-bin_netbeans
Koop Mast ca13b006a9 Update netbeans to 10.0.
This is the second release of Apache Netbeans (incubating).

The first release (9.0) was skipped because it only included java support.
This version should support most if not all of the project types the older
netbeans 8.2 did.

PR:		230420
2018-12-31 15:18:58 +00:00

23 lines
737 B
Text

--- bin/netbeans.orig 2018-12-17 03:32:36 UTC
+++ bin/netbeans
@@ -136,7 +136,11 @@ heap_size () {
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
if [ -z "$mem" ] ; then
@@ -204,6 +208,7 @@ case "`uname`" in
--jdkhome '"$netbeans_jdkhome"' \
--branding nb \
--clusters '"$netbeans_clusters"' \
+ -J-Dawt.useSystemAAFontSettings=on \
-J-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade \
${netbeans_default_options} \
'"$@"'