]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib/ldb: Adapt pkg-config files to being build from the main build.
authorAndrew Bartlett <abartlet@samba.org>
Fri, 9 Feb 2024 09:32:16 +0000 (22:32 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 1 Mar 2024 02:41:37 +0000 (02:41 +0000)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/ldb/ldb.pc.in
lib/ldb/pyldb-util.pc.in
lib/ldb/wscript

index aeba17a677504c77fd157a00321f6e41ccd3a970..1a1be6440a19fa4744a49ff604fb57f27f83e46e 100644 (file)
@@ -6,7 +6,7 @@ modulesdir=@LDB_MODULESDIR@
 
 Name: ldb
 Description: An LDAP-like embedded database
-Version: @PACKAGE_VERSION@
+Version: @LDB_PACKAGE_VERSION@
 Requires.private: tdb
 Requires: talloc 
 Libs: @LIB_RPATH@ -L${libdir} -lldb
index 60ec7029260237d6ddd36ccea90fbb4444eaad7d..7593e4210feece08b709c14215787741fe5e442f 100644 (file)
@@ -6,7 +6,7 @@ modulesdir=@LDB_MODULESDIR@
 
 Name: pyldb-util@PYTHON_SO_ABI_FLAG@
 Description: Python bindings for LDB
-Version: @PACKAGE_VERSION@
+Version: @LDB_PACKAGE_VERSION@
 Requires: ldb
 Libs: @LIB_RPATH@ -L${libdir} -lpyldb-util@PYTHON_LIBNAME_SO_ABI_FLAG@
 Cflags: -I${includedir}
index 4400baa0b86bfe1471fd347c259e58fbfbeb62d1..c5056f4d58b5319f390cec3284b7651893b31adf 100644 (file)
@@ -165,10 +165,8 @@ def build(bld):
     bld.RECURSE('lib/replace')
     bld.RECURSE('lib/tdb')
 
-    if bld.env.standalone_ldb:
-        if not 'PACKAGE_VERSION' in bld.env:
-            bld.env.PACKAGE_VERSION = VERSION
-        bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig'
+    if not 'LDB_PACKAGE_VERSION' in bld.env:
+        bld.env.LDB_PACKAGE_VERSION = VERSION
 
     private_library = not bld.env.ldb_is_public_library