diff options
Diffstat (limited to 'textproc/ocaml-expat/Makefile')
-rw-r--r-- | textproc/ocaml-expat/Makefile | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/textproc/ocaml-expat/Makefile b/textproc/ocaml-expat/Makefile new file mode 100644 index 000000000000..596bc9a815a3 --- /dev/null +++ b/textproc/ocaml-expat/Makefile @@ -0,0 +1,44 @@ +# ex:ts=8 +# Ports collection makefile for: ocaml-expat +# Date created: Sept 15, 2004 +# Whom: Marwan Burelle <marwan.burelle@lri.fr +# +# $FreeBSD$ +# + +PORTNAME= ocaml-expat +PORTVERSION= 0.1.0 +CATEGORIES= textproc +MASTER_SITES= http://www.xs4all.nl/~mmzeeman/ocaml/ + +MAINTAINER= marwan.burelle@lri.fr +COMMENT= A stub for the expat parser in OCaml + +BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \ + ocamlfind:${PORTSDIR}/devel/ocaml-findlib +RUN_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \ + ocamlfind:${PORTSDIR}/devel/ocaml-findlib +LIB_DEPENDS= expat.5:${PORTSDIR}/textproc/expat2 + +USE_GMAKE= yes +ALL_TARGET= all allopt + +.if !defined(NOPORTDOCS) +ALL_TARGET+= doc +PORTDOCS= * +.endif + +PKGDEINSTALL= ${PKGINSTALL} + +post-install: + @${FIND} ${PREFIX}/lib/ocaml/site-lib/expat -type f | \ + ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} + @${ECHO_CMD} "@dirrm lib/ocaml/site-lib/expat" >> ${TMPPLIST} + @${ECHO_CMD} "@unexec ocamlfind remove expat 2>/dev/null || true" >> ${TMPPLIST} + PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${WRKSRC}/doc/*.css ${DOCSDIR} +.endif + +.include <bsd.port.mk> |