diff options
author | Xin LI <delphij@FreeBSD.org> | 2020-09-23 00:32:42 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2020-09-23 00:32:42 +0000 |
commit | 51d887b2f7216988c2181e14ac218bdb914ebf05 (patch) | |
tree | 26e666cb590f4f7049c195a9ef724ed21f93263f /databases/lmdb | |
parent | d5445c8e34703888879c487450ea88630ea207d1 (diff) | |
download | ports-51d887b2f7216988c2181e14ac218bdb914ebf05.tar.gz ports-51d887b2f7216988c2181e14ac218bdb914ebf05.zip |
databases/lmdb: Add a pkg-config file for use by other software that
expects them.
Submitted by: Daniel O'Connor <darius dons net au>
Notes
Notes:
svn path=/head/; revision=549648
Diffstat (limited to 'databases/lmdb')
-rw-r--r-- | databases/lmdb/Makefile | 6 | ||||
-rw-r--r-- | databases/lmdb/files/lmdb.pc.in | 11 | ||||
-rw-r--r-- | databases/lmdb/pkg-plist | 1 |
3 files changed, 17 insertions, 1 deletions
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 |