blob: 8fb88f3ace11815540cf8ceffde03bfe90302733 (
plain)
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
|
# New ports collection makefile for: legesmotus
# Date created: 16 Jul 2009
# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= legesmotus
PORTVERSION= 0.3.0
CATEGORIES= games
MASTER_SITES= SF
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= A team-based, networked, 2D shooter set in zero-gravity
USE_GMAKE= yes
MAKE_ENV= DATADIR=${DATADIR} XDIR=${LOCALBASE}
MAKE_JOBS_SAFE= yes
PORTDOCS= *
MAN6= lmserver.6
OPTIONS= LM_SERVER_ONLY "Build dedicated server only" off
DESKTOP_ENTRIES="Leges Motus" \
"A team-based, networked, 2D shooter set in zero-gravity" \
"${DATADIR}/sprites/blue_head32.png" \
"legesmotus" \
"Game;ActionGame;" \
false
.include <bsd.port.options.mk>
.if defined(WITH_LM_SERVER_ONLY)
PLIST_SUB+= CLIENT="@comment "
ALL_TARGET= server
PKGNAMESUFFIX= -server
.else
MAN6+= legesmotus.6
PLIST_SUB+= CLIENT=""
USE_SDL= sdl image ttf mixer
USE_GL= gl
.endif
.include <bsd.port.pre.mk>
do-install:
${MKDIR} ${DATADIR}
.if !defined(WITH_LM_SERVER_ONLY)
${INSTALL_PROGRAM} ${WRKSRC}/client/legesmotus ${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/man/man6/legesmotus.6 ${MAN6PREFIX}/man/man6/
cd ${WRKSRC}/data && ${COPYTREE_SHARE} '*' ${DATADIR}/
.else
cd ${WRKSRC}/data && ${COPYTREE_SHARE} 'maps' ${DATADIR}/
.endif
${INSTALL_PROGRAM} ${WRKSRC}/server/lmserver ${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/man/man6/lmserver.6 ${MAN6PREFIX}/man/man6/
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
.endif
.include <bsd.port.post.mk>
|