aboutsummaryrefslogtreecommitdiffstats
path: root/devel/flex-sdk/files/optimizer.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'devel/flex-sdk/files/optimizer.sh.in')
-rw-r--r--devel/flex-sdk/files/optimizer.sh.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/devel/flex-sdk/files/optimizer.sh.in b/devel/flex-sdk/files/optimizer.sh.in
new file mode 100644
index 000000000000..5fe969162ae4
--- /dev/null
+++ b/devel/flex-sdk/files/optimizer.sh.in
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+[ -z "${PREFIX}" ] && PREFIX="%%PREFIX%%"
+[ -z "${JAVAJARDIR}" ] && JAVAJARDIR="%%JAVAJARDIR%%/%%PORTNAME%%"
+[ -z "${DATADIR}" ] && DATADIR="%%DATADIR%%"
+
+VMARGS="-Xmx384m -Dsun.io.useCanonCaches=false"
+
+java $VMARGS -jar "$JAVAJARDIR/optimizer.jar" +flexlib="$DATADIR/frameworks" $*