diff options
author | Antoine Brodin <antoine@FreeBSD.org> | 2014-03-26 20:35:55 +0000 |
---|---|---|
committer | Antoine Brodin <antoine@FreeBSD.org> | 2014-03-26 20:35:55 +0000 |
commit | e27d4b019c30b435eb83cad859dfc284307291cd (patch) | |
tree | 53ef077d86dacc51bc5efb0ae70950272a901842 /archivers/ocaml-zip | |
parent | 4cef51f686462a112ecb614312f7b4dee0d132d0 (diff) |
Notes
Diffstat (limited to 'archivers/ocaml-zip')
-rw-r--r-- | archivers/ocaml-zip/Makefile | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/archivers/ocaml-zip/Makefile b/archivers/ocaml-zip/Makefile index e4e253b25a82..3cf020afe084 100644 --- a/archivers/ocaml-zip/Makefile +++ b/archivers/ocaml-zip/Makefile @@ -16,36 +16,22 @@ USE_OCAML= yes USE_OCAML_LDCONFIG=yes USE_OCAML_WASH= yes -NO_STAGE= yes - ALL_TARGET= all allopt INSTALL_TARGET= install installopt -MASTERPORT= ${PORTSDIR}/devel/ocaml-camlidl PATTERN= ([[:space:]]*)cp([[:space:]]+.*) -.include <bsd.port.pre.mk> - post-extract: # PREFIX, CFLAGS and permissions safeness @${REINPLACE_CMD} -E \ -e "s,${PATTERN},\1\$${BSD_INSTALL_DATA}\2," \ -e "s,(-ccopt[[:space:]])-g,\1\"${CFLAGS}\"," \ - -e "s,^(INSTALLDIR=).*,\1${OCAMLFIND_DESTDIR}/zip," \ + -e "s,^(INSTALLDIR=).*,\1${STAGEDIR}${OCAMLFIND_DESTDIR}/zip," \ -e "/ldconf/d" ${WRKSRC}/Makefile -pre-install: -# For nonstandard prefixes -.if !exists(${OCAMLFIND_DESTDIR}) - ${MKDIR} ${OCAMLFIND_DESTDIR} -.endif -.if !exists(${OCAMLFIND_LDCONF}) - ${TOUCH} ${OCAMLFIND_LDCONF} -.endif - post-install: - @${INSTALL_DATA} ${FILESDIR}/META ${OCAMLFIND_DESTDIR}/${PORTNAME} - @${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \ - ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} + ${INSTALL_DATA} ${FILESDIR}/META ${STAGEDIR}${OCAMLFIND_DESTDIR}/${PORTNAME} + @${FIND} ${STAGEDIR}${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \ + ${SED} "s,^${STAGEDIR}${PREFIX}/,," >> ${TMPPLIST} @${ECHO_CMD} "@dirrm ${OCAML_SITELIBDIR}/${PORTNAME}" >> ${TMPPLIST} -.include <bsd.port.post.mk> +.include <bsd.port.mk> |