diff options
author | Pietro Cerutti <gahr@FreeBSD.org> | 2012-01-04 16:04:46 +0000 |
---|---|---|
committer | Pietro Cerutti <gahr@FreeBSD.org> | 2012-01-04 16:04:46 +0000 |
commit | f2895b183da3a210857bc1301d2e09a1981f47e2 (patch) | |
tree | f8b247365457919c6c544a88b600342dfb62f4d5 /java/netbeans-devel | |
parent | 3bff9d66ca7d8f2986be05c8619d5e0b2ec53598 (diff) | |
download | ports-f2895b183da3a210857bc1301d2e09a1981f47e2.tar.gz ports-f2895b183da3a210857bc1301d2e09a1981f47e2.zip |
Notes
Diffstat (limited to 'java/netbeans-devel')
-rw-r--r-- | java/netbeans-devel/Makefile | 2 | ||||
-rw-r--r-- | java/netbeans-devel/files/patch-netbeans | 22 |
2 files changed, 23 insertions, 1 deletions
diff --git a/java/netbeans-devel/Makefile b/java/netbeans-devel/Makefile index 010dbee34486..89cb07c4b03e 100644 --- a/java/netbeans-devel/Makefile +++ b/java/netbeans-devel/Makefile @@ -26,7 +26,7 @@ PLIST_SUB+= PORTVERSION=${PORTVERSION} #IGNORE= No development version available right now. Please use java/netbeans instead. -do-patch: +post-patch: @${REINPLACE_CMD} -i "" -e '19s|#||;19s|/path/to/jdk|${JAVA_HOME}|' \ ${WRKSRC}/etc/netbeans.conf diff --git a/java/netbeans-devel/files/patch-netbeans b/java/netbeans-devel/files/patch-netbeans new file mode 100644 index 000000000000..c51b689277ec --- /dev/null +++ b/java/netbeans-devel/files/patch-netbeans @@ -0,0 +1,22 @@ +--- bin/netbeans.orig 2011-09-26 01:36:52.000000000 +0200 ++++ bin/netbeans 2012-01-04 16:50:05.000000000 +0100 +@@ -131,6 +131,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 +@@ -158,7 +162,7 @@ + if grep -v -- "-J-XX:MaxPermSize" >/dev/null <<EOF ; then + ${netbeans_default_options} + EOF +- netbeans_default_options="-J-XX:MaxPermSize=384m ${netbeans_default_options}" ++ netbeans_default_options="-J-XX:MaxPermSize=512m ${netbeans_default_options}" + fi + + launchNbexec() { |