View | Details | Raw Unified | Return to bug 155525
Collapse All | Expand All

(-)assaultcube/Makefile (-9 / +19 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	assaultcube
8
PORTNAME=	assaultcube
9
PORTVERSION=	1.1.0.4
9
PORTVERSION=	1.1.0.4
10
PORTREVISION?=	1
10
CATEGORIES=	games
11
CATEGORIES=	games
11
MASTER_SITES=	SF/actiongame/AssaultCube%20Version%20${PORTVERSION}
12
MASTER_SITES=	SF/actiongame/AssaultCube%20Version%20${PORTVERSION}
12
DISTFILES=	AssaultCube_v${PORTVERSION}_source${EXTRACT_SUFX} \
13
DISTFILES=	AssaultCube_v${PORTVERSION}_source${EXTRACT_SUFX} \
Lines 15-20 Link Here
15
MAINTAINER=	lightside@safebox.ru
16
MAINTAINER=	lightside@safebox.ru
16
COMMENT=	Total conversion of the FPS game called Cube
17
COMMENT=	Total conversion of the FPS game called Cube
17
18
19
LICENSE_COMB=	multi
20
LICENSE=	ACUBE CUBE MIT OTHER
21
LICENSE_NAME_ACUBE=	AssaultCube ZLIB-like license with additions
22
LICENSE_FILE_ACUBE=	${WRKSRC}/source/README.txt
23
LICENSE_PERMS_ACUBE=	${_LICENSE_PERMS_DEFAULT}
24
LICENSE_NAME_CUBE=	Cube game engine ZLIB-like license with additions
25
LICENSE_FILE_CUBE=	${WRKSRC}/source/README_CUBEENGINE.txt
26
LICENSE_PERMS_CUBE=	${_LICENSE_PERMS_DEFAULT}
27
LICENSE_NAME_OTHER=	various package licences
28
LICENSE_FILE_OTHER=	${WRKSRC}/docs/package_copyrights.txt
29
LICENSE_PERMS_OTHER=	dist-mirror pkg-mirror auto-accept
30
18
USE_BZIP2=	yes
31
USE_BZIP2=	yes
19
USE_OPENAL=	al
32
USE_OPENAL=	al
20
USE_GMAKE=	yes
33
USE_GMAKE=	yes
Lines 29-40 Link Here
29
PORTDATA=	config demos packages
42
PORTDATA=	config demos packages
30
PORTDOCS=	*
43
PORTDOCS=	*
31
44
32
CFLAGS+=	-DFREEBSD
33
34
OPTIONS=	CLIENT "Build client" on \
45
OPTIONS=	CLIENT "Build client" on \
35
		DEDICATED "Build dedicated server" on \
46
		DEDICATED "Build dedicated server" on \
36
		MASTER "Build master server" off \
47
		MASTER "Build master server" off
37
		OPTIMIZED_CFLAGS "Enable compilation optimizations" on
38
48
39
.include <bsd.port.pre.mk>
49
.include <bsd.port.pre.mk>
40
50
Lines 43-53 Link Here
43
.endif
53
.endif
44
54
45
.if !defined(WITHOUT_CLIENT)
55
.if !defined(WITHOUT_CLIENT)
56
USE_GETTEXT=	yes
46
USE_GL=		yes
57
USE_GL=		yes
47
USE_SDL=	image mixer sdl
58
USE_SDL=	image mixer sdl
48
ALL_TARGET+=	client
59
ALL_TARGET+=	client
49
SUB_FILES+=	${PORTNAME}_client
60
SUB_FILES+=	${PORTNAME}_client
50
ACUBE_BIN+=	client
61
ACUBE_BIN+=	client
62
63
DESKTOP_ENTRIES="AssaultCube" "${COMMENT}" \
64
	"${DATADIR}/packages/misc/startscreen.png" "${PORTNAME}_client" \
65
	"Application;Game;" ${FALSE}
51
.endif
66
.endif
52
67
53
.if !defined(WITHOUT_DEDICATED)
68
.if !defined(WITHOUT_DEDICATED)
Lines 62-72 Link Here
62
ACUBE_BIN+=	master
77
ACUBE_BIN+=	master
63
.endif
78
.endif
64
79
65
.if defined(WITHOUT_OPTIMIZED_CFLAGS)
66
post-patch:
67
	@${REINPLACE_CMD} -e 's|$$(CXXOPTFLAGS)||' ${WRKSRC}/source/src/Makefile
68
.endif
69
70
do-install:
80
do-install:
71
.for f in ${ACUBE_BIN}
81
.for f in ${ACUBE_BIN}
72
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}_${f} ${PREFIX}/bin
82
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}_${f} ${PREFIX}/bin
(-)assaultcube/files/assaultcube_client.in (-1 / +1 lines)
Lines 6-12 Link Here
6
# are copied, and write permission for the user is added to them.
6
# are copied, and write permission for the user is added to them.
7
7
8
APPNAME="assaultcube"
8
APPNAME="assaultcube"
9
CUBE_OPTIONS="--home=~/.${APPNAME} --init"
9
CUBE_OPTIONS="--home=${HOME}/.${APPNAME} --init"
10
10
11
if [ -d ~/.$APPNAME ]
11
if [ -d ~/.$APPNAME ]
12
then
12
then

Return to bug 155525