Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # $OpenBSD: Makefile,v 1.9 2016/08/19 12:51:19 krw Exp $
  2. MULTI_PACKAGES = -main -lib
  3. COMMENT-main = OCaml source-based package manager
  4. COMMENT-lib = OPAM library
  5. CATEGORIES = sysutils devel
  6. V = 1.2.2
  7. GH_ACCOUNT = ocaml
  8. GH_PROJECT = opam
  9. GH_TAGNAME = ${V}
  10. DISTNAME = ${GH_PROJECT}-${V}
  11. REVISION = 2
  12. PKGNAME-main = opam-${V}
  13. PKGNAME-lib = opam-lib-${V}
  14. HOMEPAGE = https://opam.ocaml.org/
  15. MAINTAINER = Christopher Zimmermann <chrisz@openbsd.org>
  16. # LGPLv3
  17. PERMIT_PACKAGE_CDROM = Yes
  18. WANTLIB-main = c m
  19. MODULES = lang/ocaml
  20. BUILD_DEPENDS = devel/git \
  21. sysutils/findlib \
  22. devel/ocaml-ocamlbuild \
  23. devel/cudf,-ocaml \
  24. devel/ocaml-cmdliner \
  25. devel/ocaml-dose \
  26. devel/ocaml-graph \
  27. devel/ocaml-re \
  28. devel/ocaml-jsonm
  29. RUN_DEPENDS = lang/ocaml-camlp4 \
  30. net/rsync \
  31. archivers/unzip \
  32. devel/gmake \
  33. archivers/bzip2 \
  34. net/curl
  35. USE_GMAKE = Yes
  36. CONFIGURE_STYLE = gnu
  37. ALL_TARGET = all html man
  38. INSTALL_TARGET = install libinstall
  39. TEST_TARGET = tests
  40. docdir = ${PREFIX}/share/doc/opam
  41. post-install:
  42. ${INSTALL_DATA_DIR} ${docdir}/{pages,api}
  43. ${INSTALL_DATA} \
  44. ${WRKSRC}/{CHANGES,README.md} \
  45. ${WRKSRC}/doc/design/* \
  46. ${docdir}/
  47. ${INSTALL_DATA} ${WRKSRC}/doc/pages/*.md ${docdir}/pages
  48. ${INSTALL_DATA} ${WRKSRC}/doc/html/* ${docdir}/api
  49. ${INSTALL_DATA} ${WRKSRC}/doc/dev-manual/dev-manual.pdf ${docdir}/
  50. ${INSTALL_SCRIPT} ${FILESDIR}/aspcud ${PREFIX}/bin/aspcud
  51. .include <bsd.port.mk>