git: 5a4c344b2a86 - main - audio/umurmur: Update version 0.2.17=>0.2.20

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Tue, 06 Jun 2023 17:48:36 UTC
The branch main has been updated by bofh:

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

commit 5a4c344b2a86e55517b15c1eaa2ad63d0cf653ab
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-06 15:28:31 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-06 17:47:38 +0000

    audio/umurmur: Update version 0.2.17=>0.2.20
    
    - Adopt port as the mails from the MAINTAINER is bouncing. In case the
      MAINTAINER returns please send me a mail for adoption [1]
    - This port supports building with mbedtls so conditionally build with
      mbedtls when the OSVERSION is ge 1400089. This version will need to be
      updated based in the OSVERSION of OpenSSL 3 merge in the base.
    
    Changelog: https://github.com/umurmur/umurmur/releases/tag/0.2.20
    Reported by:    emaste [1]
    Approved by:    portmgr (blanket)
---
 audio/umurmur/Makefile | 22 +++++++++++++++-------
 audio/umurmur/distinfo |  6 +++---
 2 files changed, 18 insertions(+), 10 deletions(-)

diff --git a/audio/umurmur/Makefile b/audio/umurmur/Makefile
index 792a6b35d95a..b5169352bab5 100644
--- a/audio/umurmur/Makefile
+++ b/audio/umurmur/Makefile
@@ -1,9 +1,8 @@
 PORTNAME=	umurmur
-DISTVERSION=	0.2.17
-PORTREVISION=	2
+DISTVERSION=	0.2.20
 CATEGORIES=	audio net
 
-MAINTAINER=	ayu@commun.jp
+MAINTAINER=	bofh@FreeBSD.org
 COMMENT=	Minimalistic Murmur (Mumble server)
 WWW=		https://umurmur.net/
 
@@ -16,14 +15,23 @@ BROKEN_armv6=		fails to compile: fatal error: byteswap.h file not found
 LIB_DEPENDS=	libconfig.so:devel/libconfig \
 		libprotobuf-c.so:devel/protobuf-c
 
-USES=		autoreconf gmake libtool localbase ssl
-BROKEN_SSL=	openssl30 openssl31
-BROKEN_SSL_REASON=	Requires OpenSSL 3.0.0 deprecated CRYPTO_MEM_CHECK_ON
+USES=		autoreconf gmake libtool localbase
 USE_GITHUB=	yes
 USE_RC_SUBR=	umurmur
 
 GNU_CONFIGURE=	yes
+
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400089
+LIB_DEPENDS+=	libmbedtls.so:security/mbedtls
+CONFIGURE_ARGS=	--with-ssl=mbedtls
+.else
+USES+=		ssl
+BROKEN_SSL=	openssl30 openssl31
+BROKEN_SSL_REASON=	Requires OpenSSL 3.0.0 deprecated CRYPTO_MEM_CHECK_ON
 CONFIGURE_ARGS=	--with-ssl=openssl
+.endif
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/configure.ac
@@ -35,4 +43,4 @@ post-install:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/umurmur
 	${INSTALL_DATA} ${WRKSRC}/umurmur.conf.example ${STAGEDIR}${PREFIX}/etc/umurmur/umurmur.conf.sample
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/audio/umurmur/distinfo b/audio/umurmur/distinfo
index bf2f2e152160..976abb77cbbc 100644
--- a/audio/umurmur/distinfo
+++ b/audio/umurmur/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1519517121
-SHA256 (umurmur-umurmur-0.2.17_GH0.tar.gz) = e77b7b6616768f4a1c07442afe49a772692f667b00c23cc85909d4dd0ce206d2
-SIZE (umurmur-umurmur-0.2.17_GH0.tar.gz) = 93786
+TIMESTAMP = 1686063083
+SHA256 (umurmur-umurmur-0.2.20_GH0.tar.gz) = b7b2978c3197aef0a6531f1cf0ee1aebb32a55ad8bda43064ce3a944edbcac83
+SIZE (umurmur-umurmur-0.2.20_GH0.tar.gz) = 93152