git: a45239872095 - main - games/fillets-ng: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 21 Jul 2023 17:20:14 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a45239872095e6169698b5e029e6f160664a9e3a
commit a45239872095e6169698b5e029e6f160664a9e3a
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-21 16:54:02 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-21 17:20:04 +0000
games/fillets-ng: Fix build with llvm16
- Pet portclippy
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
games/fillets-ng/Makefile | 26 ++++++++++++++------------
1 file changed, 14 insertions(+), 12 deletions(-)
diff --git a/games/fillets-ng/Makefile b/games/fillets-ng/Makefile
index a66d5884a853..51524ecd9aaa 100644
--- a/games/fillets-ng/Makefile
+++ b/games/fillets-ng/Makefile
@@ -14,22 +14,17 @@ WWW= http://fillets.sourceforge.net/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
-USE_SDL= sdl mixer image ttf
+ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64 powerpc64le
+
USES= gmake lua:51 pkgconfig sdl
+USE_CXXSTD= c++14
+USE_SDL= sdl mixer image ttf
+
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --datadir="${DATADIR}"
CONFIGURE_ENV= LUA_LIBS="-L${LUA_LIBDIR} -llua-${LUA_VER}" \
LUA_CFLAGS="-I${LUA_INCDIR}"
-PLIST_FILES= bin/fillets man/man6/fillets.6.gz
-
-PORTDOCS= *
-PORTDATA= *
-
-DATAVERSION= 1.0.1
-
-ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64 powerpc64le
-
DESKTOP_ENTRIES="Fish Fillets - Next Generation" \
"" \
"${DATADIR}/images/icon.png" \
@@ -37,19 +32,26 @@ DESKTOP_ENTRIES="Fish Fillets - Next Generation" \
"Game;LogicGame;" \
false
+PLIST_FILES= bin/fillets man/man6/fillets.6.gz
+PORTDATA= *
+PORTDOCS= *
+
OPTIONS_DEFINE= DOCS FRIBIDI SMPEG X11
OPTIONS_DEFAULT=FRIBIDI SMPEG X11
-FRIBIDI_LIB_DEPENDS= libfribidi.so:converters/fribidi
SMPEG_DESC= Video playback support
-SMPEG_LIB_DEPENDS= libsmpeg.so:multimedia/smpeg
X11_DESC= X11 window manager support
+
+FRIBIDI_LIB_DEPENDS= libfribidi.so:converters/fribidi
+SMPEG_LIB_DEPENDS= libsmpeg.so:multimedia/smpeg
X11_USES= xorg
X11_USE= xorg=x11
X11_CONFIGURE_ON= --with-X=yes
X11_CONFIGURE_OFF= --with-X=no
X11_LDFLAGS= -L${LOCALBASE}/lib
+DATAVERSION= 1.0.1
+
post-patch:
@${REINPLACE_CMD} -e '/LIBS/ s|-llualib[50.]*||g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/configure