git: c72cc0314bc0 - main - net/megacmd: update to 1.6.1

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Thu, 20 Apr 2023 13:35:46 UTC
The branch main has been updated by fuz:

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

commit c72cc0314bc0e0fe56f220585c57fb09303aea1d
Author:     kikadf <kikadf.01@gmail.com>
AuthorDate: 2023-04-18 15:51:40 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-04-20 11:49:23 +0000

    net/megacmd: update to 1.6.1
    
     - update sdk to 4.17.1a
     - fix segmentation fault with cryptopp-8.7.0:
       add -DCRYPTOPP_DISABLE_ASM to CXXFLAGS on i386 and amd64
     - adopt port
    
    PR:             269979, 270916
---
 net/megacmd/Makefile  | 13 +++++++++----
 net/megacmd/distinfo  | 10 +++++-----
 net/megacmd/pkg-plist |  4 ++--
 3 files changed, 16 insertions(+), 11 deletions(-)

diff --git a/net/megacmd/Makefile b/net/megacmd/Makefile
index 184f9f9623f0..40d749c60466 100644
--- a/net/megacmd/Makefile
+++ b/net/megacmd/Makefile
@@ -1,10 +1,9 @@
 PORTNAME=	megacmd
-DISTVERSION=	1.5.0
-PORTREVISION=	1
+DISTVERSION=	1.6.1
 DISTVERSIONSUFFIX=	_Linux
 CATEGORIES=	net
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	kikadf.01@gmail.com
 COMMENT=	Command Line Interactive and Scriptable Application to access MEGA
 WWW=		https://mega.nz/cm
 
@@ -21,7 +20,7 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	meganz
 GH_PROJECT=	MEGAcmd sdk:sdk
 GH_SUBDIR=	sdk:sdk
-GH_TAGNAME=	v3.9.11a:sdk
+GH_TAGNAME=	v4.17.1a:sdk
 
 USE_LDCONFIG=	yes
 
@@ -96,6 +95,12 @@ CONFIGURE_ARGS=	--disable-examples \
 		--with-sqlite=${LOCALBASE} --with-libuv=${LOCALBASE} \
 		--with-zlib --with-readline=${LOCALBASE}
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == i386 || ${ARCH} == amd64
+CXXFLAGS+=	-DCRYPTOPP_DISABLE_ASM
+.endif
+
 INSTALL_TARGET=	install-strip
 
 .include <bsd.port.mk>
diff --git a/net/megacmd/distinfo b/net/megacmd/distinfo
index 86b913f4919a..84da6152ae6d 100644
--- a/net/megacmd/distinfo
+++ b/net/megacmd/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1645820452
-SHA256 (meganz-MEGAcmd-1.5.0_Linux_GH0.tar.gz) = 82adb4e5ab85a1d5d67594265460719a65a14ab6ba6c2d700efbeaa38c27c83a
-SIZE (meganz-MEGAcmd-1.5.0_Linux_GH0.tar.gz) = 2070287
-SHA256 (meganz-sdk-v3.9.11a_GH0.tar.gz) = 64c3920ea703daa73bdfcf4b10c83dcb00f08aaa766111a73d3d494eff4fc9b1
-SIZE (meganz-sdk-v3.9.11a_GH0.tar.gz) = 3485911
+TIMESTAMP = 1681744685
+SHA256 (meganz-MEGAcmd-1.6.1_Linux_GH0.tar.gz) = 3f24ec61f3d8b8564ad3ffb3d639cab425cd2cfb495c991aa15dab5fa317dbfc
+SIZE (meganz-MEGAcmd-1.6.1_Linux_GH0.tar.gz) = 2084564
+SHA256 (meganz-sdk-v4.17.1a_GH0.tar.gz) = ac500edbdedea030e141e785b19fe046ec75b1d69b975bcfd00e3abe80e63f8b
+SIZE (meganz-sdk-v4.17.1a_GH0.tar.gz) = 3694117
diff --git a/net/megacmd/pkg-plist b/net/megacmd/pkg-plist
index 357bfffd8c1b..f8d2a8a49cdf 100644
--- a/net/megacmd/pkg-plist
+++ b/net/megacmd/pkg-plist
@@ -126,6 +126,6 @@ include/mega/waiter.h
 include/megaapi.h
 include/megaapi_impl.h
 lib/libmega.so
-lib/libmega.so.30911
-lib/libmega.so.30911.0.0
+lib/libmega.so.41701
+lib/libmega.so.41701.0.0
 libdata/pkgconfig/libmega.pc