mirror of
https://git.freebsd.org/ports.git
synced 2025-06-05 21:00:30 -04:00
Camlp4 is a software system for writing extensible parsers for programming languages. It provides a set of OCaml libraries that are used to define grammars as well as loadable syntax extensions of such grammars. Camlp4 stands for Caml Preprocessor and Pretty-Printer and one of its most important applications is the definition of domain-specific extensions of the syntax of OCaml. Camlp4 was part of the official OCaml distribution until its version 4.01.0. Since then it has been replaced by a simpler system which is easier to maintain and to learn: ppx rewriters and extension points. WWW: https://github.com/ocaml/camlp4 PR: 195773 Submitted by: Michael Grünewald <michipili@gmail.com>
18 lines
500 B
Text
18 lines
500 B
Text
--- Makefile.orig 2014-10-21 11:41:15 UTC
|
|
+++ Makefile
|
|
@@ -19,12 +19,12 @@ all: byte native
|
|
|
|
.PHONY: install
|
|
install:
|
|
- ./build/install.sh
|
|
+ env LIBDIR=$(LIBDIR) BINDIR=$(BINDIR) DESTDIR=$(DESTDIR) ./build/install.sh
|
|
|
|
.PHONY: install-META
|
|
install-META: camlp4/META
|
|
- mkdir -p ${PKGDIR}/camlp4/
|
|
- cp -f camlp4/META ${PKGDIR}/camlp4/
|
|
+ mkdir -p ${DESTDIR}${PKGDIR}/camlp4/
|
|
+ cp -f camlp4/META ${DESTDIR}${PKGDIR}/camlp4/
|
|
|
|
camlp4/META: camlp4/META.in
|
|
sed -e s/@@VERSION@@/${version}/g $? > $@
|