git: 926ec7bbcc24 - main - games/xlennart: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 22 Jul 2023 06:11:38 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=926ec7bbcc241ab9055bae1e5c2c051368430d3a commit 926ec7bbcc241ab9055bae1e5c2c051368430d3a Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-07-22 06:10:49 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-07-22 06:11:21 +0000 games/xlennart: Fix build with llvm16 - Pet portclippy Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- games/xlennart/Makefile | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/games/xlennart/Makefile b/games/xlennart/Makefile index 8d38d958b57b..63f4392a2875 100644 --- a/games/xlennart/Makefile +++ b/games/xlennart/Makefile @@ -9,11 +9,13 @@ WWW= https://github.com/Xylemon/xlennart LICENSE= GPLv2 +USES= pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= Xylemon + GNU_CONFIGURE= yes CONFIGURE_ARGS= --localstatedir=${SCORES_DIR} -SCORES_DIR?= ${DATADIR}/scores - DESKTOP_ENTRIES="xLennart" \ "Save your computers from the evil clutches of Lennart" \ "${DATADIR}/pixmaps/icon.xpm" \ @@ -23,33 +25,35 @@ DESKTOP_ENTRIES="xLennart" \ PLIST_FILES= bin/${PORTNAME} \ man/man6/${PORTNAME}.6.gz - PORTDATA= * +OPTIONS_DEFAULT= GTK OPTIONS_SINGLE= WIDGETSET OPTIONS_SINGLE_WIDGETSET= ATHENA GTK MOTIF -OPTIONS_DEFAULT= GTK ATHENA_DESC= Athena widget set GTK_DESC= GTK widget set MOTIF_DESC= Motif widget set -USE_GITHUB= yes -GH_ACCOUNT= Xylemon - -USES= pkgconfig - -ATHENA_CONFIGURE_ON= --disable-gtk --disable-motif ATHENA_USES= xorg ATHENA_USE= XORG=xaw,xmu,xt,x11,sm,ice +ATHENA_CONFIGURE_ON= --disable-gtk --disable-motif -MOTIF_CONFIGURE_ON= --disable-athena --disable-gtk -MOTIF_USE= XORG=xt,x11,sm,ice,xpm MOTIF_USES= motif xorg +MOTIF_USE= XORG=xt,x11,sm,ice,xpm +MOTIF_CONFIGURE_ON= --disable-athena --disable-gtk GTK_USES= gnome xorg -GTK_CONFIGURE_ON= --disable-athena --disable-motif GTK_USE= GNOME=gtk20 XORG=sm,ice +GTK_CONFIGURE_ON= --disable-athena --disable-motif + +SCORES_DIR?= ${DATADIR}/scores + +.include <bsd.port.options.mk> + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif post-patch: @${REINPLACE_CMD} -e '/WIDGET_LIBS=/ s|-lXm"$$|-lXm -lXpm"|' \