blob: e3890f033b2c7185f19985c8aee2a8dd53bdd47f (
plain) (
blame)
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
58
59
|
PORTNAME= teeworlds
PORTVERSION= 0.7.5
PORTREVISION= 2
CATEGORIES= games
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Platform game featuring buggers equipped with weapons
WWW= https://www.teeworlds.com/
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/license.txt
USE_GITHUB= yes
GH_TUPLE= teeworlds:teeworlds-translation:4ed69dd:translations/datasrc/languages \
teeworlds:teeworlds-maps:1d3401a:maps/datasrc/maps
USES= cmake cpe pkgconfig python ssl
USE_CSTD= c99
CPE_VERSION= ${PORTVERSION:C/^0\.//}
CMAKE_ARGS= -DPYTHON_EXECUTABLE="${PYTHON_CMD}"
PLIST_FILES= bin/${PORTNAME}_srv
PORTDATA= *
OPTIONS_DEFINE= CLIENT TEST
OPTIONS_DEFAULT= CLIENT TEST
CLIENT_DESC= Build game client
CLIENT_CMAKE_BOOL= CLIENT
CLIENT_USES= gl sdl xorg
CLIENT_USE= GL=gl XORG=x11 SDL=sdl2
CLIENT_LIB_DEPENDS= libfreetype.so:print/freetype2 \
libwavpack.so:audio/wavpack \
libpnglite.so:graphics/pnglite
CLIENT_PLIST_FILES= bin/${PORTNAME}
TEST_BUILD_DEPENDS= googletest>=0:devel/googletest
TEST_TEST_TARGET= run_tests
post-extract:
@${RM} -r ${WRKSRC}/src/engine/external/wavpack
@${RM} -r ${WRKSRC}/src/engine/external/pnglite
@${RM} -r ${WRKSRC}/src/engine/external/zlib
post-patch:
@${REINPLACE_CMD} -e '/find_package.*Git/ d' ${WRKSRC}/CMakeLists.txt
post-patch-CLIENT-off:
@${REINPLACE_CMD} -e '/find_package.*Pnglite/ d' ${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -e '/find_package.*Wavpack/ d' ${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -e '/find_package.*SDL2/ d' ${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -e '/find_package.*Freetype/ d' ${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -e '/find_package.*OpenGL/ d' ${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -e '/find_package.*X11/ d' ${WRKSRC}/CMakeLists.txt
post-patch-TEST-off:
@${REINPLACE_CMD} -e '/find_package.*GTest/ d' ${WRKSRC}/CMakeLists.txt
.include <bsd.port.mk>
|