git: 47e6a6d4599e - main - archivers/xpk: Fix build with llvm15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 05 Jun 2023 18:09:13 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=47e6a6d4599e94a8bdce1c42a911e16dbbcb1122
commit 47e6a6d4599e94a8bdce1c42a911e16dbbcb1122
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-05 15:54:56 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-05 18:09:01 +0000
archivers/xpk: Fix build with llvm15
- Pet portclippy
- Adopt port
---
archivers/xpk/Makefile | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/archivers/xpk/Makefile b/archivers/xpk/Makefile
index f516104b2f62..d4c8987db267 100644
--- a/archivers/xpk/Makefile
+++ b/archivers/xpk/Makefile
@@ -5,7 +5,7 @@ CATEGORIES= archivers
MASTER_SITES= http://vesuri.jormas.com/xpk/ \
http://www.energyhq.es.eu.org/files/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= bofh@FreeBSD.org
COMMENT= The eXternal PacKer (XPK) library system
WWW= http://www.jormas.com/~vesuri/xpk/
@@ -13,10 +13,17 @@ LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= libtool
-GNU_CONFIGURE= yes
USE_LDCONFIG= yes
+GNU_CONFIGURE= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+= -Wno-error=int-conversion
+.endif
+
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libxpk*.so
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>