diff options
author | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2023-07-19 17:03:55 +0000 |
---|---|---|
committer | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2023-07-19 17:30:38 +0000 |
commit | 7eaaab99f6825548d8c82a2290beb0ef8495188f (patch) | |
tree | e9f73223330ed3272f0f0c4c0f26fdc596975d7a | |
parent | 7ef123444ee735327e14bdd2b4c39977c1579144 (diff) | |
download | ports-7eaaab99f6825548d8c82a2290beb0ef8495188f.tar.gz ports-7eaaab99f6825548d8c82a2290beb0ef8495188f.zip |
games/xroach: Fix build with llvm16
- Pet portclippy
- Utilize USES=localbase while I am here
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
-rw-r--r-- | games/xroach/Makefile | 19 |
1 files 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 |