diff options
author | Pietro Cerutti <gahr@FreeBSD.org> | 2017-04-25 12:26:34 +0000 |
---|---|---|
committer | Pietro Cerutti <gahr@FreeBSD.org> | 2017-04-25 12:26:34 +0000 |
commit | 87bab43e2879c714c40b5aee55515c78c5855069 (patch) | |
tree | 9a0437f975e6b3bb3b896e43cc48a6b04e5f2e1d /databases/lmdb | |
parent | 67dab3e66ff9cf90ea16b59e3a7ae3e0d5605453 (diff) | |
download | ports-87bab43e2879c714c40b5aee55515c78c5855069.tar.gz ports-87bab43e2879c714c40b5aee55515c78c5855069.zip |
Notes
Diffstat (limited to 'databases/lmdb')
-rw-r--r-- | databases/lmdb/Makefile | 10 | ||||
-rw-r--r-- | databases/lmdb/distinfo | 6 | ||||
-rw-r--r-- | databases/lmdb/files/patch-Makefile | 45 |
3 files changed, 37 insertions, 24 deletions
diff --git a/databases/lmdb/Makefile b/databases/lmdb/Makefile index 86f0146a50c1..0947a84fa94c 100644 --- a/databases/lmdb/Makefile +++ b/databases/lmdb/Makefile @@ -2,9 +2,9 @@ # $FreeBSD$ PORTNAME= lmdb -PORTVERSION= 0.9.18 -PORTEPOCH= 1 +PORTVERSION= 0.9.19 DISTVERSIONPREFIX= ${PORTNAME:tu}_ +PORTEPOCH= 1 CATEGORIES= databases MAINTAINER= delphij@FreeBSD.org @@ -27,7 +27,13 @@ USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= ${PORTNAME:tu} +TEST_TARGET= do-test + post-install: ${LN} -sf liblmdb.so.0 ${STAGEDIR}${PREFIX}/lib/liblmdb.so +do-test: + ${MKDIR} ${WRKSRC}/testdb + cd ${WRKSRC} && ./mtest* + .include <bsd.port.mk> diff --git a/databases/lmdb/distinfo b/databases/lmdb/distinfo index 9799eea05c4b..6397b266eb67 100644 --- a/databases/lmdb/distinfo +++ b/databases/lmdb/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1484761556 -SHA256 (LMDB-lmdb-LMDB_0.9.18_GH0.tar.gz) = dd35b471d6eea84f48f2feece13d121abf59ef255308b8624a36223ffbdf9989 -SIZE (LMDB-lmdb-LMDB_0.9.18_GH0.tar.gz) = 139156 +TIMESTAMP = 1491234356 +SHA256 (LMDB-lmdb-LMDB_0.9.19_GH0.tar.gz) = 108532fb94c6f227558d45be3f3347b52539f0f58290a7bb31ec06c462d05326 +SIZE (LMDB-lmdb-LMDB_0.9.19_GH0.tar.gz) = 143141 diff --git a/databases/lmdb/files/patch-Makefile b/databases/lmdb/files/patch-Makefile index 7094621adf8b..40fd5d1cd596 100644 --- a/databases/lmdb/files/patch-Makefile +++ b/databases/lmdb/files/patch-Makefile @@ -1,6 +1,6 @@ ---- Makefile.orig 2016-02-05 21:22:15 UTC +--- Makefile.orig 2016-12-28 18:36:01 UTC +++ Makefile -@@ -23,7 +23,7 @@ AR = ar +@@ -23,17 +23,17 @@ AR = ar W = -W -Wall -Wno-unused-parameter -Wbad-function-cast -Wuninitialized THREADS = -pthread OPT = -O2 -g @@ -8,8 +8,12 @@ +CFLAGS += $(THREADS) $(W) LDLIBS = SOLIBS = - prefix = /usr/local -@@ -32,26 +32,26 @@ bindir = $(exec_prefix)/bin +-SOEXT = .so +-prefix = /usr/local ++SOEXT = .so.0 ++prefix ?= /usr/local + exec_prefix = $(prefix) + bindir = $(exec_prefix)/bin libdir = $(exec_prefix)/lib includedir = $(prefix)/include datarootdir = $(prefix)/share @@ -18,17 +22,7 @@ ######################################################################## - IHDRS = lmdb.h --ILIBS = liblmdb.a liblmdb.so -+ILIBS = liblmdb.a liblmdb.so.0 - IPROGS = mdb_stat mdb_copy mdb_dump mdb_load - IDOCS = mdb_stat.1 mdb_copy.1 mdb_dump.1 mdb_load.1 - PROGS = $(IPROGS) mtest mtest2 mtest3 mtest4 mtest5 --all: $(ILIBS) $(PROGS) -+all: $(ILIBS) $(IPROGS) - - install: $(ILIBS) $(IPROGS) $(IHDRS) - mkdir -p $(DESTDIR)$(bindir) +@@ -49,10 +49,10 @@ install: $(ILIBS) $(IPROGS) $(IHDRS) mkdir -p $(DESTDIR)$(libdir) mkdir -p $(DESTDIR)$(includedir) mkdir -p $(DESTDIR)$(mandir)/man1 @@ -43,14 +37,15 @@ clean: rm -rf $(PROGS) *.[ao] *.[ls]o *~ testdb -@@ -63,14 +63,18 @@ test: all +@@ -64,20 +64,30 @@ test: all liblmdb.a: mdb.o midl.o $(AR) rs $@ mdb.o midl.o --liblmdb.so: mdb.lo midl.lo -+liblmdb.so.0: mdb.lo midl.lo - # $(CC) $(LDFLAGS) -pthread -shared -Wl,-Bsymbolic -o $@ mdb.o midl.o $(SOLIBS) +-liblmdb$(SOEXT): mdb.lo midl.lo +-# $(CC) $(LDFLAGS) -pthread -shared -Wl,-Bsymbolic -o $@ mdb.o midl.o $(SOLIBS) - $(CC) $(LDFLAGS) -pthread -shared -o $@ mdb.lo midl.lo $(SOLIBS) ++ liblmdb$(SOEXT): mdb.lo midl.lo ++ # $(CC) $(LDFLAGS) -pthread -shared -Wl,-Bsymbolic -o $@ mdb.o midl.o $(SOLIBS) + $(CC) $(LDFLAGS) -pthread -shared -Wl,-soname,$@ -o $@ mdb.lo midl.lo $(SOLIBS) mdb_stat: mdb_stat.o liblmdb.a @@ -62,5 +57,17 @@ mdb_load: mdb_load.o liblmdb.a + ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} mtest: mtest.o liblmdb.a ++ ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} mtest2: mtest2.o liblmdb.a ++ ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} mtest3: mtest3.o liblmdb.a ++ ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} + mtest4: mtest4.o liblmdb.a ++ ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} + mtest5: mtest5.o liblmdb.a ++ ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} + mtest6: mtest6.o liblmdb.a ++ ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} + + mdb.o: mdb.c lmdb.h midl.h + $(CC) $(CFLAGS) $(CPPFLAGS) -c mdb.c |