Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
This package contains is an OCaml database library wrapper for
SQLite.

View File

@@ -0,0 +1,46 @@
# $NetBSD: Makefile,v 1.8 2013/06/15 19:18:00 jaapb Exp $
#
PKGNAME= ocaml-sqlite3-${VERSION}
DISTNAME= sqlite3-ocaml-${VERSION}
VERSION= 2.0.4
CATEGORIES= databases
MASTER_SITES= https://bitbucket.org/mmottl/sqlite3-ocaml/downloads/
FETCH_USING= curl
MAINTAINER= jaapb@NetBSD.org
HOMEPAGE= https://bitbucket.org/mmottl/sqlite3-ocaml/
COMMENT= Sqlite bindings for OCaml
LICENSE= mit
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= --destdir "${DESTDIR}" --prefix "${PREFIX}"
USE_TOOLS+= gmake pkg-config
USE_LANGUAGES= c
SUBST_CLASSES+= destdir
SUBST_STAGE.destdir= post-configure
SUBST_MESSAGE.destdir= Changing install location to DESTDIR
SUBST_FILES.destdir= setup.ml
SUBST_SED.destdir= -e 's,"install" :: findlib_name,"install" :: "-destdir ${DESTDIR}${PREFIX}/lib/ocaml/site-lib" :: "-ldconf /var/null" :: findlib_name,'
PLIST_VARS= opt
.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
(${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64") || \
(${MACHINE_ARCH} == "arm")
PLIST.opt= yes
.endif
do-configure:
cd ${WRKSRC} && ${CONFIGURE_ENV} ocaml setup.ml -configure ${CONFIGURE_ARGS}
do-build:
cd ${WRKSRC} && ${MAKE_ENV} ocaml setup.ml -build
do-install:
cd ${WRKSRC} && ${MAKE_ENV} ocaml setup.ml -install
.include "../../lang/ocaml/buildlink3.mk"
.include "../../devel/ocaml-findlib/buildlink3.mk"
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,13 @@
@comment $NetBSD: PLIST,v 1.2 2012/09/16 11:34:45 jaapb Exp $
@unexec %D/libexec/ocaml-findlib-register del %D/lib/ocaml/site-lib/sqlite3
lib/ocaml/site-lib/sqlite3/META
lib/ocaml/site-lib/sqlite3/dllsqlite3_stubs.so
lib/ocaml/site-lib/sqlite3/libsqlite3_stubs.a
${PLIST.opt}lib/ocaml/site-lib/sqlite3/sqlite3.a
lib/ocaml/site-lib/sqlite3/sqlite3.cma
lib/ocaml/site-lib/sqlite3/sqlite3.cmi
${PLIST.opt}lib/ocaml/site-lib/sqlite3/sqlite3.cmx
${PLIST.opt}lib/ocaml/site-lib/sqlite3/sqlite3.cmxa
${PLIST.opt}lib/ocaml/site-lib/sqlite3/sqlite3.cmxs
lib/ocaml/site-lib/sqlite3/sqlite3.mli
@exec %D/libexec/ocaml-findlib-register add %D/lib/ocaml/site-lib/sqlite3

View File

@@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.4 2013/06/15 19:18:00 jaapb Exp $
SHA1 (sqlite3-ocaml-2.0.4.tar.gz) = 5f78ce9f228f38bd306b8cd30e5e10346edc0c4f
RMD160 (sqlite3-ocaml-2.0.4.tar.gz) = fdcab2e88ac91e19fee2c23f38132bef372a4860
Size (sqlite3-ocaml-2.0.4.tar.gz) = 60665 bytes
SHA1 (patch-lib_sqlite3_stubs.c) = bd5970939a4ad748067337425992346de2b571a5

View File

@@ -0,0 +1,14 @@
$NetBSD: patch-lib_sqlite3_stubs.c,v 1.1 2012/09/16 11:34:46 jaapb Exp $
Correct system-dependent defines
--- lib/sqlite3_stubs.c.orig 2012-07-20 15:39:49.000000000 +0000
+++ lib/sqlite3_stubs.c
@@ -40,7 +40,7 @@
#if __GNUC__ >= 3
# define inline inline __attribute__ ((always_inline))
-# if !defined(__FreeBSD__) && !__APPLE__
+# if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly) && !__APPLE__
# define __unused __attribute__ ((unused))
# endif
#else