Makefile 964 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # $OpenBSD: Makefile,v 1.11 2017/04/21 13:27:46 kurt Exp $
  2. BROKEN-i386= java
  3. COMMENT= Scheme and language framework for the Java platform
  4. DISTNAME= kawa-2.1
  5. CATEGORIES= lang java
  6. REVISION= 0
  7. HOMEPAGE= https://www.gnu.org/software/kawa/
  8. # MIT
  9. PERMIT_PACKAGE_CDROM= Yes
  10. MASTER_SITES= ${MASTER_SITE_GNU:=kawa/}
  11. MODULES= java
  12. MODJAVA_VER= 1.7+
  13. TEST_DEPENDS= ${BUILD_DEPENDS}
  14. USE_GMAKE= Yes
  15. WANTLIB += c ncurses readline
  16. CONFIGURE_STYLE= gnu
  17. CONFIGURE_ARGS+= --enable-kawa-frontend
  18. CONFIGURE_ENV= JAVAC=${JAVA_HOME}/bin/javac \
  19. JAVA=${JAVA_HOME}/bin/java
  20. .include <bsd.port.arch.mk>
  21. # fails with this on i386, fails without this on amd64, unsure about
  22. # other arch but lp64 is probably not a bad indicator.
  23. .if ${PROPERTIES:Mlp64}
  24. MAKE_ENV= SLIB_JAVAFLAGS=-Xmx1200M
  25. .else
  26. MAKE_ENV= SLIB_JAVAFLAGS=-Xmx800M
  27. .endif
  28. pre-patch:
  29. find ${WRKSRC} -type f | \
  30. xargs perl -pi -e 's,^JAR =.*,JAR = ${JAVA_HOME}/bin/jar,g'
  31. .include <bsd.port.mk>