openbsd-ports/games/supertux/Makefile
rsadowski f808e05b20 Remove USE_NINJA
Is no longer necessary here with newer cmake.port.mk
2022-09-02 15:46:42 +00:00

49 lines
1.1 KiB
Makefile

COMMENT = jump 'n' run game
V = 0.6.3
DISTNAME = SuperTux-v${V}-Source
PKGNAME = supertux-$V
CATEGORIES = games
HOMEPAGE = https://www.supertux.org/
MAINTAINER = Pascal Stumpf <pascal@stumpf.co>
# GPLv2+
PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} GL GLEW GLU SDL2 SDL2_image boost_date_time-mt
WANTLIB += boost_filesystem-mt boost_locale-mt boost_system-mt
WANTLIB += c curl freetype m ogg openal physfs png vorbis vorbisfile
WANTLIB += z
MASTER_SITES = https://github.com/SuperTux/supertux/releases/download/v${V}/
FIX_CRLF_FILES = external/squirrel/CMakeLists.txt
MAKE_ENV += CXXFLAGS="${CXXFLAGS}"
MODULES += devel/cmake
COMPILER = base-clang ports-gcc
BUILD_DEPENDS = graphics/glm
RUN_DEPENDS = devel/desktop-file-utils \
x11/gtk+3,-guic
LIB_DEPENDS = devel/sdl2-image \
devel/physfs \
graphics/glew \
net/curl \
audio/openal \
audio/libvorbis \
devel/boost
CONFIGURE_ARGS += -DINSTALL_SUBDIR_BIN="${LOCALBASE}/bin" \
-DBUILD_SHARED_LIBS=OFF
NO_TEST = Yes
pre-configure:
${SUBST_CMD} ${WRKSRC}/src/supertux/main.cpp
.include <bsd.port.mk>