-
Notifications
You must be signed in to change notification settings - Fork 88
/
Copy pathMakefile
57 lines (38 loc) · 1.35 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# $OpenBSD$
COMMENT = Flying With Gauss Goldsrc-compatible game engine
GH_ACCOUNT = FWGS
GH_PROJECT = xash3d
GH_TAGNAME = v0.19.2
MAINUI_COMMIT = 398b3fa27061519a6ba1ce9bdc1a705b11a32a15
CATEGORIES = games
HOMEPAGE = https://xash.su
MAINTAINER = ryan@slipgate.org
# Mixed license, GPL v3+ for engine library, MIT for cmake files.
# Source: https://github.com/FWGS/xash3d/blob/master/README.md
# Valve EULA on some headers. Redistribution not permitted without
# permission from Valve.
# Source: https://github.com/FWGS/xash3d-fwgs/blob/master/engine/edict.h#L9
PERMIT_PACKAGE = No
WANTLIB += ${COMPILER_LIBCXX} c fontconfig freetype m z SDL2
MASTER_SITES0 = https://github.com/FWGS/mainui_cpp/archive/
DISTFILES = ${DISTNAME}${EXTRACT_SUFX} \
${MAINUI_COMMIT}.tar.gz:0
MODULES = devel/cmake
LIB_DEPENDS = devel/sdl2
COMPILER = base-clang ports-gcc
CONFIGURE_ARGS = -DXASH_SINGLE_BINARY=yes \
-DXASH_SDK=${WRKSRC}
.include <bsd.port.arch.mk>
.if ${ARCH:M${LP64_ARCHS}}
CONFIGURE_ARGS += -DXASH_64BIT=yes
.endif
CONFIGURE_ENV = CFLAGS="-I${X11BASE}/include" LDFLAGS="-L${X11BASE}/lib"
NO_TEST = Yes
post-extract:
rmdir ${WRKSRC}/mainui
ln -s ${WRKDIR}/mainui_cpp-${MAINUI_COMMIT} ${WRKSRC}/mainui
${SUBST_CMD} -m 0755 -c ${FILESDIR}/xash3d.sh \
${WRKSRC}/scripts/xash3d.sh
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/xash3d
.include <bsd.port.mk>