blob: 00bede844c1ccc0cfcef99f0a568ca746cdeb094 (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
# New ports collection makefile for: actioncube
# Date created: 2007-02-25
# Whom: alepulver
#
# $FreeBSD$
#
PORTNAME= assaultcube
PORTVERSION= 1.1.0.4
PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= SF/actiongame/AssaultCube%20Version%20${PORTVERSION}
DISTFILES= AssaultCube_v${PORTVERSION}_source${EXTRACT_SUFX} \
AssaultCube_v${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= lightside@safebox.ru
COMMENT= Total conversion of the FPS game called Cube
LICENSE_COMB= multi
LICENSE= ACUBE CUBE MIT OTHER
LICENSE_NAME_ACUBE= AssaultCube ZLIB-like license with additions
LICENSE_FILE_ACUBE= ${WRKSRC}/source/README.txt
LICENSE_PERMS_ACUBE= ${_LICENSE_PERMS_DEFAULT}
LICENSE_NAME_CUBE= Cube game engine ZLIB-like license with additions
LICENSE_FILE_CUBE= ${WRKSRC}/source/README_CUBEENGINE.txt
LICENSE_PERMS_CUBE= ${_LICENSE_PERMS_DEFAULT}
LICENSE_NAME_OTHER= various package licences
LICENSE_FILE_OTHER= ${WRKSRC}/docs/package_copyrights.txt
LICENSE_PERMS_OTHER= dist-mirror pkg-mirror auto-accept
USE_BZIP2= yes
USE_OPENAL= al
USE_GMAKE= yes
GNU_CONFIGURE= yes
ALL_TARGET= libenet
WRKSRC= ${WRKDIR}/${PORTVERSION}
CONFIGURE_ARGS= --enable-shared=no --enable-static=yes
CONFIGURE_WRKSRC= ${WRKSRC}/source/enet
BUILD_WRKSRC= ${WRKSRC}/source/src
MAKE_JOBS_SAFE= yes
PORTDATA= config demos packages
PORTDOCS= *
OPTIONS= CLIENT "Build client" on \
DEDICATED "Build dedicated server" on \
MASTER "Build master server" off
.include <bsd.port.pre.mk>
.if defined(WITHOUT_CLIENT) && defined(WITHOUT_DEDICATED) && defined(WITHOUT_MASTER)
IGNORE= needs at least one executable (CLIENT, DEDICATED or MASTER)
.endif
.if !defined(WITHOUT_CLIENT)
USE_GETTEXT= yes
USE_GL= yes
USE_SDL= image mixer sdl
ALL_TARGET+= client
SUB_FILES+= ${PORTNAME}_client
ACUBE_BIN+= client
DESKTOP_ENTRIES="AssaultCube" "${COMMENT}" \
"${DATADIR}/packages/misc/startscreen.png" "${PORTNAME}_client" \
"Application;Game;" ${FALSE}
.endif
.if !defined(WITHOUT_DEDICATED)
ALL_TARGET+= server
SUB_FILES+= ${PORTNAME}_server
ACUBE_BIN+= server
.endif
.if !defined(WITHOUT_MASTER)
ALL_TARGET+= master
SUB_FILES+= ${PORTNAME}_master
ACUBE_BIN+= master
.endif
do-install:
.for f in ${ACUBE_BIN}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}_${f} ${PREFIX}/bin
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/ac_${f} ${PREFIX}/libexec/${PORTNAME}_${f}
.endfor
.if !defined(NOPORTDATA)
${MKDIR} ${DATADIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDATA}" ${DATADIR}
.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
.endif
post-install:
.for f in ${ACUBE_BIN}
@${ECHO_CMD} bin/${PORTNAME}_${f} >> ${TMPPLIST}
@${ECHO_CMD} libexec/${PORTNAME}_${f} >> ${TMPPLIST}
.endfor
.include <bsd.port.post.mk>
|