d723819d10
This update of ocaml-cryptokit to its newest version, 1.6. does not actually change anything in the functionality of the software. Upstream, the build system has changed, and there are also a few changes to the package (most notably, removal of the PLIST.opt in favour of the PLIST_VARS system)
42 lines
1.3 KiB
Makefile
42 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.2 2012/08/15 08:24:58 wiz Exp $
|
|
#
|
|
|
|
DISTNAME= cryptokit-1.6
|
|
PKGNAME= ocaml-${DISTNAME}
|
|
CATEGORIES= security
|
|
MASTER_SITES= http://forge.ocamlcore.org/frs/download.php/891/
|
|
|
|
MAINTAINER= jaapb@kerguelen.org
|
|
HOMEPAGE= http://forge.ocamlcore.org/projects/cryptokit/
|
|
COMMENT= Cryptographic primitives library for Objective Caml
|
|
LICENSE= gnu-lgpl-v2 # with static compilation exception
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --destdir "${DESTDIR}" --prefix "${PREFIX}"
|
|
|
|
USE_TOOLS+= gmake
|
|
PLIST_SRC= PLIST
|
|
|
|
SUBST_CLASSES+= destdir
|
|
SUBST_STAGE.destdir= post-configure
|
|
SUBST_MESSAGE.destdir= Changing install location to DESTDIR
|
|
SUBST_FILES.destdir= setup.ml
|
|
SUBST_SED.destdir= -e 's,"install" :: findlib_name,"install" :: "-destdir ${DESTDIR}${PREFIX}/lib/ocaml/site-lib" :: "-ldconf /dev/null" :: findlib_name,'
|
|
|
|
BUILD_TARGET= build
|
|
|
|
PLIST_VARS+= opt
|
|
.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
|
|
(${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64")
|
|
PLIST.opt= yes
|
|
.endif
|
|
|
|
pre-install:
|
|
${MKDIR} ${DESTDIR}/${PREFIX}/lib/ocaml/site-lib
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../lang/ocaml/buildlink3.mk"
|
|
.include "../../devel/ocaml-findlib/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|