2c44e6acd0
depends on the camlp4 language and labltk ocaml modules, which are now in separate ports. - Update x11-toolkits/ocaml-lablgtk2 to 2.18.3 - Update graphics/ocaml-lablgl to 1.05 - Make unison ports use USE_OCAML - Convert ports to the new flags where needed - Bump PORTREVISION on ports depending on ocaml-lablgtk2, those need to be rebuilt PR: 199845 Submitted by: jbeich@ Differential Revision: https://reviews.freebsd.org/D2434 Approved by: portmgr (mat)
57 lines
1.3 KiB
Makefile
57 lines
1.3 KiB
Makefile
# Created by: Joseph Koshy <jkoshy@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ocamlgraph
|
|
PORTVERSION= 1.8.6
|
|
PORTREVISION= 1
|
|
CATEGORIES= math
|
|
MASTER_SITES= http://ocamlgraph.lri.fr/download/ \
|
|
ftp://ftp.stack.nl/pub/users/johans/ocamlgraph/
|
|
PKGNAMEPREFIX= ocaml-
|
|
|
|
MAINTAINER= johans@FreeBSD.org
|
|
COMMENT= Graph manipulation library for OCaml
|
|
|
|
OPTIONS_DEFINE= GUI DOCS
|
|
OPTIONS_DEFAULT=GUI
|
|
OPTIONS_SUB= yes
|
|
GUI_DESC= Include GUI user programs: viewer and editor
|
|
GUI_BUILD_DEPENDS= lablgtk2:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2
|
|
GUI_RUN_DEPENDS= lablgtk2:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2
|
|
GUI_CONFIGURE_OFF= LABLGTK2=no
|
|
|
|
USES= gmake
|
|
USE_OCAML= yes
|
|
USE_OCAML_FINDLIB= yes
|
|
USE_OCAML_LDCONFIG= yes
|
|
USE_OCAMLFIND_PLIST= yes
|
|
GNU_CONFIGURE= yes
|
|
|
|
PLIST_SUB+= OCAMLGRAPHDIR="${OCAML_LIBDIR}/${PORTNAME}"
|
|
|
|
ALL_TARGET= all
|
|
INSTALL_TARGET= install
|
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
PORTSCOUT= skipv:1.81
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
ALL_TARGET+= doc
|
|
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME}
|
|
PORTDOCS= *
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/VIEWER_DIR. doc/d' ${WRKSRC}/Makefile.in
|
|
.if empty(PORT_OPTIONS:MGUI)
|
|
# Override auto-detection
|
|
@${REINPLACE_CMD} -Ee 's/(LABLGTK2)=yes/\1=no/' ${WRKSRC}/configure
|
|
.endif
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|