edd 52eafd1fa2 Import games/odamex.
```
Odamex is a free, cross-platform modification of the Doom engine that allows
players to easily join servers dedicated to playing Doom online.
```

OK solene@, thanks!
2020-10-05 21:07:37 +00:00

54 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2020/10/05 21:07:37 edd Exp $
COMMENT = online multiplayer doom
V = 0.8.3
DISTNAME = odamex-src-${V}
PKGNAME = odamex-${V}
CATEGORIES = games
HOMEPAGE = https://odamex.net/
MAINTAINER = Edd Barrett <edd@openbsd.org>
# GPLv2
PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} ICE SDL2 SDL2_mixer SM X11 Xext
WANTLIB += c execinfo m miniupnpc png portmidi wx_baseu-3.0 wx_baseu_net-3.0
WANTLIB += wx_baseu_xml-3.0 wx_gtk3u_adv-3.0 wx_gtk3u_core-3.0
WANTLIB += wx_gtk3u_html-3.0 wx_gtk3u_qa-3.0 wx_gtk3u_xrc-3.0
WANTLIB += z
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=odamex/}
EXTRACT_SUFX = .tar.bz2
COMPILER = base-clang ports-gcc base-gcc
MODULES = devel/cmake
CONFIGURE_ARGS += -DCMAKE_CXX_FLAGS=-I${LOCALBASE}/include
LIB_DEPENDS = devel/libexecinfo \
x11/wxWidgets \
audio/portmidi \
graphics/png \
devel/sdl2-mixer \
net/miniupnp/miniupnpc
NO_TEST = Yes
pre-build:
${SUBST_CMD} ${WRKSRC}/CMakeLists.txt
${SUBST_CMD} ${WRKSRC}/server/CMakeLists.txt
EXAMPLES_DIR = ${PREFIX}/share/examples/odamex
post-install:
mv ${PREFIX}/share/odamex/config-samples ${EXAMPLES_DIR}
chown -r ${shareown}:${sharegrp} ${EXAMPLES_DIR}
# Fix MS-DOS line endings.
pre-patch:
@cd ${WRKSRC} && perl -i -pe 's/\r$$//' CMakeLists.txt
.include <bsd.port.mk>