2016-05-05 11:42:19 +02:00
|
|
|
# $NetBSD: Makefile,v 1.28 2016/05/05 09:42:19 jaapb Exp $
|
2006-05-20 12:19:35 +02:00
|
|
|
|
2016-05-05 11:42:19 +02:00
|
|
|
DISTNAME= findlib-1.6.2
|
2016-02-06 13:06:07 +01:00
|
|
|
PKGNAME= ocaml-${DISTNAME}
|
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
|
|
|
|
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
|
|
|
|
|
2012-07-06 11:22:04 +02:00
|
|
|
USE_TOOLS+= gmake m4 bash
|
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
|
|
|
|
|
2006-05-20 15:47:43 +02:00
|
|
|
USE_TOOLS+= fgrep:run sh:run
|
|
|
|
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','
|
|
|
|
|
2006-05-20 15:47:43 +02:00
|
|
|
post-extract:
|
|
|
|
${CP} ${FILESDIR}/ocaml-findlib-register.sh ${WRKSRC}
|
|
|
|
|
|
|
|
post-install:
|
2009-02-16 17:29:18 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/ocaml-findlib-register.sh ${DESTDIR}${PREFIX}/libexec/ocaml-findlib-register
|
2006-05-20 15:47:43 +02:00
|
|
|
|
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"
|