Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # $OpenBSD: Makefile,v 1.7 2016/06/24 15:59:12 krw Exp $
  2. COMMENT = OCaml Preprocessor and Pretty-Printer
  3. CATEGORIES = lang
  4. V = 4.03+1
  5. GH_ACCOUNT = ocaml
  6. GH_PROJECT = camlp4
  7. GH_TAGNAME = ${V}
  8. WRKDIST = ${WRKDIR}/${GH_PROJECT}-${GH_TAGNAME:S/+/-/}
  9. PKGNAME = ocaml-${DISTNAME}
  10. REVISION = 0
  11. # No dynlink compatibility between releases
  12. PKGSPEC = ocaml-camlp4-=${V}
  13. HOMEPAGE = https://github.com/ocaml/camlp4/
  14. MAINTAINER = Christopher Zimmermann <chrisz@openbsd.org>
  15. # LGPL >=2.1
  16. PERMIT_PACKAGE_CDROM = Yes
  17. MODULES = lang/ocaml
  18. WANTLIB += c m
  19. USE_GMAKE = Yes
  20. CONFIGURE_STYLE = simple
  21. BUILD_DEPENDS = devel/ocaml-ocamlbuild
  22. MAKE_ENV = DESTDIR=${WRKINST}
  23. ALL_TARGET = byte
  24. .include <bsd.port.arch.mk>
  25. .if ${PROPERTIES:Mocaml_native}
  26. ALL_TARGET += native
  27. .endif
  28. INSTALL_TARGET = install install-META
  29. pre-install:
  30. echo PKGDIR=${LOCALBASE}/lib/ocaml >>${WRKSRC}/config.sh
  31. echo LIBDIR=${LOCALBASE}/lib/ocaml >>${WRKSRC}/config.sh
  32. echo BINDIR=${LOCALBASE}/bin >>${WRKSRC}/config.sh
  33. .include <bsd.port.mk>