openbsd-ports/games/dhewm3/Makefile
sthen 9356d2ac79 remove some extraneous DISTNAME setting from GH_TAGNAME ports,
move GH_* up in a few cases where it's halfway through the Makefile
2020-02-14 11:11:32 +00:00

48 lines
969 B
Makefile

# $OpenBSD: Makefile,v 1.13 2020/02/14 11:11:33 sthen Exp $
ONLY_FOR_ARCHS = amd64 i386
GH_ACCOUNT = dhewm
GH_PROJECT = dhewm3
GH_TAGNAME = 1.5.0
COMMENT = open-source version of Doom 3
CATEGORIES = games
HOMEPAGE = https://github.com/dhewm/dhewm3
MAINTAINER = Pascal Stumpf <pascal@stumpf.co>
# GPLv3+
PERMIT_PACKAGE = Yes
WANTLIB += SDL2 c curl jpeg m ogg openal pthread vorbis vorbisfile
WANTLIB += z
WANTLIB += ${COMPILER_LIBCXX}
MODULES = devel/cmake
COMPILER = base-clang ports-gcc
LIB_DEPENDS = devel/sdl2 \
audio/openal \
net/curl \
audio/libvorbis \
graphics/jpeg
NO_TEST = Yes
WRKSRC = ${WRKDIST}/neo
CFLAGS += -I${X11BASE}/include \
-DLINUX_DEFAULT_PATH=\\\"${TRUEPREFIX}/share/dhewm3\\\"
CXXFLAGS += -I${X11BASE}/include \
-DLINUX_DEFAULT_PATH=\\\"${TRUEPREFIX}/share/dhewm3\\\"
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/dhewm3
${INSTALL_DATA_DIR} ${PREFIX}/share/dhewm3/base
.include <bsd.port.mk>