diff options
Diffstat (limited to 'textproc/ocaml-csv/files/patch-Makefile')
-rw-r--r-- | textproc/ocaml-csv/files/patch-Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/textproc/ocaml-csv/files/patch-Makefile b/textproc/ocaml-csv/files/patch-Makefile new file mode 100644 index 000000000000..72502f216806 --- /dev/null +++ b/textproc/ocaml-csv/files/patch-Makefile @@ -0,0 +1,39 @@ +--- Makefile.orig 2007-12-17 17:56:16.458954606 -0500 ++++ Makefile 2007-12-17 17:54:34.177261751 -0500 +@@ -5,11 +5,11 @@ + # To enable support for Extlib, also uncomment 'open ExtList' at the top + # of file csv.ml. + +-OCAMLCINCS := +-#OCAMLCINCS := -package extlib ++#OCAMLCINCS := ++OCAMLCINCS := -package extlib + OCAMLCFLAGS := -g +-OCAMLCLIBS := +-#OCAMLCLIBS := -linkpkg ++#OCAMLCLIBS := ++OCAMLCLIBS := -linkpkg + + OCAMLOPTINCS := $(OCAMLCINCS) + OCAMLOPTFLAGS := +@@ -23,6 +23,20 @@ + + all: csv.cma csv.cmxa example csvtool + ++## The install and META targets were borrowed from Richard W.M. Jones' RPM patch ++install: all META ++ ocamlfind install csv META *.mli $(wildcard *.a) csv.cmi $(wildcard csv.cmx) *.cma $(wildcard *.cmxa) ++# install csvtool ${DESTDIR}${BINDIR} ++ ++META: ++ rm -f $@ ++ echo 'version="${VERSION}"' >> $@ ++ echo 'description="CSV library"' >> $@ ++ echo 'archive(byte)="csv.cma"' >> $@ ++ echo 'archive(native)="csv.cmxa"' >> $@ ++ echo 'requires="extlib"' >> $@ ++ ++ + csv.cma: $(OBJS) + ocamlfind ocamlc $(OCAMLCINCS) $(OCAMLCFLAGS) -a -o $@ $^ + |