Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / security / ocaml-cryptokit / Makefile
blob98483f6ef6fd50c2634d155f326328e08bda0e5e
1 # $NetBSD: Makefile,v 1.3 2012/10/08 15:18:24 jaapb Exp $
4 DISTNAME= cryptokit-1.6
5 PKGNAME= ocaml-${DISTNAME}
6 PKGREVISION= 1
7 CATEGORIES= security
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
15 HAS_CONFIGURE= yes
16 CONFIGURE_ARGS+= --destdir "${DESTDIR}" --prefix "${PREFIX}"
18 USE_TOOLS+= gmake
19 PLIST_SRC= PLIST
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,'
27 BUILD_TARGET= build
29 PLIST_VARS+= opt
30 .if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
31 (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64")
32 PLIST.opt= yes
33 .endif
35 pre-install:
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"