From 51d887b2f7216988c2181e14ac218bdb914ebf05 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Wed, 23 Sep 2020 00:32:42 +0000 Subject: [PATCH] databases/lmdb: Add a pkg-config file for use by other software that expects them. Submitted by: Daniel O'Connor --- databases/lmdb/Makefile | 6 +++++- databases/lmdb/files/lmdb.pc.in | 11 +++++++++++ databases/lmdb/pkg-plist | 1 + 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 databases/lmdb/files/lmdb.pc.in diff --git a/databases/lmdb/Makefile b/databases/lmdb/Makefile index e0d22dfa129c..f862795b7e92 100644 --- a/databases/lmdb/Makefile +++ b/databases/lmdb/Makefile @@ -3,7 +3,7 @@ PORTNAME= lmdb PORTVERSION= 0.9.24 -PORTREVISION= 2 +PORTREVISION= 3 DISTVERSIONPREFIX= ${PORTNAME:tu}_ PORTEPOCH= 1 CATEGORIES= databases @@ -26,8 +26,12 @@ USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= ${PORTNAME:tu} +SUB_FILES+= lmdb.pc +SUB_LIST+= PORTVERSION=${PORTVERSION} + post-install: ${LN} -sf liblmdb.so.0 ${STAGEDIR}${PREFIX}/lib/liblmdb.so + ${INSTALL_DATA} ${WRKDIR}/lmdb.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig do-test: ${MKDIR} ${WRKSRC}/testdb diff --git a/databases/lmdb/files/lmdb.pc.in b/databases/lmdb/files/lmdb.pc.in new file mode 100644 index 000000000000..2227c9cdb737 --- /dev/null +++ b/databases/lmdb/files/lmdb.pc.in @@ -0,0 +1,11 @@ +prefix=%%PREFIX%% +exec_prefix=${prefix} +libdir=${prefix}/lib +includedir=${prefix}/include + +Name: lmdb +Description: Lightning Memory-Mapped Database +URL: https://symas.com/lmdb/ +Version: %%PORTVERSION%% +Libs: -L${libdir} -llmdb +Cflags: -I${includedir} diff --git a/databases/lmdb/pkg-plist b/databases/lmdb/pkg-plist index ebd864d435bf..449038cdcbd6 100644 --- a/databases/lmdb/pkg-plist +++ b/databases/lmdb/pkg-plist @@ -6,6 +6,7 @@ include/lmdb.h lib/liblmdb.a lib/liblmdb.so lib/liblmdb.so.0 +libdata/pkgconfig/lmdb.pc man/man1/mdb_copy.1.gz man/man1/mdb_dump.1.gz man/man1/mdb_load.1.gz