Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # $OpenBSD: Makefile,v 1.30 2017/05/11 20:50:55 espie Exp $
  2. COMMENT = Lisp-1 dialect for the Java Virtual Machine
  3. GH_ACCOUNT = clojure
  4. GH_PROJECT = clojure
  5. GH_TAGNAME = ${GH_PROJECT}-1.8.0
  6. REVISION = 1
  7. DISTNAME = ${GH_TAGNAME}
  8. PKG_ARCH = *
  9. CATEGORIES = lang
  10. HOMEPAGE = http://www.clojure.org/
  11. MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>
  12. # Eclipse Public License EPL 1.0
  13. PERMIT_PACKAGE_CDROM = Yes
  14. MODULES = java
  15. MODJAVA_VER = 1.6+
  16. MODJAVA_BUILD = ant
  17. MODJAVA_BUILD_TARGET_NAME = jar
  18. MODJAVA_JRERUN = Yes
  19. WRKDIST = ${WRKDIR}/clojure-${DISTNAME}
  20. RUN_DEPENDS = java/javaPathHelper \
  21. misc/rlwrap
  22. # Tests fail to compile (and need JAX-WS)
  23. NO_TEST = Yes
  24. CLOJURE_HOME = ${PREFIX}/clojure
  25. # Maintainer target to generate completions file
  26. completions: install
  27. ${LOCALBASE}/bin/clojure ${FILESDIR}/clj_completions.clj
  28. do-install:
  29. ${INSTALL_DATA_DIR} ${CLOJURE_HOME}
  30. ${INSTALL_DATA} ${WRKSRC}/clojure.jar ${CLOJURE_HOME}
  31. @${SUBST_PROGRAM} ${FILESDIR}/clojure \
  32. ${PREFIX}/bin/clojure
  33. cd ${WRKDIST} && tar -cf - src | tar -C ${CLOJURE_HOME} -xf -
  34. chown -R ${SHAREOWN}:${SHAREGRP} ${CLOJURE_HOME}/src
  35. chmod -R a+r ${CLOJURE_HOME}/src
  36. ${INSTALL_DATA} ${FILESDIR}/clj_completions ${CLOJURE_HOME}
  37. .include <bsd.port.mk>