git: 8ec4d7f48873 - main - misc/compat13x: Add libdvp.so.2 and powerpc support

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Thu, 11 Sep 2025 07:30:39 UTC
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8ec4d7f4887384471ac961d11cb6788c8c1af0b6

commit 8ec4d7f4887384471ac961d11cb6788c8c1af0b6
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-09-11 05:56:56 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-09-11 07:30:28 +0000

    misc/compat13x: Add libdvp.so.2 and powerpc support
    
    PR:             288945
    Reported by:    des
---
 misc/compat13x/Makefile              | 23 +++++++++++++++++------
 misc/compat13x/distinfo              | 20 +++++++++++++-------
 misc/compat13x/pkg-plist.aarch64     |  2 +-
 misc/compat13x/pkg-plist.amd64       | 12 ++++++------
 misc/compat13x/pkg-plist.i386        |  2 +-
 misc/compat13x/pkg-plist.powerpc     |  5 +++++
 misc/compat13x/pkg-plist.powerpc64   | 10 ++++++++++
 misc/compat13x/pkg-plist.powerpc64le |  5 +++++
 8 files changed, 58 insertions(+), 21 deletions(-)

diff --git a/misc/compat13x/Makefile b/misc/compat13x/Makefile
index 758f710146af..34058bc451a4 100644
--- a/misc/compat13x/Makefile
+++ b/misc/compat13x/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	compat13x
-PORTVERSION=	13.5.1305000.20250516
+PORTVERSION=	13.5.1305000.20250911
 CATEGORIES=	misc
 MASTER_SITES=	LOCAL/arrowd
 PKGNAMESUFFIX=	-${ARCH}
@@ -12,18 +12,27 @@ LICENSE=	BSD2CLAUSE
 
 USES=		tar:xz
 NO_BUILD=	yes
-ONLY_FOR_ARCHS=	aarch64 amd64 i386
+ONLY_FOR_ARCHS=	aarch64 amd64 i386 powerpc powerpc64 powerpc64le
 PLIST=		${PKGDIR}/pkg-plist.${ARCH}
 TARGET_DIR=	${PREFIX}/lib/compat
 TARGET32_DIR=	${PREFIX}/lib32/compat
 USE_LDCONFIG=	${TARGET_DIR}
-NO_SHLIB_REQUIRES_GLOB=	*:32
 
 COMPAT_LIBS=	libcrypto.so.111 \
 		libdialog.so.9 \
+		libdpv.so.2 \
 		libnv.so.0 \
 		libssl.so.111
 
+OPTIONS_DEFINE=	COMPAT32
+OPTIONS_DEFAULT=COMPAT32
+OPTIONS_EXCLUDE_aarch64=COMPAT32
+OPTIONS_EXCLUDE_i386=COMPAT32
+OPTIONS_EXCLUDE_powerpc=COMPAT32
+OPTIONS_EXCLUDE_powerpc64le=COMPAT32
+COMPAT32_DESC=	Install 32-bit compat libraries
+OPTIONS_SUB=	yes
+
 .include "${.CURDIR}/../compat4x/Makefile.makedist"
 
 .include <bsd.port.pre.mk>
@@ -36,16 +45,18 @@ IGNORE=		is for FreeBSD 13.x and newer
 RUN_DEPENDS+=	compat14x-${ARCH}>=0:misc/compat14x
 .endif
 
-.if ${ARCH} == amd64
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MCOMPAT32}
 USE_LDCONFIG32=	${TARGET32_DIR}
 .endif
 
 do-install:
 	@${MKDIR} -m 0755 ${STAGEDIR}${TARGET_DIR}
 	(cd ${WRKSRC}/lib && ${INSTALL_LIB} *.so.* ${STAGEDIR}${TARGET_DIR})
-.if ${ARCH} == amd64
+
+do-install-COMPAT32-on:
 	@${MKDIR} ${STAGEDIR}${TARGET32_DIR}
 	(cd ${WRKSRC}/lib32 && ${INSTALL_LIB} *.so.* ${STAGEDIR}${TARGET32_DIR})
-.endif
 
 .include <bsd.port.post.mk>
diff --git a/misc/compat13x/distinfo b/misc/compat13x/distinfo
index 3530110000a3..f40264439642 100644
--- a/misc/compat13x/distinfo
+++ b/misc/compat13x/distinfo
@@ -1,7 +1,13 @@
-TIMESTAMP = 1747389524
-SHA256 (compat13x-aarch64-13.5.1305000.20250516.tar.xz) = da6774b0ecc1d9493e208dea4f247f1c23f359e22437b3ba60c07ec6674b7c49
-SIZE (compat13x-aarch64-13.5.1305000.20250516.tar.xz) = 1319304
-SHA256 (compat13x-amd64-13.5.1305000.20250516.tar.xz) = 0a1e1990bd75ae1ca682fc919eb1ebdf1765708076287fb5e51b73a1b47c4497
-SIZE (compat13x-amd64-13.5.1305000.20250516.tar.xz) = 2700856
-SHA256 (compat13x-i386-13.5.1305000.20250516.tar.xz) = 585221d7b33ea788ce96ac1a18a3d3cc6a820dd64a0c275ed15aedf23541dea7
-SIZE (compat13x-i386-13.5.1305000.20250516.tar.xz) = 1437620
+TIMESTAMP = 1757569790
+SHA256 (compat13x-aarch64-13.5.1305000.20250911.tar.xz) = 04edb35bfae92926c358fee331d13a492d4325feadc2e04eb810a81d20c779fa
+SIZE (compat13x-aarch64-13.5.1305000.20250911.tar.xz) = 1198640
+SHA256 (compat13x-amd64-13.5.1305000.20250911.tar.xz) = c1b9809a6d7b2e9652907a397c16c3f2d2bc16df16dd9accd4d532507dad4daf
+SIZE (compat13x-amd64-13.5.1305000.20250911.tar.xz) = 2456728
+SHA256 (compat13x-i386-13.5.1305000.20250911.tar.xz) = fdd2e9b18f72448ccda181315060c84ac831d359285a40cd84b1e5602f3b54ba
+SIZE (compat13x-i386-13.5.1305000.20250911.tar.xz) = 1299132
+SHA256 (compat13x-powerpc-13.5.1305000.20250911.tar.xz) = 040fc11c6dace71f616a4f8ffbfaa80fde270d9f56024d5b4fc2d3613c607893
+SIZE (compat13x-powerpc-13.5.1305000.20250911.tar.xz) = 1065128
+SHA256 (compat13x-powerpc64-13.5.1305000.20250911.tar.xz) = 83a0a7cdd6f9c18e9b4fc88b5421e19f6d7ba4a726664e6cd2f7c911d7f5abc2
+SIZE (compat13x-powerpc64-13.5.1305000.20250911.tar.xz) = 2054152
+SHA256 (compat13x-powerpc64le-13.5.1305000.20250911.tar.xz) = 1d673f23524732c70f5b3f1d2a4b56f245de4d3f89adb321eb5fb370b353b573
+SIZE (compat13x-powerpc64le-13.5.1305000.20250911.tar.xz) = 1311480
diff --git a/misc/compat13x/pkg-plist.aarch64 b/misc/compat13x/pkg-plist.aarch64
index 9dbf2f634e46..afbd14a066b9 100644
--- a/misc/compat13x/pkg-plist.aarch64
+++ b/misc/compat13x/pkg-plist.aarch64
@@ -1,5 +1,5 @@
 lib/compat/libcrypto.so.111
 lib/compat/libdialog.so.9
-@comment lib/compat/libncursesw.so.9
+lib/compat/libdpv.so.2
 lib/compat/libnv.so.0
 lib/compat/libssl.so.111
diff --git a/misc/compat13x/pkg-plist.amd64 b/misc/compat13x/pkg-plist.amd64
index 4ea5ff3d48e0..8cd6a53163df 100644
--- a/misc/compat13x/pkg-plist.amd64
+++ b/misc/compat13x/pkg-plist.amd64
@@ -1,10 +1,10 @@
 lib/compat/libcrypto.so.111
 lib/compat/libdialog.so.9
-@comment lib/compat/libncursesw.so.9
+lib/compat/libdpv.so.2
 lib/compat/libnv.so.0
 lib/compat/libssl.so.111
-lib32/compat/libcrypto.so.111
-lib32/compat/libdialog.so.9
-@comment lib32/compat/libncursesw.so.9
-lib32/compat/libnv.so.0
-lib32/compat/libssl.so.111
+%%COMPAT32%%lib32/compat/libcrypto.so.111
+%%COMPAT32%%lib32/compat/libdialog.so.9
+%%COMPAT32%%lib32/compat/libdpv.so.2
+%%COMPAT32%%lib32/compat/libnv.so.0
+%%COMPAT32%%lib32/compat/libssl.so.111
diff --git a/misc/compat13x/pkg-plist.i386 b/misc/compat13x/pkg-plist.i386
index 9dbf2f634e46..afbd14a066b9 100644
--- a/misc/compat13x/pkg-plist.i386
+++ b/misc/compat13x/pkg-plist.i386
@@ -1,5 +1,5 @@
 lib/compat/libcrypto.so.111
 lib/compat/libdialog.so.9
-@comment lib/compat/libncursesw.so.9
+lib/compat/libdpv.so.2
 lib/compat/libnv.so.0
 lib/compat/libssl.so.111
diff --git a/misc/compat13x/pkg-plist.powerpc b/misc/compat13x/pkg-plist.powerpc
new file mode 100644
index 000000000000..afbd14a066b9
--- /dev/null
+++ b/misc/compat13x/pkg-plist.powerpc
@@ -0,0 +1,5 @@
+lib/compat/libcrypto.so.111
+lib/compat/libdialog.so.9
+lib/compat/libdpv.so.2
+lib/compat/libnv.so.0
+lib/compat/libssl.so.111
diff --git a/misc/compat13x/pkg-plist.powerpc64 b/misc/compat13x/pkg-plist.powerpc64
new file mode 100644
index 000000000000..8cd6a53163df
--- /dev/null
+++ b/misc/compat13x/pkg-plist.powerpc64
@@ -0,0 +1,10 @@
+lib/compat/libcrypto.so.111
+lib/compat/libdialog.so.9
+lib/compat/libdpv.so.2
+lib/compat/libnv.so.0
+lib/compat/libssl.so.111
+%%COMPAT32%%lib32/compat/libcrypto.so.111
+%%COMPAT32%%lib32/compat/libdialog.so.9
+%%COMPAT32%%lib32/compat/libdpv.so.2
+%%COMPAT32%%lib32/compat/libnv.so.0
+%%COMPAT32%%lib32/compat/libssl.so.111
diff --git a/misc/compat13x/pkg-plist.powerpc64le b/misc/compat13x/pkg-plist.powerpc64le
new file mode 100644
index 000000000000..afbd14a066b9
--- /dev/null
+++ b/misc/compat13x/pkg-plist.powerpc64le
@@ -0,0 +1,5 @@
+lib/compat/libcrypto.so.111
+lib/compat/libdialog.so.9
+lib/compat/libdpv.so.2
+lib/compat/libnv.so.0
+lib/compat/libssl.so.111