2013-09-20 22:55:04 +02:00
|
|
|
# Created by: Joseph Koshy <jkoshy@FreeBSD.org>
|
2004-05-28 04:29:40 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ocamlgraph
|
2016-04-26 22:49:08 +02:00
|
|
|
PORTVERSION= 1.8.7
|
2017-07-06 11:00:21 +02:00
|
|
|
PORTREVISION= 2
|
2004-05-28 04:29:40 +02:00
|
|
|
CATEGORIES= math
|
2013-06-14 07:12:34 +02:00
|
|
|
MASTER_SITES= http://ocamlgraph.lri.fr/download/ \
|
|
|
|
ftp://ftp.stack.nl/pub/users/johans/ocamlgraph/
|
2004-05-28 04:29:40 +02:00
|
|
|
PKGNAMEPREFIX= ocaml-
|
|
|
|
|
2016-12-14 22:48:10 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-05-28 04:29:40 +02:00
|
|
|
COMMENT= Graph manipulation library for OCaml
|
|
|
|
|
2014-05-05 22:59:40 +02:00
|
|
|
USES= gmake
|
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
|
2017-03-04 05:16:16 +01:00
|
|
|
OCAML_LDLIBS= ${OCAML_LIBDIR}/${PORTNAME}
|
2009-06-26 14:32:44 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2008-06-22 19:13:25 +02:00
|
|
|
|
2004-05-28 04:29:40 +02:00
|
|
|
ALL_TARGET= all
|
2015-01-24 20:01:55 +01:00
|
|
|
INSTALL_TARGET= install
|
2004-05-28 04:29:40 +02:00
|
|
|
|
2013-03-05 21:22:02 +01:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2015-01-24 20:01:55 +01:00
|
|
|
PORTSCOUT= skipv:1.81
|
2013-03-05 21:22:02 +01:00
|
|
|
|
2017-07-06 11:00:21 +02:00
|
|
|
PLIST_SUB= OCAMLGRAPHDIR="${OCAML_LDLIBS}"
|
2012-06-16 22:28:03 +02:00
|
|
|
|
2014-05-05 22:59:40 +02:00
|
|
|
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME}
|
2009-06-26 14:38:45 +02:00
|
|
|
PORTDOCS= *
|
|
|
|
|
2017-07-06 11:00:21 +02:00
|
|
|
OPTIONS_DEFINE= GUI DOCS
|
|
|
|
OPTIONS_DEFAULT=GUI
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
GUI_DESC= Include GUI user programs: viewer and editor
|
|
|
|
GUI_BUILD_DEPENDS= lablgtk2:x11-toolkits/ocaml-lablgtk2
|
|
|
|
GUI_RUN_DEPENDS= lablgtk2:x11-toolkits/ocaml-lablgtk2
|
|
|
|
GUI_CONFIGURE_OFF= LABLGTK2=no
|
|
|
|
|
|
|
|
DOCS_ALL_TARGET= doc
|
|
|
|
|
|
|
|
post-patch-DOCS-on:
|
2008-10-20 22:19:25 +02:00
|
|
|
@${REINPLACE_CMD} -e '/VIEWER_DIR. doc/d' ${WRKSRC}/Makefile.in
|
2017-07-06 11:00:21 +02:00
|
|
|
|
|
|
|
post-patch-GUI-off:
|
2012-06-16 22:28:03 +02:00
|
|
|
# Override auto-detection
|
|
|
|
@${REINPLACE_CMD} -Ee 's/(LABLGTK2)=yes/\1=no/' ${WRKSRC}/configure
|
2008-10-20 22:19:25 +02:00
|
|
|
|
2004-05-28 04:29:40 +02:00
|
|
|
post-install:
|
2017-03-04 05:16:16 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/META ${STAGEDIR}${PREFIX}/${OCAML_LDLIBS}
|
2017-07-06 11:00:21 +02:00
|
|
|
|
|
|
|
post-install-DOCS-on:
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
|
2004-05-28 04:29:40 +02:00
|
|
|
|
2012-06-16 22:28:03 +02:00
|
|
|
.include <bsd.port.mk>
|