1 # $NetBSD: Makefile,v 1.3 2012/10/08 15:18:24 jaapb Exp $
4 DISTNAME
= cryptokit-1.6
5 PKGNAME
= ocaml-
${DISTNAME}
8 MASTER_SITES
= http
://forge.ocamlcore.org
/frs
/download.php
/891/
10 MAINTAINER
= jaapb@kerguelen.org
11 HOMEPAGE
= http
://forge.ocamlcore.org
/projects
/cryptokit
/
12 COMMENT
= Cryptographic primitives library for Objective Caml
13 LICENSE
= gnu-lgpl-v2
# with static compilation exception
16 CONFIGURE_ARGS
+= --destdir
"${DESTDIR}" --prefix "${PREFIX}"
21 SUBST_CLASSES
+= destdir
22 SUBST_STAGE.destdir
= post-configure
23 SUBST_MESSAGE.destdir
= Changing
install location to DESTDIR
24 SUBST_FILES.destdir
= setup.ml
25 SUBST_SED.destdir
= -e
's,"install" :: findlib_name,"install" :: "-destdir ${DESTDIR}${PREFIX}/lib/ocaml/site-lib" :: "-ldconf /dev/null" :: findlib_name,'
30 .if
(${MACHINE_ARCH} == "i386") ||
(${MACHINE_ARCH} == "powerpc") || \
31 (${MACHINE_ARCH} == "sparc") ||
(${MACHINE_ARCH} == "x86_64")
36 ${MKDIR} ${DESTDIR}/${PREFIX}/lib
/ocaml
/site-lib
38 .
include "../../devel/zlib/buildlink3.mk"
39 .
include "../../lang/ocaml/buildlink3.mk"
40 .
include "../../devel/ocaml-findlib/buildlink3.mk"
41 .
include "../../mk/bsd.pkg.mk"