2019-07-12 20:45:45 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.22 2019/07/12 20:46:25 sthen Exp $
|
2013-08-12 16:43:38 +00:00
|
|
|
|
|
|
|
COMMENT = jump 'n' run game
|
|
|
|
|
2019-02-04 10:02:07 +00:00
|
|
|
V = 0.6.0
|
2017-04-18 16:28:50 +00:00
|
|
|
DISTNAME = SuperTux-v${V}-Source
|
|
|
|
PKGNAME = supertux-$V
|
2019-05-17 16:45:25 +00:00
|
|
|
REVISION = 2
|
2013-08-12 16:43:38 +00:00
|
|
|
|
|
|
|
CATEGORIES = games
|
|
|
|
|
2019-02-28 17:42:53 +00:00
|
|
|
HOMEPAGE = https://www.supertux.org/
|
2013-08-12 16:43:38 +00:00
|
|
|
|
2016-05-07 12:40:56 +00:00
|
|
|
MAINTAINER = Pascal Stumpf <pascal@stumpf.co>
|
2013-08-12 16:43:38 +00:00
|
|
|
|
|
|
|
# GPLv2+
|
2019-07-12 20:45:45 +00:00
|
|
|
PERMIT_PACKAGE = Yes
|
2013-08-12 16:43:38 +00:00
|
|
|
|
2019-02-04 10:02:07 +00:00
|
|
|
WANTLIB += ${COMPILER_LIBCXX} GL GLEW GLU SDL2 SDL2_image boost_date_time-mt
|
|
|
|
WANTLIB += boost_filesystem-mt boost_locale-mt boost_system-mt
|
2019-05-17 16:45:25 +00:00
|
|
|
WANTLIB += c curl freetype m ogg openal png vorbis vorbisfile
|
2019-02-04 10:02:07 +00:00
|
|
|
WANTLIB += z
|
2013-08-12 16:43:38 +00:00
|
|
|
|
2016-01-21 16:04:47 +00:00
|
|
|
MASTER_SITES = https://github.com/SuperTux/supertux/releases/download/v${V}/
|
2017-04-18 16:28:50 +00:00
|
|
|
|
|
|
|
MAKE_ENV += CXXFLAGS="${CXXFLAGS}"
|
2013-08-12 16:43:38 +00:00
|
|
|
|
2017-05-27 04:51:01 +00:00
|
|
|
MODULES += devel/cmake
|
2019-02-04 10:02:07 +00:00
|
|
|
USE_NINJA = No
|
2017-11-16 23:20:37 +00:00
|
|
|
COMPILER = base-clang ports-gcc
|
2019-02-04 10:02:07 +00:00
|
|
|
RUN_DEPENDS = devel/desktop-file-utils \
|
|
|
|
x11/gtk+3,-guic
|
2017-04-18 16:28:50 +00:00
|
|
|
LIB_DEPENDS = devel/sdl2-image \
|
2016-01-21 16:04:47 +00:00
|
|
|
graphics/glew \
|
|
|
|
net/curl \
|
|
|
|
audio/openal \
|
2017-04-18 16:28:50 +00:00
|
|
|
audio/libvorbis \
|
|
|
|
devel/boost
|
2013-08-12 16:43:38 +00:00
|
|
|
|
2016-01-21 16:04:47 +00:00
|
|
|
CONFIGURE_ARGS += -DINSTALL_SUBDIR_BIN="${LOCALBASE}/bin" \
|
|
|
|
-DBUILD_SHARED_LIBS=OFF
|
2013-08-12 16:43:38 +00:00
|
|
|
|
|
|
|
NO_TEST = Yes
|
2016-01-21 16:04:47 +00:00
|
|
|
|
|
|
|
post-extract:
|
|
|
|
perl -i -pe 's/\r$$//' ${WRKDIST}/external/squirrel/CMakeLists.txt
|
2013-08-12 16:43:38 +00:00
|
|
|
|
2019-04-05 08:07:23 +00:00
|
|
|
pre-configure:
|
|
|
|
${SUBST_CMD} ${WRKSRC}/src/supertux/main.cpp
|
|
|
|
|
2013-08-12 16:43:38 +00:00
|
|
|
.include <bsd.port.mk>
|