2016-12-30 12:16:56 +01:00
|
|
|
# $NetBSD: Makefile,v 1.31 2016/12/30 11:16:58 jaapb Exp $
|
2006-05-20 12:19:35 +02:00
|
|
|
|
2016-11-30 14:46:14 +01:00
|
|
|
DISTNAME= findlib-1.7.1
|
|
|
|
PKGNAME= ocaml-${DISTNAME}
|
2016-12-30 12:16:56 +01:00
|
|
|
PKGREVISION= 1
|
2006-05-20 12:19:35 +02:00
|
|
|
CATEGORIES= devel
|
2009-05-28 23:22:35 +02:00
|
|
|
MASTER_SITES= http://download.camlcity.org/download/
|
2006-05-20 12:19:35 +02:00
|
|
|
|
2013-07-05 15:57:58 +02:00
|
|
|
MAINTAINER= jaapb@NetBSD.org
|
2009-05-28 23:22:35 +02:00
|
|
|
HOMEPAGE= http://www.camlcity.org/
|
2006-05-20 12:19:35 +02:00
|
|
|
COMMENT= Library finder for OCaml
|
2012-07-06 11:22:04 +02:00
|
|
|
LICENSE= mit
|
2006-05-20 12:19:35 +02:00
|
|
|
|
2016-06-25 15:55:15 +02:00
|
|
|
OCAML_FINDLIB_DIRS+= bigarray bytes compiler-libs dynlink findlib graphics \
|
|
|
|
ocamldoc num-top num stdlib str threads unix
|
|
|
|
|
2014-10-09 22:53:15 +02:00
|
|
|
.include "../../mk/ocaml.mk"
|
|
|
|
|
2016-04-30 22:16:11 +02:00
|
|
|
# Undeclared dependencies between different components
|
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
|
2016-06-25 15:55:15 +02:00
|
|
|
USE_TOOLS+= gmake m4 bash fgrep:run sh:run
|
2006-05-20 12:19:35 +02:00
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= -bindir ${PREFIX}/bin
|
|
|
|
CONFIGURE_ARGS+= -mandir ${PREFIX}/${PKGMANDIR}
|
|
|
|
CONFIGURE_ARGS+= -config ${PKG_SYSCONFDIR}/ocamlfind.conf
|
2014-10-09 22:53:15 +02:00
|
|
|
CONFIGURE_ARGS+= -sitelib ${PREFIX}/${OCAML_SITELIBDIR}
|
|
|
|
CONFIGURE_ARGS+= -no-camlp4
|
|
|
|
|
2012-07-06 11:22:04 +02:00
|
|
|
BUILD_TARGET= all
|
2014-10-09 22:53:15 +02:00
|
|
|
.if ${OCAML_USE_OPT_COMPILER} == "yes"
|
|
|
|
BUILD_TARGET+= opt
|
2012-07-06 11:22:04 +02:00
|
|
|
.endif
|
|
|
|
|
2006-05-20 12:19:35 +02:00
|
|
|
EGDIR= ${PREFIX}/share/examples/ocaml-findlib
|
2010-08-21 17:27:31 +02:00
|
|
|
INSTALL_MAKE_FLAGS+= OCAMLFIND_CONF=${EGDIR}/ocamlfind.conf
|
2016-02-02 12:41:45 +01:00
|
|
|
INSTALLATION_DIRS= lib/ocaml libexec bin ${OCAML_SITELIBDIR}
|
2006-05-20 12:19:35 +02:00
|
|
|
|
|
|
|
CONF_FILES= ${EGDIR}/ocamlfind.conf ${PKG_SYSCONFDIR}/ocamlfind.conf
|
|
|
|
|
2016-06-25 15:55:15 +02:00
|
|
|
FILES_SUBST+= OCAML_FINDLIB_DIRS="${OCAML_FINDLIB_DIRS}" OCAML_SITELIBDIR="${OCAML_SITELIBDIR}"
|
|
|
|
|
2006-05-20 15:47:43 +02:00
|
|
|
SUBST_CLASSES+= ofr
|
|
|
|
SUBST_STAGE.ofr= pre-configure
|
|
|
|
SUBST_FILES.ofr= ocaml-findlib-register.sh
|
|
|
|
SUBST_SED.ofr= -e 's,@SH@,'${SH:Q}','
|
|
|
|
SUBST_SED.ofr+= -e 's,@PREFIX@,${PREFIX},'
|
|
|
|
SUBST_SED.ofr+= -e 's,@FGREP@,'${FGREP:Q}','
|
|
|
|
|
2009-02-16 17:29:18 +01:00
|
|
|
SUBST_CLASSES+= pathes
|
|
|
|
SUBST_STAGE.pathes= post-install
|
|
|
|
SUBST_FILES.pathes= ${DESTDIR}${PREFIX}/lib/ocaml/site-lib/findlib/Makefile.config
|
|
|
|
SUBST_SED.pathes= -e 's,^\(OCAML_CORE_BIN=\).*,\1'${PREFIX:Q}/bin','
|
|
|
|
|
2012-03-04 10:26:55 +01:00
|
|
|
do-test:
|
|
|
|
${RUN} cd ${WRKSRC}; ${SH} itest
|
|
|
|
|
2006-05-20 12:19:35 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|