math/ocaml-ocamlgraph: Fix finding via ocaml's ld.conf

Reviewed by:	feld, mat
Approved by:	feld, mat (mentors)
Differential Revision:	https://reviews.freebsd.org/D9790
This commit is contained in:
Mahdi Mokhtari 2017-03-04 04:16:16 +00:00
parent 5d6a1a1b92
commit afc009aa67
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=435382
2 changed files with 5 additions and 1 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= ocamlgraph
PORTVERSION= 1.8.7
PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= http://ocamlgraph.lri.fr/download/ \
ftp://ftp.stack.nl/pub/users/johans/ocamlgraph/
@ -24,9 +25,10 @@ USE_OCAML= yes
USE_OCAML_FINDLIB= yes
USE_OCAML_LDCONFIG= yes
USE_OCAMLFIND_PLIST= yes
OCAML_LDLIBS= ${OCAML_LIBDIR}/${PORTNAME}
GNU_CONFIGURE= yes
PLIST_SUB+= OCAMLGRAPHDIR="${OCAML_LIBDIR}/${PORTNAME}"
PLIST_SUB+= OCAMLGRAPHDIR="${OCAML_LDLIBS}"
ALL_TARGET= all
INSTALL_TARGET= install
@ -51,6 +53,7 @@ post-patch:
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/META ${STAGEDIR}${PREFIX}/${OCAML_LDLIBS}
.endif
.include <bsd.port.mk>

View file

@ -4,6 +4,7 @@
%%GUI%%bin/graph-editor.byte
%%GUI%%bin/graph-editor.opt
%%GUI%%bin/graph-editor
%%OCAMLGRAPHDIR%%/META
%%OCAMLGRAPHDIR%%/builder.mli
%%OCAMLGRAPHDIR%%/classic.mli
%%OCAMLGRAPHDIR%%/clique.mli