2013-11-09 23:19:01 +00:00

45 lines
949 B
Makefile

# $OpenBSD: Makefile,v 1.5 2013/11/09 23:19:03 naddy Exp $
COMMENT= Scheme and language framework for the Java platform
DISTNAME= kawa-1.13
REVISION= 1
CATEGORIES= lang java
HOMEPAGE= https://www.gnu.org/software/kawa/
# MIT
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= ${MASTER_SITE_GNU:=kawa/}
MODULES= java
MODJAVA_VER= 1.6+
VMEM_WARNING= Yes
USE_GMAKE= Yes
USE_GROFF= Yes
WANTLIB += c ncurses readline
CONFIGURE_STYLE= gnu
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'
.include <bsd.port.mk>