git: 25ef3857b80f - main - databases/sqlite3: Fix soname, fix build if ICU=on LIBEDIT=off and READLINE=off

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Thu, 10 Jul 2025 01:17:09 UTC
The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=25ef3857b80f0bda031c638303ff49369e2501ac

commit 25ef3857b80f0bda031c638303ff49369e2501ac
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-07-10 00:49:37 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-07-10 01:16:58 +0000

    databases/sqlite3: Fix soname, fix build if ICU=on LIBEDIT=off and READLINE=off
    
    --soname=libsqlite3.so.${DISTVERSION} mean that users must
    rebuild/reinstall all consumers of the sqlite3 after each patch-level
    update.
    Use --soname=legacy => soname = libsqlite3.so.0 - ABI and API didn't
    changed.
    
    PR:             287983
    Approved by:    Pavel Volkov <pavelivolkov@gmail.com> (maintainer, implicit - fix runtime)
    Fixes:          8af3fe5ef31b (update to 3.50.2)
    Co-authored-by: russian@russerver.org
---
 databases/sqlite3/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/databases/sqlite3/Makefile b/databases/sqlite3/Makefile
index 88fb914f4bfd..9521ef1d6ce8 100644
--- a/databases/sqlite3/Makefile
+++ b/databases/sqlite3/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	sqlite3
 DISTVERSION=	3.50.2
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	databases
 MASTER_SITES=	https://www.sqlite.org/${_YEAR}/ https://www2.sqlite.org/${_YEAR}/ https://www3.sqlite.org/${_YEAR}/
@@ -34,7 +35,7 @@ USES=	libtool ncurses pathfix zip
 USE_LDCONFIG=	yes
 
 HAS_CONFIGURE=	yes
-CONFIGURE_ARGS+=	--linemacros --soname=${DISTVERSION} OPTIONS='${_OPTIONS}'
+CONFIGURE_ARGS+=	--linemacros --soname=legacy OPTIONS='${_OPTIONS}'
 # [The Chronicles of SONAME](https://sqlite.org/src/forumpost/5a3b44f510df8ded)
 # [Set features OPTIONS for autosetup configurator](https://msteveb.github.io/autosetup/)
 
@@ -174,6 +175,7 @@ GEOPOLY_CONFIGURE_ON=	--geopoly
 ICU_BUILD_DEPENDS=	${LOCALBASE}/bin/icu-config:devel/icu
 ICU_LIB_DEPENDS=	libicudata.so:devel/icu
 ICU_CONFIGURE_ON=	--with-icu-config=${LOCALBASE}/bin/icu-config --icu-collations
+ICU_CPPFLAGS=		`${LOCALBASE}/bin/icu-config --cppflags`
 LIBEDIT_USES=	libedit
 LIBEDIT_CONFIGURE_ON=	--editline
 LIKENOTBLOB_CPPFLAGS=	-DSQLITE_LIKE_DOESNT_MATCH_BLOBS=1