mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
- Instead of USE_OCAML=yes use USES=ocaml. If empty USES=ocaml implies build and run - Instead of USE_OCAMLFIND_PLIST use USES=ocaml:findplist which also implies USES=ocaml:findlib - Instead of USE_OCAML_CAMLP4 use USES=ocaml:camlp4 - Instead of USE_OCAML_FINDLIB use USES=ocaml:findlib - Instead of USE_OCAML_LDCONFIG use USES=ocaml:ldconfig - Instead of USE_OCAML_WASH use USES=ocaml:wash - Instead of NO_OCAML_BUILDDEPENDS use USES=ocaml:run - Instead of NO_OCAML_RUNDDEPENDS use USES=ocaml:build - Instead of USE_OCAML_TK use USES=ocaml:tk which actually implies USES=ocaml:tkbuild and USES=ocaml:tkrun - Instead of NO_OCAMLTK_BUILDDEPENDS use USES=ocaml:tkrun - Instead of NO_OCAMLTK_RUNDEPENDS use USES=ocaml:tkbuild - USES=ocaml:dune remains unchanged - Prepare to add/remove keywords easily Approved by: mat (portmgr) Reviewed by: freebsd@dev.thsi.be Differential Revision: https://reviews.freebsd.org/D48227
59 lines
1.7 KiB
Makefile
59 lines
1.7 KiB
Makefile
PORTNAME= findlib
|
|
PORTVERSION= 1.9.6
|
|
PORTREVISION= 3
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://download.camlcity.org/download/
|
|
PKGNAMEPREFIX= ocaml-
|
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
|
COMMENT= OCaml package manager
|
|
WWW= http://projects.camlcity.org/projects/findlib.html
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= gmake ocaml:camlp4
|
|
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS= -bindir "${PREFIX}/bin" -mandir "${PREFIX}/share/man" \
|
|
-sitelib "${PREFIX}/${OCAML_SITELIBDIR}" \
|
|
-config "${PREFIX}/etc/findlib.conf"
|
|
MAKE_ENV= OCAML_LIBDIR="${PREFIX}/${OCAML_LIBDIR}"
|
|
ALL_TARGET= all opt
|
|
MAKE_JOBS_UNSAFE= yes
|
|
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME}
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= TOOLBOX DOCS
|
|
OPTIONS_DEFAULT=TOOLBOX
|
|
OPTIONS_SUB= yes
|
|
|
|
TOOLBOX_DESC= Include toolbox interface (requires OCaml with Tk)
|
|
TOOLBOX_CONFIGURE_ON= -with-toolbox
|
|
TOOLBOX_RUN_DEPENDS= labltk:x11-toolkits/ocaml-labltk
|
|
TOOLBOX_BUILD_DEPENDS= ${TOOLBOX_RUN_DEPENDS}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-install:
|
|
# META files provided by the respective ocaml-* package,
|
|
# (those libraries used to be belong in the core ocaml
|
|
# compiler package).
|
|
@for oldlib in camlp4 graphics labltk ocamlbuild; \
|
|
do ${RM} -r ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/$$oldlib ; done
|
|
@(cd ${STAGEDIR}${PREFIX} && \
|
|
${STRIP_CMD} bin/ocamlfind \
|
|
${OCAML_SITELIBDIR}/findlib/findlib.cmxs \
|
|
${OCAML_SITELIBDIR}/findlib/findlib_dynload.cmxs \
|
|
${OCAML_SITELIBDIR}/findlib/findlib_top.cmxs)
|
|
|
|
post-install-TOOLBOX-on:
|
|
${CHMOD} 755 ${STAGEDIR}${PREFIX}/bin/ocamlfind \
|
|
${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/findlib/make_wizard
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR} \
|
|
"! -regex .*ref-man.*"
|
|
|
|
.include <bsd.port.post.mk>
|