diff options
author | antoine <antoine@FreeBSD.org> | 2014-03-27 06:36:46 +0800 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2014-03-27 06:36:46 +0800 |
commit | e7c8796d437aac5d146335a83bca1dadb9a25c6d (patch) | |
tree | 3cd974bf825389ae8ea942d466373c852a29b36d /security | |
parent | f49c0faa7a1455f141e4f469c356f23438301e2a (diff) | |
download | freebsd-ports-gnome-e7c8796d437aac5d146335a83bca1dadb9a25c6d.tar.gz freebsd-ports-gnome-e7c8796d437aac5d146335a83bca1dadb9a25c6d.tar.zst freebsd-ports-gnome-e7c8796d437aac5d146335a83bca1dadb9a25c6d.zip |
- Stage support
- Use USE_OCAMLFIND_PLIST instead of doing it manually
Diffstat (limited to 'security')
-rw-r--r-- | security/ocaml-cryptgps/Makefile | 34 |
1 files changed, 9 insertions, 25 deletions
diff --git a/security/ocaml-cryptgps/Makefile b/security/ocaml-cryptgps/Makefile index 65827ace1416..96f198a10f3c 100644 --- a/security/ocaml-cryptgps/Makefile +++ b/security/ocaml-cryptgps/Makefile @@ -14,36 +14,20 @@ COMMENT= Symmetric cryptographic algorithms package for OCaml LICENSE= MIT WRKSRC= ${WRKDIR}/${PORTNAME} -USE_GMAKE= yes +USES= gmake USE_OCAML= yes -USE_OCAML_FINDLIB=yes +USE_OCAML_FINDLIB= yes +USE_OCAMLFIND_PLIST= yes ALL_TARGET= all opt -MASTERPORT= ${PORTSDIR}/devel/ocaml-camlidl -.if !defined(NOPORTDOCS) PORTDOCS= * -DOCSDIR= ${PREFIX}/share/doc/ocaml/${PORTNAME} -.endif +DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME} -NO_STAGE= yes -.include <bsd.port.pre.mk> - -post-extract: -# For nonstandard prefixes -.if !exists(${OCAMLFIND_DESTDIR}) - ${MKDIR} ${OCAMLFIND_DESTDIR} -.endif -.if !exists(${OCAMLFIND_LDCONF}) - ${TOUCH} ${OCAMLFIND_LDCONF} -.endif +OPTIONS_DEFINE= DOCS post-install: - @${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \ - ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} -.endif - -.include <bsd.port.post.mk> + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + +.include <bsd.port.mk> |