2013-03-05 21:22:02 +01:00
|
|
|
# Created by: Joseph Koshy <jkoshy@freebsd.org>
|
2004-05-28 04:29:40 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ocamlgraph
|
2012-06-16 22:28:03 +02:00
|
|
|
PORTVERSION= 1.8.2
|
2013-03-05 21:22:02 +01:00
|
|
|
PORTREVISION= 1
|
2004-05-28 04:29:40 +02:00
|
|
|
CATEGORIES= math
|
2008-06-22 19:13:25 +02:00
|
|
|
MASTER_SITES= http://ocamlgraph.lri.fr/download/
|
2004-05-28 04:29:40 +02:00
|
|
|
PKGNAMEPREFIX= ocaml-
|
|
|
|
|
2010-02-23 19:07:14 +01:00
|
|
|
MAINTAINER= johans@FreeBSD.org
|
2004-05-28 04:29:40 +02:00
|
|
|
COMMENT= Graph manipulation library for OCaml
|
|
|
|
|
2012-06-16 22:28:03 +02:00
|
|
|
OPTIONS_DEFINE= GUI
|
|
|
|
OPTIONS_DEFAULT=GUI
|
|
|
|
GUI_DESC= Include GUI user programs: viewer and editor
|
2009-06-26 14:32:44 +02:00
|
|
|
|
2008-06-22 19:13:25 +02:00
|
|
|
USE_OCAML= yes
|
2009-06-26 14:32:44 +02:00
|
|
|
USE_OCAML_FINDLIB= yes
|
2008-06-22 19:13:25 +02:00
|
|
|
USE_OCAML_LDCONFIG= yes
|
2010-10-15 17:15:49 +02:00
|
|
|
USE_OCAMLFIND_PLIST= yes
|
2004-05-28 04:29:40 +02:00
|
|
|
USE_GMAKE= yes
|
2009-06-26 14:32:44 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2008-06-22 19:13:25 +02:00
|
|
|
|
2009-10-04 21:03:33 +02:00
|
|
|
PLIST_SUB+= OCAMLGRAPHDIR="${OCAML_LIBDIR}/${PORTNAME}"
|
2004-05-28 04:29:40 +02:00
|
|
|
|
|
|
|
ALL_TARGET= all
|
2010-10-15 17:15:49 +02:00
|
|
|
INSTALL_TARGET= install install-findlib
|
2004-05-28 04:29:40 +02:00
|
|
|
|
2013-03-05 21:22:02 +01:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
|
2012-06-16 22:28:03 +02:00
|
|
|
PORTSCOUT= skipv:1.81
|
2009-06-26 14:32:44 +02:00
|
|
|
|
2012-06-16 22:28:03 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MGUI}
|
2009-06-26 14:32:44 +02:00
|
|
|
BUILD_DEPENDS+= lablgtk2:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2
|
|
|
|
RUN_DEPENDS+= lablgtk2:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2
|
|
|
|
PLIST_SUB+= GUI=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= LABLGTK2=no
|
|
|
|
PLIST_SUB+= GUI="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-16 22:28:03 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2009-06-26 14:38:45 +02:00
|
|
|
ALL_TARGET+= doc
|
|
|
|
PORTDOCS= *
|
|
|
|
|
2008-10-20 22:19:25 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '/VIEWER_DIR. doc/d' ${WRKSRC}/Makefile.in
|
2012-06-16 22:28:03 +02:00
|
|
|
.if empty(PORT_OPTIONS:MGUI)
|
|
|
|
# Override auto-detection
|
|
|
|
@${REINPLACE_CMD} -Ee 's/(LABLGTK2)=yes/\1=no/' ${WRKSRC}/configure
|
2013-03-05 21:22:02 +01:00
|
|
|
.else
|
|
|
|
@${REINPLACE_CMD} -Ee 's@(\+|/)(lablgtk2)@\1site-lib/\2@' \
|
|
|
|
${WRKSRC}/configure \
|
|
|
|
${WRKSRC}/view_graph/Makefile
|
2012-06-16 22:28:03 +02:00
|
|
|
.endif
|
2008-10-20 22:19:25 +02:00
|
|
|
|
2004-05-28 04:29:40 +02:00
|
|
|
post-install:
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC}/doc; ${INSTALL_DATA} * ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
2012-06-16 22:28:03 +02:00
|
|
|
.include <bsd.port.mk>
|