diff options
author | Aaron Dalton <aaron@FreeBSD.org> | 2006-07-24 21:19:44 +0000 |
---|---|---|
committer | Aaron Dalton <aaron@FreeBSD.org> | 2006-07-24 21:19:44 +0000 |
commit | ed993d6b00f971acc8749647b38afdd65529c94b (patch) | |
tree | ba004cb9def3693b7b44f315e512d6d7eb5571d3 /databases/ocaml-sqlite3/files | |
parent | Remove traces of (the now removed) horde-php5 port. (diff) |
Adding port databases/ocaml-sqlite3, OCaml bindings for databases/sqlite3.
PR: ports/93920
Submitted by: Meikel Brandmeyer <ocaml-sqlite3-port@kotka.de>
Diffstat (limited to 'databases/ocaml-sqlite3/files')
-rw-r--r-- | databases/ocaml-sqlite3/files/patch-Makefile.in | 11 | ||||
-rw-r--r-- | databases/ocaml-sqlite3/files/patch-sqlite3_stubs.c | 13 | ||||
-rw-r--r-- | databases/ocaml-sqlite3/files/pkg-deinstall.in | 12 | ||||
-rw-r--r-- | databases/ocaml-sqlite3/files/pkg-install.in | 11 |
4 files changed, 47 insertions, 0 deletions
diff --git a/databases/ocaml-sqlite3/files/patch-Makefile.in b/databases/ocaml-sqlite3/files/patch-Makefile.in new file mode 100644 index 000000000000..e6c9f81bbb8a --- /dev/null +++ b/databases/ocaml-sqlite3/files/patch-Makefile.in @@ -0,0 +1,11 @@ +--- Makefile.in.orig Mon Feb 27 21:11:25 2006 ++++ Makefile.in Mon Feb 27 21:12:12 2006 +@@ -36,7 +36,7 @@ + install: sqlite3.cma sqlite3.cmxa sqlite3top + ocamlfind install sqlite3 META sqlite3.cmi sqlite3.mli sqlite3.cma *.cmxa *.a *.cmx *.so + ocamlfind ocamlmktop -o sqlite3top -package "sqlite3" sqlite3.cma +- $(INSTALL) sqlite3top $(bindir)/sqlite3top ++ $(INSTALL) sqlite3top $(bindir)/ocamlsqlite3 + + remove: uninstall + uninstall: diff --git a/databases/ocaml-sqlite3/files/patch-sqlite3_stubs.c b/databases/ocaml-sqlite3/files/patch-sqlite3_stubs.c new file mode 100644 index 000000000000..4daa6553c2ed --- /dev/null +++ b/databases/ocaml-sqlite3/files/patch-sqlite3_stubs.c @@ -0,0 +1,13 @@ +--- sqlite3_stubs.c.orig Mon Feb 27 20:51:46 2006 ++++ sqlite3_stubs.c Mon Feb 27 23:23:43 2006 +@@ -24,7 +24,10 @@ + + #include <stdio.h> + #include <string.h> ++/* FIXME: This should go into configure script. */ ++#if defined(HAVE_ALLOCA_H) + #include <alloca.h> ++#endif + + #include <caml/mlvalues.h> + #include <caml/memory.h> diff --git a/databases/ocaml-sqlite3/files/pkg-deinstall.in b/databases/ocaml-sqlite3/files/pkg-deinstall.in new file mode 100644 index 000000000000..d26108142739 --- /dev/null +++ b/databases/ocaml-sqlite3/files/pkg-deinstall.in @@ -0,0 +1,12 @@ +#! /bin/sh +# + +if [ "x$2" = "xPOST-DEINSTALL" ]; then + ldconf="%%PREFIX%%/lib/ocaml/ld.conf" + + cat ${ldconf} | grep -v sqlite3 > ${ldconf}.tmp + mv ${ldconf}.tmp ${ldconf} +fi + +exit 0 + diff --git a/databases/ocaml-sqlite3/files/pkg-install.in b/databases/ocaml-sqlite3/files/pkg-install.in new file mode 100644 index 000000000000..d5f7d26d2f47 --- /dev/null +++ b/databases/ocaml-sqlite3/files/pkg-install.in @@ -0,0 +1,11 @@ +#! /bin/sh +# + +if [ "x$2" = "xPOST-INSTALL" ]; then + ldconf="%%PREFIX%%/lib/ocaml/ld.conf" + + echo "%%PREFIX%%/lib/ocaml/site-lib/sqlite3" >> ${ldconf} +fi + +exit 0 + |