1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/math/ocaml-ocamlgraph/Makefile
2021-04-29 11:22:35 -07:00

52 lines
1.1 KiB
Makefile

# Created by: Joseph Koshy <jkoshy@FreeBSD.org>
PORTNAME= ocamlgraph
PORTVERSION= 1.8.8
CATEGORIES= math
MASTER_SITES= http://ocamlgraph.lri.fr/download/ \
ftp://ftp.stack.nl/pub/users/johans/ocamlgraph/
PKGNAMEPREFIX= ocaml-
MAINTAINER= ports@FreeBSD.org
COMMENT= Graph manipulation library for OCaml
USES= gmake
USE_OCAML= yes
USE_OCAML_FINDLIB= yes
USE_OCAML_LDCONFIG= yes
USE_OCAMLFIND_PLIST= yes
OCAML_LDLIBS= ${OCAML_LIBDIR}/${PORTNAME}
GNU_CONFIGURE= yes
ALL_TARGET= all
INSTALL_TARGET= install
MAKE_JOBS_UNSAFE= yes
PORTSCOUT= skipv:1.81
PLIST_SUB= OCAMLGRAPHDIR="${OCAML_LDLIBS}"
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME}
PORTDOCS= *
OPTIONS_DEFINE= DOCS
OPTIONS_SUB= yes
DOCS_ALL_TARGET= doc
post-patch-DOCS-on:
@${REINPLACE_CMD} -e '/VIEWER_DIR. doc/d' ${WRKSRC}/Makefile.in
post-patch:
# Override auto-detection
@${REINPLACE_CMD} -Ee 's/(LABLGTK2)=yes/\1=no/' ${WRKSRC}/configure
post-install:
${INSTALL_DATA} ${WRKSRC}/META ${STAGEDIR}${PREFIX}/${OCAML_LDLIBS}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>