1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/math/ocaml-ocamlgraph/Makefile
Johan van Selst d928c32364 - Update to 1.3
- Now installs more files, in its own subdirectory
2009-10-04 19:03:33 +00:00

53 lines
1.1 KiB
Makefile

# New ports collection makefile for: ocaml-ocamlgraph
# Date created: 25 May 2004
# Whom: Joseph Koshy <jkoshy@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= ocamlgraph
PORTVERSION= 1.3
CATEGORIES= math
MASTER_SITES= http://ocamlgraph.lri.fr/download/
PKGNAMEPREFIX= ocaml-
MAINTAINER= johans@stack.nl
COMMENT= Graph manipulation library for OCaml
OPTIONS= GUI "Include user programs: viewer and editor" off
USE_OCAML= yes
USE_OCAML_FINDLIB= yes
USE_OCAML_LDCONFIG= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
PLIST_SUB+= OCAMLGRAPHDIR="${OCAML_LIBDIR}/${PORTNAME}"
ALL_TARGET= all
.include <bsd.port.pre.mk>
.ifdef WITH_GUI
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
.ifndef NOPORTDOCS
ALL_TARGET+= doc
PORTDOCS= *
post-patch:
@${REINPLACE_CMD} -e '/VIEWER_DIR. doc/d' ${WRKSRC}/Makefile.in
post-install:
${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/doc; ${INSTALL_DATA} * ${DOCSDIR}
.endif
.include <bsd.port.post.mk>