Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Jun 2023 20:45:44 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 2f606f467090 - main - converters/ta2as: Fix build with llvm15
Message-ID:  <202306062045.356KjiuM026068@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

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

commit 2f606f4670908db51a48b2d9ee29685916f4490b
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-06 19:50:00 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-06 20:45:25 +0000

    converters/ta2as: Fix build with llvm15
    
    - Pet portclippy
    - Adopt port
---
 converters/ta2as/Makefile | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/converters/ta2as/Makefile b/converters/ta2as/Makefile
index a03769c03fb5..1d31e56f9d9a 100644
--- a/converters/ta2as/Makefile
+++ b/converters/ta2as/Makefile
@@ -2,7 +2,7 @@ PORTNAME=	ta2as
 PORTVERSION=	0.8.2
 CATEGORIES=	converters devel
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	bofh@FreeBSD.org
 COMMENT=	TASM to AT&T asm syntax converter (GNU AS)
 WWW=		https://github.com/mefistotelis/ta2as
 
@@ -11,16 +11,22 @@ LICENSE_NAME=	TA2AS license
 LICENSE_FILE=	${WRKSRC}/legal.txt
 LICENSE_PERMS=	dist-mirror pkg-mirror auto-accept
 
-WRKSRC_SUBDIR=	ta2as
-
 USE_GITHUB=	yes
 GH_ACCOUNT=	mefistotelis
 
-PORTDOCS=	*
+WRKSRC_SUBDIR=	ta2as
+
 PLIST_FILES=	bin/${PORTNAME}
+PORTDOCS=	*
 
 OPTIONS_DEFINE=	DOCS
 
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=int-conversion
+.endif
+
 post-extract:
 	@${CP} -f ${FILESDIR}/strtolower.c ${WRKSRC}
 
@@ -39,4 +45,4 @@ do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/*.txt ${STAGEDIR}${DOCSDIR}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306062045.356KjiuM026068>