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