diff options
author | fhajny <fhajny@pkgsrc.org> | 2014-05-07 15:47:00 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2014-05-07 15:47:00 +0000 |
commit | 75d10ddd6015bca9f0a65f3a6ddeb078be6599ac (patch) | |
tree | c904d2a7bb6ab6900ba4bb72babfcd4f4805b48e /databases | |
parent | 57bd3b16db35403b7f3d1c5bdf616f67bf317919 (diff) | |
download | pkgsrc-75d10ddd6015bca9f0a65f3a6ddeb078be6599ac.tar.gz |
Import mongo-c-driver as databases/mongo-c-driver.
mongo-c-driver is a client library written in C for MongoDB.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/mongo-c-driver/DESCR | 1 | ||||
-rw-r--r-- | databases/mongo-c-driver/Makefile | 31 | ||||
-rw-r--r-- | databases/mongo-c-driver/PLIST | 41 | ||||
-rw-r--r-- | databases/mongo-c-driver/buildlink3.mk | 25 | ||||
-rw-r--r-- | databases/mongo-c-driver/distinfo | 6 | ||||
-rw-r--r-- | databases/mongo-c-driver/options.mk | 29 | ||||
-rw-r--r-- | databases/mongo-c-driver/patches/patch-configure | 14 |
7 files changed, 147 insertions, 0 deletions
diff --git a/databases/mongo-c-driver/DESCR b/databases/mongo-c-driver/DESCR new file mode 100644 index 00000000000..9b178bd5e19 --- /dev/null +++ b/databases/mongo-c-driver/DESCR @@ -0,0 +1 @@ +mongo-c-driver is a client library written in C for MongoDB. diff --git a/databases/mongo-c-driver/Makefile b/databases/mongo-c-driver/Makefile new file mode 100644 index 00000000000..77a613ca787 --- /dev/null +++ b/databases/mongo-c-driver/Makefile @@ -0,0 +1,31 @@ +# $NetBSD: Makefile,v 1.1 2014/05/07 15:47:00 fhajny Exp $ + +DISTNAME= mongo-c-driver-0.94.2 +CATEGORIES= databases +MASTER_SITES= https://github.com/mongodb/mongo-c-driver/releases/download/${PKGVERSION_NOREV}/ + +MAINTAINER= filip@joyent.com +HOMEPAGE= http://github.com/mongodb/mongo-c-driver/ +COMMENT= MongoDB client library written in C +LICENSE= apache-2.0 + +BUILD_DEPENDS+= asciidoc-[0-9]*:../../textproc/asciidoc +BUILD_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto + +# Requires shm_open() +NOT_FOR_PLATFORM+= NetBSD-*-* OpenBSD-*-* + +.include "options.mk" + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_TOOLS+= pkg-config + +CHECK_PORTABILITY_SKIP+= src/libbson/configure +CONFIGURE_ARGS+= --with-libbson=system + +PKGCONFIG_OVERRIDE+= src/libmongoc-1.0.pc.in +PKGCONFIG_OVERRIDE+= src/libmongoc-ssl-1.0.pc.in + +.include "../../devel/libbson/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/databases/mongo-c-driver/PLIST b/databases/mongo-c-driver/PLIST new file mode 100644 index 00000000000..71568b6c1fa --- /dev/null +++ b/databases/mongo-c-driver/PLIST @@ -0,0 +1,41 @@ +@comment $NetBSD: PLIST,v 1.1 2014/05/07 15:47:00 fhajny Exp $ +bin/mongoc-stat +include/libmongoc-1.0/mongoc-bulk-operation.h +include/libmongoc-1.0/mongoc-client-pool.h +include/libmongoc-1.0/mongoc-client.h +include/libmongoc-1.0/mongoc-collection.h +include/libmongoc-1.0/mongoc-config.h +include/libmongoc-1.0/mongoc-cursor.h +include/libmongoc-1.0/mongoc-database.h +include/libmongoc-1.0/mongoc-error.h +include/libmongoc-1.0/mongoc-flags.h +include/libmongoc-1.0/mongoc-gridfs-file-list.h +include/libmongoc-1.0/mongoc-gridfs-file-page.h +include/libmongoc-1.0/mongoc-gridfs-file.h +include/libmongoc-1.0/mongoc-gridfs.h +include/libmongoc-1.0/mongoc-host-list.h +include/libmongoc-1.0/mongoc-index.h +include/libmongoc-1.0/mongoc-init.h +include/libmongoc-1.0/mongoc-iovec.h +include/libmongoc-1.0/mongoc-log.h +include/libmongoc-1.0/mongoc-matcher.h +include/libmongoc-1.0/mongoc-opcode.h +include/libmongoc-1.0/mongoc-read-prefs.h +include/libmongoc-1.0/mongoc-socket.h +${PLIST.ssl}include/libmongoc-1.0/mongoc-ssl.h +include/libmongoc-1.0/mongoc-stream-buffered.h +include/libmongoc-1.0/mongoc-stream-file.h +include/libmongoc-1.0/mongoc-stream-gridfs.h +include/libmongoc-1.0/mongoc-stream-socket.h +${PLIST.ssl}include/libmongoc-1.0/mongoc-stream-tls.h +include/libmongoc-1.0/mongoc-stream.h +include/libmongoc-1.0/mongoc-uri.h +include/libmongoc-1.0/mongoc-version.h +include/libmongoc-1.0/mongoc-write-concern.h +include/libmongoc-1.0/mongoc.h +lib/libmongoc-1.0.la +lib/pkgconfig/libmongoc-1.0.pc +${PLIST.ssl}lib/pkgconfig/libmongoc-ssl-1.0.pc +share/doc/mongo-c-driver/COPYING +share/doc/mongo-c-driver/NEWS +share/doc/mongo-c-driver/README.rst diff --git a/databases/mongo-c-driver/buildlink3.mk b/databases/mongo-c-driver/buildlink3.mk new file mode 100644 index 00000000000..5d35d29f61a --- /dev/null +++ b/databases/mongo-c-driver/buildlink3.mk @@ -0,0 +1,25 @@ +# $NetBSD: buildlink3.mk,v 1.1 2014/05/07 15:47:00 fhajny Exp $ + +BUILDLINK_TREE+= mongo-c-driver + +.if !defined(MONGO_C_DRIVER_BUILDLINK3_MK) +MONGO_C_DRIVER_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.mongo-c-driver+= mongo-c-driver>=0.94.2 +BUILDLINK_PKGSRCDIR.mongo-c-driver?= ../../databases/mongo-c-driver + +pkgbase := mongo-c-driver +.include "../../mk/pkg-build-options.mk" + +.if !empty(PKG_BUILD_OPTIONS.mongo-c-driver:Msasl) +. include "../../security/cyrus-sasl/buildlink3.mk" +.endif + +.if !empty(PKG_BUILD_OPTIONS.mongo-c-driver:Mssl) +. include "../../security/openssl/buildlink3.mk" +.endif + +.include "../../devel/libbson/buildlink3.mk" +.endif # MONGO_C_DRIVER_BUILDLINK3_MK + +BUILDLINK_TREE+= -mongo-c-driver diff --git a/databases/mongo-c-driver/distinfo b/databases/mongo-c-driver/distinfo new file mode 100644 index 00000000000..bd7d9c21adb --- /dev/null +++ b/databases/mongo-c-driver/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2014/05/07 15:47:00 fhajny Exp $ + +SHA1 (mongo-c-driver-0.94.2.tar.gz) = 5cc4dbb6298323f978de2a7367fe7ca50922037c +RMD160 (mongo-c-driver-0.94.2.tar.gz) = ad41e81c82081da8289cc378cd4ddc17156b0fb1 +Size (mongo-c-driver-0.94.2.tar.gz) = 5563498 bytes +SHA1 (patch-configure) = 31d235d3040017c332b496579653b24d42ee1431 diff --git a/databases/mongo-c-driver/options.mk b/databases/mongo-c-driver/options.mk new file mode 100644 index 00000000000..658362eac3e --- /dev/null +++ b/databases/mongo-c-driver/options.mk @@ -0,0 +1,29 @@ +# $NetBSD: options.mk,v 1.1 2014/05/07 15:47:00 fhajny Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.mongo-c-driver + +PKG_SUPPORTED_OPTIONS+= sasl ssl +PKG_SUGGESTED_OPTIONS+= # + +.include "../../mk/bsd.options.mk" + +# Enable SASL support +.if !empty(PKG_OPTIONS:Msasl) +. include "../../security/cyrus-sasl/buildlink3.mk" +CONFIGURE_ARGS+= --enable-sasl=yes +CONFIGURE_ENV+= SASL_CFLAGS="" +CONFIGURE_ENV+= SASL_LIBS="-lsasl2" +.else +CONFIGURE_ARGS+= --enable-sasl=no +.endif + +PLIST_VARS+= ssl + +# Enable OpenSSL support +.if !empty(PKG_OPTIONS:Mssl) +. include "../../security/openssl/buildlink3.mk" +CONFIGURE_ARGS+= --enable-ssl=yes +PLIST.ssl= yes +.else +CONFIGURE_ARGS+= --enable-ssl=no +.endif diff --git a/databases/mongo-c-driver/patches/patch-configure b/databases/mongo-c-driver/patches/patch-configure new file mode 100644 index 00000000000..cd8a54f5bdd --- /dev/null +++ b/databases/mongo-c-driver/patches/patch-configure @@ -0,0 +1,14 @@ +$NetBSD: patch-configure,v 1.1 2014/05/07 15:47:00 fhajny Exp $ + +Portability. +--- configure.orig 2014-05-07 12:31:31.154464044 +0000 ++++ configure +@@ -19156,7 +19156,7 @@ else + ax_python_lib=no + fi + +- if test x$ax_python_lib == xno; then ++ if test x$ax_python_lib = xno; then + as_ac_Lib=`$as_echo "ac_cv_lib_${ax_python_bin}m''_main" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${ax_python_bin}m" >&5 + $as_echo_n "checking for main in -l${ax_python_bin}m... " >&6; } |