summaryrefslogtreecommitdiff
path: root/games/fillets-ng/Makefile
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-21 18:54:02 +0200
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-21 19:20:04 +0200
commita45239872095e6169698b5e029e6f160664a9e3a (patch)
treed5caf249bcc9bd182a61da592a63b40f8a8d5b6a /games/fillets-ng/Makefile
parentscience/iboview: Fix build with llvm16 (diff)
games/fillets-ng: Fix build with llvm16
- Pet portclippy Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
Diffstat (limited to '')
-rw-r--r--games/fillets-ng/Makefile26
1 files 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