git: 4535adcc4dac - main - devel/libunwind: enable on powerpc

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Tue, 25 Apr 2023 09:15:46 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4535adcc4dac28c283790f9ee66f4a17d99805dc

commit 4535adcc4dac28c283790f9ee66f4a17d99805dc
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-04-24 23:26:37 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-04-25 09:15:31 +0000

    devel/libunwind: enable on powerpc
---
 devel/libunwind/Makefile | 9 ++++++---
 devel/libunwind/distinfo | 4 +++-
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/devel/libunwind/Makefile b/devel/libunwind/Makefile
index 73df95e202bf..77af7ab31c2e 100644
--- a/devel/libunwind/Makefile
+++ b/devel/libunwind/Makefile
@@ -6,6 +6,9 @@ MASTER_SITES=	SAVANNAH \
 		https://github.com/libunwind/libunwind/releases/download/v${PORTVERSION}/
 DISTNAME=	${PORTNAME}-1.6.2
 
+PATCH_SITES=	https://github.com/libunwind/libunwind/commit/
+PATCHFILES=	ce7e1002888a03fde0eea631748489b12ff56490.patch:-p1
+
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Generic stack unwinding library
 WWW=		https://www.nongnu.org/libunwind/
@@ -13,7 +16,7 @@ WWW=		https://www.nongnu.org/libunwind/
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-ONLY_FOR_ARCHS=	aarch64 amd64 armv6 armv7 i386 powerpc64 powerpc64le
+ONLY_FOR_ARCHS=	aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le
 
 USES=		compiler:c11 cpe libtool pathfix pkgconfig
 
@@ -24,13 +27,13 @@ GNU_CONFIGURE=	yes
 INSTALL_TARGET=	install-strip
 USE_LDCONFIG=	yes
 
-PLIST_SUB=	ARCH=${ARCH:S|amd64|x86_64|:C|armv.|arm|:S|i386|x86|:C|powerpc64.*|ppc64|}
+PLIST_SUB=	ARCH=${ARCH:S|amd64|x86_64|:C|armv.|arm|:S|i386|x86|:C|powerpc64.*|ppc64|:S|powerpc|ppc32|}
 
 CPE_VENDOR=	libunwind_project
 
 .include <bsd.port.options.mk>
 
-.if ${ARCH:Mpowerpc64*}
+.if ${ARCH:Mpowerpc*}
 PLIST_SUB+=	COREDUMP="@comment "
 .else
 PLIST_SUB+=	COREDUMP=""
diff --git a/devel/libunwind/distinfo b/devel/libunwind/distinfo
index a359c5a1a385..5d98b5400168 100644
--- a/devel/libunwind/distinfo
+++ b/devel/libunwind/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1646075307
+TIMESTAMP = 1682376479
 SHA256 (libunwind-1.6.2.tar.gz) = 4a6aec666991fb45d0889c44aede8ad6eb108071c3554fcdff671f9c94794976
 SIZE (libunwind-1.6.2.tar.gz) = 901392
+SHA256 (ce7e1002888a03fde0eea631748489b12ff56490.patch) = 1bc9c6c2c3a73893fdd54e67c154633a1c6f756b1f71bc99353edc417cb24ee0
+SIZE (ce7e1002888a03fde0eea631748489b12ff56490.patch) = 18260