diff options
author | wiz <wiz@pkgsrc.org> | 2012-05-14 09:20:39 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2012-05-14 09:20:39 +0000 |
commit | f0bc91491d9639b5bbc6ab98b16705930baed7d3 (patch) | |
tree | 37cf53c7846f9b73e8d19daf52963fb45f2292f0 | |
parent | 35b8db07a87db7ae10064190132839454aebc5a3 (diff) | |
download | pkgsrc-f0bc91491d9639b5bbc6ab98b16705930baed7d3.tar.gz |
Initial import of ocaml-sqlite3-1.6.1, packaged by Jaap Boender in
PR 41690.
This package contains is an OCaml database library wrapper for
SQLite.
-rw-r--r-- | databases/ocaml-sqlite3/DESCR | 2 | ||||
-rw-r--r-- | databases/ocaml-sqlite3/Makefile | 37 | ||||
-rw-r--r-- | databases/ocaml-sqlite3/PLIST | 10 | ||||
-rw-r--r-- | databases/ocaml-sqlite3/PLIST.opt | 5 | ||||
-rw-r--r-- | databases/ocaml-sqlite3/distinfo | 8 | ||||
-rw-r--r-- | databases/ocaml-sqlite3/patches/patch-Makefile.in | 41 | ||||
-rw-r--r-- | databases/ocaml-sqlite3/patches/patch-configure.ac | 14 | ||||
-rw-r--r-- | databases/ocaml-sqlite3/patches/patch-sqlite3_stubs.c | 14 |
8 files changed, 131 insertions, 0 deletions
diff --git a/databases/ocaml-sqlite3/DESCR b/databases/ocaml-sqlite3/DESCR new file mode 100644 index 00000000000..31ef60cf9f5 --- /dev/null +++ b/databases/ocaml-sqlite3/DESCR @@ -0,0 +1,2 @@ +This package contains is an OCaml database library wrapper for +SQLite. diff --git a/databases/ocaml-sqlite3/Makefile b/databases/ocaml-sqlite3/Makefile new file mode 100644 index 00000000000..82e0ffdf467 --- /dev/null +++ b/databases/ocaml-sqlite3/Makefile @@ -0,0 +1,37 @@ +# $NetBSD: Makefile,v 1.1.1.1 2012/05/14 09:20:39 wiz Exp $ +# + +DISTNAME= ocaml-sqlite3-1.6.1 +CATEGORIES= databases +MASTER_SITES= http://www.ocaml.info/ocaml_sources/ + +MAINTAINER= jaapb@kerguelen.org +HOMEPAGE= http://www.ocaml.info/home/ocaml_sources.html +COMMENT= Sqlite bindings for OCaml +LICENSE= mit + +PKG_DESTDIR_SUPPORT= user-destdir + +DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib + +GNU_CONFIGURE= yes +USE_TOOLS+= gmake autoconf +BUILD_TARGET= docs bytecode + +MAKE_ENV+= OCAML_SITELIBDIR="${PREFIX}/lib/ocaml/site-lib" +MAKE_JOBS_SAFE= no + +.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \ + (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64") +PLIST_SRC+= PLIST.opt +BUILD_TARGET+= opt sqlite3.cmxs +.endif + +PLIST_SRC+= PLIST + +pre-configure: + cd ${WRKSRC} && autoconf + +.include "../../lang/ocaml/buildlink3.mk" +.include "../../databases/sqlite3/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/databases/ocaml-sqlite3/PLIST b/databases/ocaml-sqlite3/PLIST new file mode 100644 index 00000000000..b8f6ecdc2a9 --- /dev/null +++ b/databases/ocaml-sqlite3/PLIST @@ -0,0 +1,10 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2012/05/14 09:20:39 wiz Exp $ +@unexec %D/libexec/ocaml-findlib-register del %D/lib/ocaml/site-lib/sqlite3 +bin/sqlite3top +lib/ocaml/site-lib/sqlite3/META +lib/ocaml/site-lib/sqlite3/dllsqlite3_stubs.so +lib/ocaml/site-lib/sqlite3/libsqlite3_stubs.a +lib/ocaml/site-lib/sqlite3/sqlite3.cma +lib/ocaml/site-lib/sqlite3/sqlite3.cmi +lib/ocaml/site-lib/sqlite3/sqlite3.mli +@exec %D/libexec/ocaml-findlib-register add %D/lib/ocaml/site-lib/sqlite3 diff --git a/databases/ocaml-sqlite3/PLIST.opt b/databases/ocaml-sqlite3/PLIST.opt new file mode 100644 index 00000000000..560738852bd --- /dev/null +++ b/databases/ocaml-sqlite3/PLIST.opt @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST.opt,v 1.1.1.1 2012/05/14 09:20:39 wiz Exp $ +lib/ocaml/site-lib/sqlite3/sqlite3.a +lib/ocaml/site-lib/sqlite3/sqlite3.cmx +lib/ocaml/site-lib/sqlite3/sqlite3.cmxa +lib/ocaml/site-lib/sqlite3/sqlite3.cmxs diff --git a/databases/ocaml-sqlite3/distinfo b/databases/ocaml-sqlite3/distinfo new file mode 100644 index 00000000000..ea263d02122 --- /dev/null +++ b/databases/ocaml-sqlite3/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2012/05/14 09:20:39 wiz Exp $ + +SHA1 (ocaml-sqlite3-1.6.1.tar.gz) = 1f67e2bd80907a755ac5689fc466020f5f2c394c +RMD160 (ocaml-sqlite3-1.6.1.tar.gz) = dbfdb928041fdb8ccaac8f1d14223124d6bfe8ec +Size (ocaml-sqlite3-1.6.1.tar.gz) = 59073 bytes +SHA1 (patch-Makefile.in) = 4c60faa5c9e0e2b5ae55d6fc96d63a12fac369bd +SHA1 (patch-configure.ac) = 18f762288c41c4e23cfc263108b20339ff9179cb +SHA1 (patch-sqlite3_stubs.c) = 1ec65d01c5119e36be1431da9d57b49fc25ef4ff diff --git a/databases/ocaml-sqlite3/patches/patch-Makefile.in b/databases/ocaml-sqlite3/patches/patch-Makefile.in new file mode 100644 index 00000000000..55aa525263c --- /dev/null +++ b/databases/ocaml-sqlite3/patches/patch-Makefile.in @@ -0,0 +1,41 @@ +$NetBSD: patch-Makefile.in,v 1.1.1.1 2012/05/14 09:20:39 wiz Exp $ + +change install procedure for DESTDIR, and build cmxs for dynamic linking +--- Makefile.in.orig 2011-03-10 17:47:28.000000000 +0000 ++++ Makefile.in +@@ -37,18 +37,20 @@ test: bytecode opt + + clean: + @cd test && $(MAKE) clean +- rm -f *.o *.cmo *.cmx *.cmi *.so *.cma *.cmxa *.a sqlite3top ++ rm -f *.o *.cmo *.cmx *.cmi *.so *.cma *.cmxa *.cmxs *.a sqlite3top + + distclean: clean + rm -rf autom4te.* config.* META Makefile doc + + # install rebuilds sqlite3top to point to the findlib-managed dll and not the + # one in . +-install: sqlite3.cma sqlite3.cmxa sqlite3top ++install: sqlite3.cma sqlite3top ++ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${OCAML_SITELIBDIR} + [ -f *.so ] && SO_FILES=*.so; \ +- ocamlfind install sqlite3 META sqlite3.cmi sqlite3.mli sqlite3.cma *.cmxa *.a *.cmx $$SO_FILES +- ocamlfind ocamlmktop -o sqlite3top -package "sqlite3" sqlite3.cma +- $(INSTALL) sqlite3top $(bindir)/sqlite3top ++ ocamlfind install -ldconf /dev/null -destdir ${DESTDIR}${OCAML_SITELIBDIR} -optional sqlite3 META sqlite3.cmi sqlite3.mli sqlite3.cma *.cmxa *.cmxs *.a *.cmx $$SO_FILES ++ OCAMLPATH="${DESTDIR}${OCAML_SITELIBDIR}" ocamlfind ocamlmktop -o sqlite3top -package "sqlite3" sqlite3.cma ++ ${BSD_INSTALL_SCRIPT_DIR} ${DESTDIR}$(bindir) ++ ${BSD_INSTALL_SCRIPT} sqlite3top ${DESTDIR}$(bindir)/sqlite3top + + remove: uninstall + uninstall: +@@ -68,6 +70,9 @@ sqlite3.cma: sqlite3.cmo sqlite3_stubs.o + sqlite3.cmxa: sqlite3.cmx sqlite3.o sqlite3_stubs.o + ocamlmklib -o sqlite3 -oc sqlite3_stubs sqlite3.cmx sqlite3_stubs.o -L. $(LDFLAGS) $(LIBS) $(MKLIBFLAGS) + ++sqlite3.cmxs: sqlite3.cmxa ++ ocamlopt -linkall -shared -o sqlite3.cmxs sqlite3.cmxa ++ + sqlite3.cmo: sqlite3.cmi sqlite3.ml + + .SUFFIXES: .ml .mli .cmo .cmi .cmx diff --git a/databases/ocaml-sqlite3/patches/patch-configure.ac b/databases/ocaml-sqlite3/patches/patch-configure.ac new file mode 100644 index 00000000000..9c6af0ca0f4 --- /dev/null +++ b/databases/ocaml-sqlite3/patches/patch-configure.ac @@ -0,0 +1,14 @@ +$NetBSD: patch-configure.ac,v 1.1.1.1 2012/05/14 09:20:39 wiz Exp $ + +disable linking to libdl which is not used +--- configure.ac.orig 2010-12-20 05:13:10.000000000 +0000 ++++ configure.ac +@@ -26,7 +26,7 @@ AC_ARG_WITH( + AC_CHECKING(for sqlite3 library) + AC_CHECK_LIB( + sqlite3, sqlite3_open,, +- AC_ERROR([SQLite is required. See the --with-sqlite3 configure option.]), -ldl) ++ AC_ERROR([SQLite is required. See the --with-sqlite3 configure option.])) + + AC_CHECKING(for Sqlite header files) + AC_CHECK_HEADER(sqlite3.h,, diff --git a/databases/ocaml-sqlite3/patches/patch-sqlite3_stubs.c b/databases/ocaml-sqlite3/patches/patch-sqlite3_stubs.c new file mode 100644 index 00000000000..cd9d7fd9c0f --- /dev/null +++ b/databases/ocaml-sqlite3/patches/patch-sqlite3_stubs.c @@ -0,0 +1,14 @@ +$NetBSD: patch-sqlite3_stubs.c,v 1.1.1.1 2012/05/14 09:20:39 wiz Exp $ + +unused definition for FreeBSD works on NetBSD too +--- sqlite3_stubs.c.orig 2008-04-13 14:26:56.000000000 +0200 ++++ sqlite3_stubs.c 2008-04-13 14:27:35.000000000 +0200 +@@ -40,7 +40,7 @@ + + #if __GNUC__ >= 3 + # define inline inline __attribute__ ((always_inline)) +-# if !defined(__FreeBSD__) && !__APPLE__ ++# if !defined(__FreeBSD__) && !defined(__NetBSD__) && !__APPLE__ + # define __unused __attribute__ ((unused)) + # endif + #else |