freebsd-ports/devel/menhir/files/patch-Makefile
Martin Wilke 94b3d16759 Menhir is a LR(1) parser generator for the OCaml programming language.
It is 90% compatible to ocamlyacc (included with the OCaml distribution), and
it has some advantages over ocamlyacc, such as limited EBNF support, LR(1)
generation instead of LALR(1), better conflict explanation and production of
reentrant parsers (amongst others).

WWW: http://cristal.inria.fr/~fpottier/menhir

PR:		ports/109910
Submitted by:	Jaap Boender <jaapb at kerguelen.org>
2007-03-06 19:17:44 +00:00

24 lines
800 B
Text

--- Makefile.orig Thu Feb 15 11:03:08 2007
+++ Makefile Mon Mar 5 12:25:21 2007
@@ -50,9 +50,9 @@
EXECUTABLE := menhir
bindir := ${PREFIX}/bin
-docdir := ${PREFIX}/share/doc/$(EXECUTABLE)
-libdir := ${PREFIX}/share/$(EXECUTABLE)
-mandir := ${PREFIX}/share/man/man1
+docdir := ${DOCSDIR}
+libdir := ${OCAML_SITELIBDIR}/${EXECUTABLE}
+mandir := ${PREFIX}/man/man1
MANS := menhir.1
DOCS := manual.pdf demos
LIBS := standard.mly
@@ -75,7 +75,7 @@
# during bootstrap stage one.
stdlib.ml:
- echo "let path = \"${PREFIX}/share/menhir\"" > stdlib.ml
+ echo "let path = \"${OCAML_SITELIBDIR}/menhir\"" > stdlib.ml
# ----------------------------------------------------------------------------
# Installation.