bcallah 46ee18dd50 There are random, intermittent build failures during the fake stage with
Ninja. For the time being, build openclonk without Ninja--I've spent all
day running and rerunning builds with USE_NINJA=No and haven't hit any
failures. I will track this down and figure it out, but for now add a
USE_NINJA=No line so that I'm not bothering the bulk builders. While here,
add myself as MAINTAINER (oversight) and bump.

Build failure spotted by naddy@, thanks.
2018-08-10 00:27:50 +00:00

59 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.2 2018/08/10 00:27:50 bcallah Exp $
V = 8.1
COMMENT = tactical action game focusing on controlling Clonks
DISTNAME = openclonk-${V}-src
PKGNAME = openclonk-${V}
REVISION = 0
EXTRACT_SUFX = .tar.bz2
CATEGORIES = games x11
HOMEPAGE = https://openclonk.org/
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
# engine: ISC
# content: CC BY-SA, CC BY, CC0
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += ${COMPILER_LIBCXX} GL GLEW GLU Qt5Core Qt5Gui Qt5Widgets
WANTLIB += SDL2 X11 alut c freetype jpeg m miniupnpc ogg openal
WANTLIB += png tinyxml vorbis vorbisfile z
MASTER_SITES = https://www.openclonk.org/builds/release/${V}/
# C++14
COMPILER = base-clang ports-gcc
MODULES = devel/cmake \
x11/qt5
BUILD_DEPENDS = x11/gtksourceview3
LIB_DEPENDS = audio/freealut \
audio/libvorbis \
devel/sdl2 \
graphics/glew \
graphics/jpeg \
graphics/png \
net/miniupnp/miniupnpc \
textproc/tinyxml
RUN_DEPENDS = devel/desktop-file-utils \
x11/gtk+3,-guic
# CMAKE_EXE_LINKER_FLAGS to make lld happy.
CONFIGURE_ARGS += -DFREETYPE_INCLUDE_DIRS="${X11BASE}/include/freetype2" \
-DHAVE_PRECOMPILED_HEADERS:BOOL=OFF \
-DGLDEBUGPROCARB_USERPARAM_IS_CONST=ON \
-DCMAKE_CXX_FLAGS="${CXXFLAGS} -I${X11BASE}/include" \
-DCMAKE_EXE_LINKER_FLAGS="-L${LOCALBASE}/lib"
# Random, intermittent failures with Ninja during fake.
USE_NINJA = No
NO_TEST = Yes
WRKDIST = ${WRKDIR}/openclonk-release-${V}-src
.include <bsd.port.mk>