Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # $OpenBSD: Makefile,v 1.34 2017/02/25 18:58:04 daniel Exp $
  2. COMMENT= proof assistant based on a typed lambda calculus
  3. V= 8.4pl6
  4. DISTNAME= coq-$V
  5. REVISION= 2
  6. CATEGORIES= math
  7. HOMEPAGE= https://coq.inria.fr/
  8. MAINTAINER= Yozo Toda <yozo@v007.vaio.ne.jp>
  9. # LGPL 2.1
  10. PERMIT_PACKAGE_CDROM= Yes
  11. WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
  12. WANTLIB += Xrandr Xrender atk-1.0 c cairo fontconfig freetype
  13. WANTLIB += gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gobject-2.0
  14. WANTLIB += gtk-x11-2.0 intl m pango-1.0 pangocairo-1.0 pangoft2-1.0
  15. WANTLIB += pthread z
  16. MASTER_SITES= https://coq.inria.fr/distrib/V${V}/files/
  17. MODULES= lang/ocaml
  18. BUILD_DEPENDS= x11/lablgtk2 \
  19. lang/ocaml-camlp4 \
  20. sysutils/findlib
  21. RUN_DEPENDS= x11/lablgtk2
  22. DESTDIRNAME= COQINSTALLPREFIX
  23. USE_GMAKE= Yes
  24. CONFIGURE_STYLE= simple
  25. CONFIGURE_ARGS= -emacslib ${PREFIX}/share/emacs/site-lisp \
  26. -makecmd ${GMAKE} \
  27. -prefix ${PREFIX} \
  28. -mandir ${PREFIX}/man \
  29. -configdir ${SYSCONFDIR}/xdg/coq \
  30. -with-doc no \
  31. -usecamlp4
  32. .include <bsd.port.arch.mk>
  33. .if ${PROPERTIES:Mocaml_native_dynlink}
  34. CONFIGURE_ARGS+= -opt
  35. .else
  36. CONFIGURE_ARGS+= -byteonly
  37. .endif
  38. ALL_TARGET= world
  39. # Order is important!
  40. INSTALL_TARGET= install-byte install-ide-byte install
  41. TEST_TARGET= check
  42. post-install:
  43. cd ${WRKDIST}; ${INSTALL_DATA} LICENSE COPYRIGHT CREDITS CHANGES \
  44. COMPATIBILITY ${PREFIX}/share/doc/coq/
  45. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/coq/
  46. mv ${WRKINST}${SYSCONFDIR}/xdg/coq/* ${PREFIX}/share/examples/coq/
  47. rmdir ${WRKINST}${SYSCONFDIR}/xdg/coq/ ${WRKINST}${SYSCONFDIR}/xdg/
  48. .include <bsd.port.mk>