Files
jsg 11117bf5db update to scummvm 2026.2.0
tinygl is enabled again after an upstream change to reduce memory usage
2026-04-04 06:44:42 +00:00

75 lines
1.6 KiB
Makefile

COMMENT= game interpreter
V= 2026.2.0
DISTNAME= scummvm-${V}
CATEGORIES= games x11 emulators
SITES= https://downloads.scummvm.org/frs/scummvm/${V}/
HOMEPAGE= https://www.scummvm.org/
MAINTAINER= Jonathan Gray <jsg@openbsd.org>
# GPLv3+
PERMIT_PACKAGE= Yes
WANTLIB += FLAC SDL2 a52 c faad fluidsynth freetype fribidi gif iconv jpeg
WANTLIB += m mad mikmod mpeg2 png ogg sndio ${COMPILER_LIBCXX} theoradec
WANTLIB += vorbis vorbisfile z
# C++11
COMPILER= base-clang ports-gcc
.if ${MACHINE_ARCH} == "i386"
BUILD_DEPENDS= devel/nasm
.endif
RUN_DEPENDS= devel/desktop-file-utils \
x11/gtk+4,-guic
LIB_DEPENDS= audio/fluidsynth \
audio/liba52 \
audio/libmad \
audio/libmikmod \
audio/libvorbis \
audio/flac \
audio/faad>=2.7 \
devel/fribidi \
devel/sdl2 \
graphics/giflib \
graphics/libmpeg2 \
graphics/png \
graphics/jpeg \
multimedia/libtheora
.if ${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el"
CXXFLAGS+= -mxgot
.endif
CONFIGURE_STYLE=simple
CONFIGURE_ARGS+=--disable-alsa \
--disable-cloud \
--disable-debug \
--disable-discord \
--disable-fluidlite \
--disable-gtk \
--disable-libcurl \
--disable-libunity \
--disable-mpcdec \
--disable-sdlnet \
--disable-system-dialogs \
--disable-tts \
--disable-enet \
--disable-vpx \
--enable-release \
--enable-sndio \
--mandir="${LOCALBASE}/man"
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
DEBUG_PACKAGES= ${BUILD_PACKAGES}
NO_TEST= Yes
USE_GMAKE= Yes
MAKE_ENV+= CXXFLAGS="${CXXFLAGS}" CXX="${CXX}" VERBOSE_BUILD=1 USE_CURL=
.include <bsd.port.mk>