1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00

games/instead: enable harfbuzz support, fix lua(jit) deps

- Enable harfbuzz support which is now available in SDL2_ttf (disabled
  by default according to upstream setting) [1]
- Switch luajit dependency to USES=luajit (it also should now work on
  powerpc, so a related hack is no longer needed)
- Fix dependency on lua
- Remove no longer needed CMake argument

PR:		271545 [1]
Reported by:	jbeich [1]
This commit is contained in:
Dmitry Marakasov 2023-05-22 18:41:29 +03:00
parent 092787dffe
commit 79e392c15d

View File

@ -1,6 +1,6 @@
PORTNAME= instead
PORTVERSION= 3.5.0
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= SF
DISTNAME= ${PORTNAME}_${PORTVERSION}
@ -12,16 +12,15 @@ WWW= https://instead.syscall.ru/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
USES= cmake compiler:c++11-lang iconv lua:51 pkgconfig sdl
USES= cmake compiler:c++11-lang iconv pkgconfig sdl
USE_SDL= sdl2 image2 ttf2 mixer2
CMAKE_ARGS= -DMANDIR=share/man
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PORTDOCS= *
PORTDATA= *
OPTIONS_DEFINE= LUAJIT DOCS # HARFBUZZ # requires unreleased version of sdl2_ttf
OPTIONS_DEFINE= LUAJIT DOCS HARFBUZZ
OPTIONS_DEFAULT= LUAJIT GTK3
OPTIONS_RADIO= GTK_VERSION
OPTIONS_RADIO_GTK_VERSION= GTK2 GTK3
@ -38,16 +37,10 @@ GTK2_CMAKE_BOOL= WITH_GTK2
GTK3_USES= gnome
GTK3_USE= GNOME=gtk30
GTK3_CMAKE_BOOL= WITH_GTK3
LUAJIT_LIB_DEPENDS= libluajit-5.1.so:lang/luajit
LUAJIT_USE_OFF= lua:51
LUAJIT_USES= luajit
LUAJIT_USES_OFF= lua:51
LUAJIT_CMAKE_BOOL= WITH_LUAJIT
HARFBUZZ_CMAKE_BOOL= WITH_HARFBUZZ
HARFBUZZ_LIB_DEPENDS= libharfbuzz.so:print/harfbuzz
.include <bsd.port.options.mk>
.if ${ARCH:Mpowerpc64*}
LUAJIT_LIB_DEPENDS= libluajit-5.1.so:lang/luajit-openresty
.endif
.include <bsd.port.mk>