Previous setting of -Xmx to java was good for amd64, but not i386.

Change to passing the flag in via the environment and use different
values for different arch. Definitely builds on amd64/i386 now. ok jasper@
This commit is contained in:
sthen 2013-01-16 11:17:18 +00:00
parent 06112d2478
commit f03f7c0e49
2 changed files with 13 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.2 2012/12/21 09:42:28 jasper Exp $
# $OpenBSD: Makefile,v 1.3 2013/01/16 11:17:18 sthen Exp $
COMMENT= Scheme and language framework for the Java platform
@ -31,6 +31,15 @@ CONFIGURE_ARGS+= --enable-kawa-frontend
CONFIGURE_ENV= JAVAC=${JAVA_HOME}/bin/javac \
JAVA=${JAVA_HOME}/bin/java
.include <bsd.port.arch.mk>
# fails with this on i386, fails without this on amd64, unsure about
# other arch but lp64 is probably not a bad indicator.
.if ${PROPERTIES:Mlp64}
MAKE_ENV= SLIB_JAVAFLAGS=-Xmx1200M
.else
MAKE_ENV= SLIB_JAVAFLAGS=-Xmx800M
.endif
pre-patch:
find ${WRKSRC} -type f | \
xargs perl -pi -e 's,^JAR =.*,JAR = ${JAVA_HOME}/bin/jar,g'

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-gnu_kawa_slib_Makefile_in,v 1.1 2012/12/23 12:06:24 sthen Exp $
$OpenBSD: patch-gnu_kawa_slib_Makefile_in,v 1.2 2013/01/16 11:17:18 sthen Exp $
Fails to compile swing.scm with defaults.
Fails to compile swing.scm with defaults on some arch.
--- gnu/kawa/slib/Makefile.in.orig Sun Dec 23 11:04:57 2012
+++ gnu/kawa/slib/Makefile.in Sun Dec 23 11:05:06 2012
@ -9,7 +9,7 @@ Fails to compile swing.scm with defaults.
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-JAVA = @JAVA@
+JAVA = @JAVA@ -Xmx1200M
+JAVA = @JAVA@ ${SLIB_JAVAFLAGS}
JAVAC = @JAVAC@
JAVACFLAGS = @JAVACFLAGS@
JAVA_SOURCE = @JAVA_SOURCE@