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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
PORTNAME= tesseract
DISTVERSION= 2014_05_12
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://download.tuxfamily.org/${PORTNAME}/
PKGNAMESUFFIX= -game
DISTNAME= ${PORTNAME}_${DISTVERSION}_first_edition_linux
MAINTAINER= operator@myrechenzentrum.net
COMMENT= Smooth FPS with map editing, instagib, DM and CTF
LICENSE= ZLIB
LIB_DEPENDS= libenet.so:net/enet
RUN_DEPENDS= ${PKGBASE}-data>=${PORTVERSION}:games/tesseract-data
USES= gmake pkgconfig tar:xz
EXCLUDE= bin_unix config media screenshot src/enet src/lib\* src/xcode
EXTRACT_AFTER_ARGS=${EXCLUDE:S,^,--exclude ,}
WRKSRC= ${WRKDIR}/${PORTNAME}
BUILD_WRKSRC= ${WRKSRC}/src
ALL_TARGET= # empty
SUB_FILES= tess_wrapper
PORTDOCS= *
OPTIONS_DEFINE= DOCS
OPTIONS_DEFAULT=CLIENT DEDICATED
OPTIONS_MULTI= FLAVOR
OPTIONS_MULTI_FLAVOR=CLIENT DEDICATED MASTER
CLIENT_DESC= Build client
CLIENT_USES= gl sdl xorg
CLIENT_USE= GL=gl SDL=image2,mixer2 XORG=x11
CLIENT_ALL_TARGET= client
CLIENT_PLIST_FILES= bin/tess_client libexec/tess_client
CLIENT_DESKTOP_ENTRIES= "Tesseract" \
"" \
"${DATADIR}/media/interface/cube.png" \
"tess_client" \
"Game;Shooter;" \
""
DEDICATED_DESC= Build dedicated server
DEDICATED_ALL_TARGET= server
DEDICATED_PLIST_FILES= bin/tess_server libexec/tess_server
MASTER_DESC= Build master server
MASTER_ALL_TARGET= master
MASTER_PLIST_FILES= bin/tess_master libexec/tess_master
post-patch:
@${REINPLACE_CMD} -e '/OBJS.*PCH/d' \
-e '/-fomit-frame-pointer/d' \
-e 's,-I/usr/X11R6/include,,' \
-e 's,-L/usr/X11R6/lib,,' \
-e 's,libenet ,,' \
-e 's,-Ienet/include,`pkg-config --cflags libenet`,' \
-e 's,-Lenet -lenet,`pkg-config --libs libenet`,' \
${BUILD_WRKSRC}/Makefile
do-install:
for f in ${PLIST_FILES:Mbin/*}; do \
${INSTALL_SCRIPT} ${WRKDIR}/tess_wrapper \
${STAGEDIR}${PREFIX}/$$f; \
done
for f in ${PLIST_FILES:Mlibexec/*}; do \
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/$${f##*/} \
${STAGEDIR}${PREFIX}/$${f%/*}; \
done
do-install-DOCS-on:
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \
. ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>
|