diff options
-rw-r--r-- | security/ocaml-cryptokit/Makefile | 12 | ||||
-rw-r--r-- | security/ocaml-cryptokit/pkg-plist | 22 |
2 files changed, 19 insertions, 15 deletions
diff --git a/security/ocaml-cryptokit/Makefile b/security/ocaml-cryptokit/Makefile index 74583c902b83..9a61c47179a0 100644 --- a/security/ocaml-cryptokit/Makefile +++ b/security/ocaml-cryptokit/Makefile @@ -7,15 +7,16 @@ PORTNAME= cryptokit PORTVERSION= 1.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security MASTER_SITES= http://caml.inria.fr/distrib/bazar-ocaml/ PKGNAMEPREFIX= ocaml- -MAINTAINER= ports@FreeBSD.org +MAINTAINER= Jaap.Boender@pps.jussieu.fr COMMENT= A variety of cryptographic primitives for Objective Caml -BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml +USE_OCAML= yes +USE_OCAML_LDCONFIG= yes ALL_TARGET= all allopt @@ -30,7 +31,7 @@ DOC_FILES= Changes LICENSE README post-configure: # CFLAGS,PREFIX safeness @${REINPLACE_CMD} -E -e \ - 's|^(INSTALLDIR).*$$|\1=${PREFIX}/lib/ocaml|; \ + 's|^(INSTALLDIR).*$$|\1=${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}|; \ s|^CFLAGS=|CFLAGS\+=|; \ s|(^CFLAGS.*)-O|\1|' \ ${WRKSRC}/Makefile @@ -42,7 +43,7 @@ pre-install: 's|cp |${INSTALL_DATA} |' \ ${WRKSRC}/Makefile # create installation dir - @${MKDIR} ${PREFIX}/lib/ocaml/stublibs + @${MKDIR} ${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}/stublibs post-install: .ifndef(NOPORTDOCS) @@ -52,6 +53,7 @@ post-install: @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} .endfor .endif + @${INSTALL_DATA} ${FILESDIR}/META ${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME} .include <bsd.port.pre.mk> diff --git a/security/ocaml-cryptokit/pkg-plist b/security/ocaml-cryptokit/pkg-plist index 340e5b406d84..6771c91a3851 100644 --- a/security/ocaml-cryptokit/pkg-plist +++ b/security/ocaml-cryptokit/pkg-plist @@ -1,10 +1,12 @@ -lib/ocaml/cryptokit.a -lib/ocaml/cryptokit.cma -lib/ocaml/cryptokit.cmi -lib/ocaml/cryptokit.cmx -lib/ocaml/cryptokit.cmxa -lib/ocaml/cryptokit.mli -lib/ocaml/libcryptokit.a -lib/ocaml/stublibs/dllcryptokit.so -@dirrmtry lib/ocaml/stublibs -@dirrmtry lib/ocaml +%%OCAML_SITELIBDIR%%/cryptokit/META +%%OCAML_SITELIBDIR%%/cryptokit/cryptokit.a +%%OCAML_SITELIBDIR%%/cryptokit/cryptokit.cma +%%OCAML_SITELIBDIR%%/cryptokit/cryptokit.cmi +%%OCAML_SITELIBDIR%%/cryptokit/cryptokit.cmx +%%OCAML_SITELIBDIR%%/cryptokit/cryptokit.cmxa +%%OCAML_SITELIBDIR%%/cryptokit/cryptokit.mli +%%OCAML_SITELIBDIR%%/cryptokit/libcryptokit.a +%%OCAML_SITELIBDIR%%/cryptokit/stublibs/dllcryptokit.so +@dirrmtry %%OCAML_SITELIBDIR%%/cryptokit/stublibs +@dirrmtry %%OCAML_SITELIBDIR%%/cryptokit +@dirrmtry %%OCAML_SITELIBDIR%% |