mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
3d36cd46d3
interface files (.cmi) are not backward compatible with a newer ocaml version. PR: ports/156195 Suggested by: mandree
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
# 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.9.1
|
|
PORTREVISION= 3
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= http://www.xs4all.nl/~mmzeeman/ocaml/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
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.6:${PORTSDIR}/textproc/expat2
|
|
|
|
USE_GMAKE= yes
|
|
MAKE_ARGS= EXPAT_LIBDIR=${LOCALBASE}/lib \
|
|
EXPAT_INCDIR=${LOCALBASE}/include \
|
|
CAML_INCDIR=${LOCALBASE}/lib/ocaml
|
|
|
|
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/* ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|