aboutsummaryrefslogtreecommitdiffstats
path: root/databases/py-lmdb/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/py-lmdb/Makefile')
-rw-r--r--databases/py-lmdb/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/databases/py-lmdb/Makefile b/databases/py-lmdb/Makefile
new file mode 100644
index 000000000000..98a040237e6b
--- /dev/null
+++ b/databases/py-lmdb/Makefile
@@ -0,0 +1,30 @@
+# Created by: Keith Gaughan <k@sterechro.me>
+# $FreeBSD$
+
+PORTNAME= lmdb
+PORTVERSION= 0.93
+CATEGORIES= databases python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= k@stereochro.me
+COMMENT= Python bindings for LMDB
+
+LICENSE= OPENLDAP
+LICENSE_NAME= OpenLDAP Public LIcense
+LICENSE_FILE= ${WRKSRC}/LICENSE
+LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>0.8:devel/py-cffi
+LIB_DEPENDS= liblmdb.so:databases/lmdb
+
+USES= localbase python
+USE_PYTHON= autoplist distutils
+
+MAKE_ENV= LMDB_FORCE_SYSTEM=1 \
+ LMDB_FORCE_CFFI=1
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/lmdb/lmdb_cffi.so
+
+.include <bsd.port.mk>