blob: f37682f115d89d34adebe46cf9988a3890669bdb (
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
|
# New ports collection makefile for: cube
# Date created: 17 October 2002
# Whom: Arjan van Leeuwen
#
# $FreeBSD$
#
PORTNAME= cube
PORTVERSION= 2004.05.22
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}_${PORTVERSION:S/./_/g}
MAINTAINER= avleeuwen@piwebs.com
COMMENT= An OpenGL 3D First Person Shooter game
EXTRACT_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
USE_SDL= image mixer sdl
USE_GMAKE= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
BUILD_WRKSRC= ${WRKSRC}/source/src
DATADIR= ${PREFIX}/share/cube
CONFIGURE_WRKSRC= ${WRKSRC}/source/enet
SUB_FILES= cube_client cube_server
post-extract:
@ ${UNZIP_CMD} -a -q -o ${WRKSRC}/source/${DISTNAME}_src.zip -d ${WRKSRC}/source/
post-patch:
@${REINPLACE_CMD} -e 's|%%CXX%%|${CXX}|g ; \
s|%%CXXFLAGS%%|${CXXFLAGS}|g ; s|%%X11BASE%%|${X11BASE}|g' \
${BUILD_WRKSRC}/Makefile
pre-configure:
@${CHMOD} u+x ${CONFIGURE_WRKSRC}/configure
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/cube_client ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKDIR}/cube_server ${PREFIX}/bin
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/cube_client ${PREFIX}/libexec
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/cube_server ${PREFIX}/libexec
${MKDIR} ${DATADIR}/savegames
${CP} -Rp ${WRKSRC}/packages ${DATADIR}
${CP} -Rp ${WRKSRC}/data ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/autoexec.cfg ${DATADIR}
.include <bsd.port.mk>
|