Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 2024 10:58:02 GMT
From:      Dima Panov <fluffy@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 473cf29a8f51 - main - databases/ldb25: drop hardcoded path, pet portlint (+)
Message-ID:  <202403131058.42DAw2sr027021@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by fluffy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=473cf29a8f51a5fdb042ae81d711c08116bc68d0

commit 473cf29a8f51a5fdb042ae81d711c08116bc68d0
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2024-03-13 10:55:36 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2024-03-13 10:57:54 +0000

    databases/ldb25: drop hardcoded path, pet portlint (+)
    
    * replace /usr/local/libdata/pkgconfig with %%PKGCONFIGDIR%% macro in patch
    * switch to USES+= localbase:ldflags
    
    Approved by:    portmgr blanket
---
 databases/ldb25/Makefile            | 5 +----
 databases/ldb25/files/patch-wscript | 2 +-
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/databases/ldb25/Makefile b/databases/ldb25/Makefile
index 69df3c7b72cf..0729907ac55d 100644
--- a/databases/ldb25/Makefile
+++ b/databases/ldb25/Makefile
@@ -22,7 +22,7 @@ TEST_DEPENDS=	${LDB_DEPENDS} \
 		cmocka>=1.1.3:sysutils/cmocka
 RUN_DEPENDS=	${LDB_DEPENDS}
 
-USES=		compiler ldap pkgconfig waf
+USES=		compiler ldap localbase:ldflags pkgconfig waf
 
 CONFLICTS_INSTALL=	ldb[0-9][0-9] # include/ldb.h
 
@@ -79,9 +79,6 @@ PLIST_FILES=	${LDB_BINS} \
 
 .include <bsd.port.pre.mk>
 
-CFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
-
 # Some symbols in ldb's linker version scripts are not defined, but since the
 # scripts are generated dynamically, suppress errors with lld >= 17 due to these
 # undefined symbols.
diff --git a/databases/ldb25/files/patch-wscript b/databases/ldb25/files/patch-wscript
index ff413e81afff..81600dc38d83 100644
--- a/databases/ldb25/files/patch-wscript
+++ b/databases/ldb25/files/patch-wscript
@@ -5,7 +5,7 @@
          if not 'PACKAGE_VERSION' in bld.env:
              bld.env.PACKAGE_VERSION = VERSION
 -        bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig'
-+        bld.env.PKGCONFIGDIR = '/usr/local/libdata/pkgconfig'
++        bld.env.PKGCONFIGDIR = '%%PKGCONFIGDIR%%'
          private_library = False
      else:
          private_library = True



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202403131058.42DAw2sr027021>