git: bc59da30c6a8 - main - databases/p5-Memcached-libmemcached: Fix build on HEAD

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Thu, 04 May 2023 18:54:56 UTC
The branch main has been updated by bofh:

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

commit bc59da30c6a830032c07847f6d56d0961c034a66
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-05-04 18:48:27 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-05-04 18:54:29 +0000

    databases/p5-Memcached-libmemcached: Fix build on HEAD
    
    - Add LICENSE ART10 GPLv1+
---
 databases/p5-Memcached-libmemcached/Makefile | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/databases/p5-Memcached-libmemcached/Makefile b/databases/p5-Memcached-libmemcached/Makefile
index 44105668e682..64a7625881c4 100644
--- a/databases/p5-Memcached-libmemcached/Makefile
+++ b/databases/p5-Memcached-libmemcached/Makefile
@@ -9,16 +9,25 @@ MAINTAINER=	perl@FreeBSD.org
 COMMENT=	Thin fast full interface to the libmemcached client API
 WWW=		https://metacpan.org/release/Memcached-libmemcached
 
+LICENSE=	ART10 GPLv1+
+LICENSE_COMB=	dual
+
 LIB_DEPENDS=	libmemcached.so:databases/libmemcached
 
 USES=		perl5
 USE_PERL5=	configure
 USE_LDCONFIG=	yes
 
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079
+CFLAGS+=       -Wno-error=int-conversion
+.endif
+
 post-extract:
 	@${RM} -r ${WRKDIR}/src
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/Makefile.PL
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>