Date: Wed, 19 Jul 2023 17:30:50 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: 7eaaab99f682 - main - games/xroach: Fix build with llvm16 Message-ID: <202307191730.36JHUoFm026939@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=7eaaab99f6825548d8c82a2290beb0ef8495188f commit 7eaaab99f6825548d8c82a2290beb0ef8495188f Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-07-19 17:03:55 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-07-19 17:30:38 +0000 games/xroach: Fix build with llvm16 - Pet portclippy - Utilize USES=localbase while I am here Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- games/xroach/Makefile | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/games/xroach/Makefile b/games/xroach/Makefile index 7e2db9d9ea0c..d0787a3d0f69 100644 --- a/games/xroach/Makefile +++ b/games/xroach/Makefile @@ -8,21 +8,26 @@ DISTNAME= ${PORTNAME} MAINTAINER= kidon@posteo.de COMMENT= Cockroaches hide under your windows +USES= imake localbase xorg +USE_CSTD= gnu99 +USE_XORG= x11 xext + DPADD+= ${LOCALBASE}/lib/libX11.a ${LIBM} -CFLAGS+= -I${LOCALBASE}/include -LDADD+= -L${LOCALBASE}/lib -lX11 -lm +LDADD+= -lX11 -lm +BINDIR= ${LOCALBASE}/bin MANDIR= ${LOCALBASE}/man/man - BINOWN= bin -BINDIR= ${LOCALBASE}/bin BINMODE= 755 -USES= imake xorg -USE_XORG= x11 xext -USE_CSTD= gnu99 PLIST_FILES= bin/xroach man/man6/xroach.6.gz +.include <bsd.port.options.mk> + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + do-install: ${INSTALL_PROGRAM} -s ${WRKSRC}/xroach ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.man ${STAGEDIR}${MAN6PREFIX}/man/man6/${PORTNAME}.6
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307191730.36JHUoFm026939>