| @@ -1,60 +1,52 @@ | | | @@ -1,60 +1,52 @@ |
1 | # $NetBSD: Makefile,v 1.53 2022/05/24 18:51:49 jaapb Exp $ | | 1 | # $NetBSD: Makefile,v 1.54 2023/01/09 14:24:40 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= findlib-1.9.3 | | 3 | DISTNAME= findlib-1.9.6 |
4 | PKGNAME= ocaml-${DISTNAME} | | 4 | PKGNAME= ocaml-${DISTNAME} |
5 | PKGREVISION= 1 | | | |
6 | CATEGORIES= devel | | 5 | CATEGORIES= devel |
7 | MASTER_SITES= http://download.camlcity.org/download/ | | 6 | MASTER_SITES= http://download.camlcity.org/download/ |
8 | | | 7 | |
9 | MAINTAINER= jaapb@NetBSD.org | | 8 | MAINTAINER= jaapb@NetBSD.org |
10 | HOMEPAGE= http://projects.camlcity.org/projects/findlib.html | | 9 | HOMEPAGE= http://projects.camlcity.org/projects/findlib.html |
11 | COMMENT= Library finder for OCaml | | 10 | COMMENT= Library finder for OCaml |
12 | LICENSE= mit | | 11 | LICENSE= mit |
13 | | | 12 | |
14 | OCAML_FINDLIB_DIRS+= bigarray bytes compiler-libs dynlink findlib \ | | 13 | OCAML_FINDLIB_DIRS+= bigarray bytes compiler-libs dynlink findlib \ |
15 | ocamldoc stdlib str threads unix | | 14 | ocamldoc stdlib str threads unix |
16 | | | 15 | |
17 | .include "../../lang/ocaml/ocaml.mk" | | 16 | .include "../../lang/ocaml/ocaml.mk" |
18 | | | 17 | |
19 | # spacetime profiling is only available for native code on 64bit platforms | | | |
20 | PLIST_VARS+= 64bit | | | |
21 | .if !empty(LP64PLATFORMS:@.PLAT.@${MACHINE_PLATFORM:M${.PLAT.}}@) || \ | | | |
22 | (defined(ABI) && ${ABI} == "64") | | | |
23 | PLIST.64bit= yes | | | |
24 | .endif | | | |
25 | | | | |
26 | # Undeclared dependencies between different components | | 18 | # Undeclared dependencies between different components |
27 | MAKE_JOBS_SAFE= no | | 19 | MAKE_JOBS_SAFE= no |
28 | | | 20 | |
29 | USE_TOOLS+= gmake m4 bash fgrep:run sh:run | | 21 | USE_TOOLS+= gmake m4 bash fgrep:run sh:run |
30 | USE_PKGLOCALEDIR= yes | | 22 | USE_PKGLOCALEDIR= yes |
31 | HAS_CONFIGURE= yes | | 23 | HAS_CONFIGURE= yes |
32 | CONFIGURE_ARGS+= -bindir ${PREFIX}/bin | | 24 | CONFIGURE_ARGS+= -bindir ${PREFIX}/bin |
33 | CONFIGURE_ARGS+= -mandir ${PREFIX}/${PKGMANDIR} | | 25 | CONFIGURE_ARGS+= -mandir ${PREFIX}/${PKGMANDIR} |
34 | CONFIGURE_ARGS+= -config ${PKG_SYSCONFDIR}/ocamlfind.conf | | 26 | CONFIGURE_ARGS+= -config ${PKG_SYSCONFDIR}/ocamlfind.conf |
35 | CONFIGURE_ARGS+= -sitelib ${PREFIX}/${OCAML_SITELIBDIR} | | 27 | CONFIGURE_ARGS+= -sitelib ${PREFIX}/${OCAML_SITELIBDIR} |
36 | CONFIGURE_ARGS+= -no-camlp4 | | 28 | CONFIGURE_ARGS+= -no-camlp4 |
37 | | | 29 | |
38 | BUILD_TARGET= all | | 30 | BUILD_TARGET= all |
39 | .if ${OCAML_USE_OPT_COMPILER} == "yes" | | 31 | .if ${OCAML_USE_OPT_COMPILER} == "yes" |
40 | BUILD_TARGET+= opt | | 32 | BUILD_TARGET+= opt |
41 | .endif | | 33 | .endif |
42 | | | 34 | |
43 | EGDIR= ${PREFIX}/share/examples/ocaml-findlib | | 35 | EGDIR= ${PREFIX}/share/examples/ocaml-findlib |
44 | INSTALL_MAKE_FLAGS+= OCAMLFIND_CONF=${EGDIR}/ocamlfind.conf | | 36 | INSTALL_MAKE_FLAGS+= OCAMLFIND_CONF=${EGDIR}/ocamlfind.conf |
45 | INSTALL_MAKE_FLAGS+= prefix=${DESTDIR} | | | |
46 | INSTALLATION_DIRS= lib/ocaml libexec bin ${OCAML_SITELIBDIR} | | 37 | INSTALLATION_DIRS= lib/ocaml libexec bin ${OCAML_SITELIBDIR} |
47 | | | 38 | |
48 | CONF_FILES= ${EGDIR}/ocamlfind.conf ${PKG_SYSCONFDIR}/ocamlfind.conf | | 39 | CONF_FILES= ${EGDIR}/ocamlfind.conf ${PKG_SYSCONFDIR}/ocamlfind.conf |
49 | | | 40 | |
50 | FILES_SUBST+= OCAML_FINDLIB_DIRS="${OCAML_FINDLIB_DIRS}" OCAML_SITELIBDIR="${OCAML_SITELIBDIR}" | | 41 | FILES_SUBST+= OCAML_FINDLIB_DIRS="${OCAML_FINDLIB_DIRS}" OCAML_SITELIBDIR="${OCAML_SITELIBDIR}" |
51 | | | 42 | |
52 | SUBST_CLASSES+= pathes | | 43 | SUBST_CLASSES+= pathes |
53 | SUBST_STAGE.pathes= post-install | | 44 | SUBST_STAGE.pathes= post-install |
54 | SUBST_FILES.pathes= ${DESTDIR}${PREFIX}/lib/ocaml/site-lib/findlib/Makefile.config | | 45 | SUBST_FILES.pathes= ${DESTDIR}${PREFIX}/lib/ocaml/site-lib/findlib/Makefile.config |
55 | SUBST_SED.pathes= -e 's,^\(OCAML_CORE_BIN=\).*,\1'${PREFIX:Q}/bin',' | | 46 | SUBST_SED.pathes= -e 's,^\(OCAML_CORE_BIN=\).*,\1'${PREFIX:Q}/bin',' |
56 | | | 47 | |
| | | 48 | # needs to be installed first |
57 | do-test: | | 49 | do-test: |
58 | ${RUN} cd ${WRKSRC}; ${SH} itest | | 50 | ${RUN} cd ${WRKSRC}; ${SH} itest |
59 | | | 51 | |
60 | .include "../../mk/bsd.pkg.mk" | | 52 | .include "../../mk/bsd.pkg.mk" |