Annotation of pkgsrc/devel/ocaml-findlib/Makefile, Revision 1.46
1.46 ! rillig 1: # $NetBSD: Makefile,v 1.45 2019/07/31 09:07:00 jaapb Exp $
1.1 rillig 2:
1.45 jaapb 3: DISTNAME= findlib-1.8.1
1.30 wiz 4: PKGNAME= ocaml-${DISTNAME}
1.1 rillig 5: CATEGORIES= devel
1.6 zafer 6: MASTER_SITES= http://download.camlcity.org/download/
1.1 rillig 7:
1.16 jaapb 8: MAINTAINER= jaapb@NetBSD.org
1.6 zafer 9: HOMEPAGE= http://www.camlcity.org/
1.1 rillig 10: COMMENT= Library finder for OCaml
1.11 wiz 11: LICENSE= mit
1.1 rillig 12:
1.39 jaapb 13: OCAML_FINDLIB_DIRS+= bigarray bytes compiler-libs dynlink findlib \
1.35 jaapb 14: ocamldoc stdlib str threads unix
1.29 jaapb 15:
1.20 jaapb 16: .include "../../mk/ocaml.mk"
17:
1.32 maya 18: # spacetime profiling is only available for native code on 64bit platforms
19: PLIST_VARS+= 64bit
20: .if !empty(LP64PLATFORMS:@.PLAT.@${MACHINE_PLATFORM:M${.PLAT.}}@) || \
21: (defined(ABI) && ${ABI} == "64")
22: PLIST.64bit= yes
23: .endif
24:
1.27 joerg 25: # Undeclared dependencies between different components
26: MAKE_JOBS_SAFE= no
27:
1.29 jaapb 28: USE_TOOLS+= gmake m4 bash fgrep:run sh:run
1.1 rillig 29: USE_PKGLOCALEDIR= yes
30: HAS_CONFIGURE= yes
31: CONFIGURE_ARGS+= -bindir ${PREFIX}/bin
32: CONFIGURE_ARGS+= -mandir ${PREFIX}/${PKGMANDIR}
33: CONFIGURE_ARGS+= -config ${PKG_SYSCONFDIR}/ocamlfind.conf
1.20 jaapb 34: CONFIGURE_ARGS+= -sitelib ${PREFIX}/${OCAML_SITELIBDIR}
35: CONFIGURE_ARGS+= -no-camlp4
36:
1.46 ! rillig 37: BUILD_TARGET= all
1.20 jaapb 38: .if ${OCAML_USE_OPT_COMPILER} == "yes"
39: BUILD_TARGET+= opt
1.11 wiz 40: .endif
41:
1.1 rillig 42: EGDIR= ${PREFIX}/share/examples/ocaml-findlib
1.7 asau 43: INSTALL_MAKE_FLAGS+= OCAMLFIND_CONF=${EGDIR}/ocamlfind.conf
1.25 jaapb 44: INSTALLATION_DIRS= lib/ocaml libexec bin ${OCAML_SITELIBDIR}
1.1 rillig 45:
46: CONF_FILES= ${EGDIR}/ocamlfind.conf ${PKG_SYSCONFDIR}/ocamlfind.conf
47:
1.29 jaapb 48: FILES_SUBST+= OCAML_FINDLIB_DIRS="${OCAML_FINDLIB_DIRS}" OCAML_SITELIBDIR="${OCAML_SITELIBDIR}"
49:
1.2 rillig 50: SUBST_CLASSES+= ofr
51: SUBST_STAGE.ofr= pre-configure
52: SUBST_FILES.ofr= ocaml-findlib-register.sh
1.44 rillig 53: SUBST_VARS.ofr= SH
54: SUBST_VARS.ofr+= PREFIX
55: SUBST_VARS.ofr+= FGREP
1.2 rillig 56:
1.5 joerg 57: SUBST_CLASSES+= pathes
58: SUBST_STAGE.pathes= post-install
59: SUBST_FILES.pathes= ${DESTDIR}${PREFIX}/lib/ocaml/site-lib/findlib/Makefile.config
60: SUBST_SED.pathes= -e 's,^\(OCAML_CORE_BIN=\).*,\1'${PREFIX:Q}/bin','
61:
1.10 asau 62: do-test:
63: ${RUN} cd ${WRKSRC}; ${SH} itest
64:
1.1 rillig 65: .include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>