git: 9cdcff7fcb46 - main - net/libzmq3: Unbreak on armv7

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Fri, 12 Jan 2024 22:46:51 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9cdcff7fcb46f3ab1507ded3375eaac5eb88a55e

commit 9cdcff7fcb46f3ab1507ded3375eaac5eb88a55e
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-12 09:31:51 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-12 22:37:11 +0000

    net/libzmq3: Unbreak on armv7
    
    - Pet portclippy
    - Refresh patches
    - Update MASTER_SITES to Github archive as the current is defunct
---
 net/libzmq3/Makefile                                  | 19 +++++++++++++------
 net/libzmq3/distinfo                                  |  1 +
 net/libzmq3/files/patch-tests__test_connect_delay.cpp | 10 ----------
 .../files/patch-tests_test__connect__delay.cpp        | 10 ++++++++++
 4 files changed, 24 insertions(+), 16 deletions(-)

diff --git a/net/libzmq3/Makefile b/net/libzmq3/Makefile
index 4c543bc9b323..d9059ae9fedb 100644
--- a/net/libzmq3/Makefile
+++ b/net/libzmq3/Makefile
@@ -2,7 +2,7 @@ PORTNAME=	libzmq3
 PORTVERSION=	3.2.5
 PORTREVISION=	1
 CATEGORIES=	net
-MASTER_SITES=	http://download.zeromq.org/
+MASTER_SITES=	https://github.com/zeromq/zeromq3-x/releases/download/${DISTVERSIONFULL}/
 DISTNAME=	zeromq-${DISTVERSION}
 
 MAINTAINER=	bofh@FreeBSD.org
@@ -12,24 +12,31 @@ WWW=		https://www.zeromq.org/
 LICENSE=	LGPL3+
 LICENSE_FILE=	${WRKSRC}/COPYING.LESSER
 
-CONFLICTS=	zmq libzmq[^3]
-
 USES=		libtool pathfix
 USE_LDCONFIG=	yes
+
 GNU_CONFIGURE=	yes
+
+MAKE_ENV=	V=1
+INSTALL_TARGET=	install-strip
 TEST_TARGET=	check
 
+CONFLICTS=	zmq libzmq[^3]
+
 OPTIONS_DEFINE=		DEBUG PGM
 OPTIONS_DEFAULT=	PGM
 
 PGM_DESC=	Reliable multicast transport using PGM via OpenPGM
 
 DEBUG_CONFIGURE_ON=	--enable-debug
-PGM_CONFIGURE_ON=	--with-system-pgm
 PGM_LIB_DEPENDS=	libpgm.so:net/openpgm
 PGM_USES=		pkgconfig
+PGM_CONFIGURE_ON=	--with-system-pgm
 
-MAKE_ENV=	V=1
-INSTALL_TARGET=	install-strip
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == armv7
+CPPFLAGS+=	-Wno-error=unaligned-access
+.endif
 
 .include <bsd.port.mk>
diff --git a/net/libzmq3/distinfo b/net/libzmq3/distinfo
index 7d6b2ff165ba..39aff528811c 100644
--- a/net/libzmq3/distinfo
+++ b/net/libzmq3/distinfo
@@ -1,2 +1,3 @@
+TIMESTAMP = 1705057672
 SHA256 (zeromq-3.2.5.tar.gz) = 09653e56a466683edb2f87ee025c4de55b8740df69481b9d7da98748f0c92124
 SIZE (zeromq-3.2.5.tar.gz) = 2082960
diff --git a/net/libzmq3/files/patch-tests__test_connect_delay.cpp b/net/libzmq3/files/patch-tests__test_connect_delay.cpp
deleted file mode 100644
index 7143d96b8564..000000000000
--- a/net/libzmq3/files/patch-tests__test_connect_delay.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
---- ./tests/test_connect_delay.cpp.orig	2013-07-19 13:30:55.436108722 +0400
-+++ ./tests/test_connect_delay.cpp	2013-07-19 13:30:59.430156726 +0400
-@@ -22,6 +22,7 @@
- #include <stdlib.h>
- #include <string.h>
- #include <unistd.h>
-+#include <time.h>
- #include <string>
- 
- #undef NDEBUG
diff --git a/net/libzmq3/files/patch-tests_test__connect__delay.cpp b/net/libzmq3/files/patch-tests_test__connect__delay.cpp
new file mode 100644
index 000000000000..70c1e9a7f4cf
--- /dev/null
+++ b/net/libzmq3/files/patch-tests_test__connect__delay.cpp
@@ -0,0 +1,10 @@
+--- tests/test_connect_delay.cpp.orig	2013-11-13 17:57:23 UTC
++++ tests/test_connect_delay.cpp
+@@ -22,6 +22,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <unistd.h>
++#include <time.h>
+ #include <string>
+ 
+ #undef NDEBUG