svn commit: r549648 - in head/databases/lmdb: . files
Xin LI
delphij at FreeBSD.org
Wed Sep 23 00:32:43 UTC 2020
Author: delphij
Date: Wed Sep 23 00:32:42 2020
New Revision: 549648
URL: https://svnweb.freebsd.org/changeset/ports/549648
Log:
databases/lmdb: Add a pkg-config file for use by other software that
expects them.
Submitted by: Daniel O'Connor <darius dons net au>
Added:
head/databases/lmdb/files/lmdb.pc.in (contents, props changed)
Modified:
head/databases/lmdb/Makefile
head/databases/lmdb/pkg-plist
Modified: head/databases/lmdb/Makefile
==============================================================================
--- head/databases/lmdb/Makefile Wed Sep 23 00:18:11 2020 (r549647)
+++ head/databases/lmdb/Makefile Wed Sep 23 00:32:42 2020 (r549648)
@@ -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
Added: head/databases/lmdb/files/lmdb.pc.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/databases/lmdb/files/lmdb.pc.in Wed Sep 23 00:32:42 2020 (r549648)
@@ -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}
Modified: head/databases/lmdb/pkg-plist
==============================================================================
--- head/databases/lmdb/pkg-plist Wed Sep 23 00:18:11 2020 (r549647)
+++ head/databases/lmdb/pkg-plist Wed Sep 23 00:32:42 2020 (r549648)
@@ -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
More information about the svn-ports-all
mailing list