2011-11-27 20:13:50 +01:00
|
|
|
# $NetBSD: Makefile,v 1.8 2011/11/27 19:13:50 marino Exp $
|
2006-05-20 12:19:35 +02:00
|
|
|
#
|
|
|
|
|
2010-08-21 17:27:31 +02:00
|
|
|
DISTNAME= findlib-1.2.6
|
2006-05-20 12:19:35 +02:00
|
|
|
PKGNAME= ocaml-${DISTNAME}
|
|
|
|
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
|
|
|
|
2008-03-04 12:02:23 +01:00
|
|
|
MAINTAINER= pkgsrc-users@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
|
|
|
|
|
2009-02-16 17:29:18 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2007-12-21 17:48:30 +01:00
|
|
|
USE_TOOLS+= gmake m4
|
2006-05-20 12:19:35 +02:00
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
HAS_CONFIGURE= yes
|
2011-11-27 20:13:50 +01:00
|
|
|
MAKE_JOBS_SAFE= no
|
2006-05-20 12:19:35 +02:00
|
|
|
CONFIGURE_ARGS+= -bindir ${PREFIX}/bin
|
|
|
|
CONFIGURE_ARGS+= -mandir ${PREFIX}/${PKGMANDIR}
|
|
|
|
CONFIGURE_ARGS+= -config ${PKG_SYSCONFDIR}/ocamlfind.conf
|
|
|
|
|
|
|
|
EGDIR= ${PREFIX}/share/examples/ocaml-findlib
|
2010-08-21 17:27:31 +02:00
|
|
|
INSTALL_MAKE_FLAGS+= OCAMLFIND_CONF=${EGDIR}/ocamlfind.conf
|
2009-02-16 17:29:18 +01:00
|
|
|
INSTALLATION_DIRS= libexec bin
|
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
|
|
|
|
2006-05-20 12:19:35 +02:00
|
|
|
.include "../../lang/ocaml/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|