blob: 2185d3e84c5dcef357b2b0249b32204fd5bc372f (
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
|
# New ports collection makefile for: sauerbraten
# Date created: 2006-02-01
# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
#
# $FreeBSD$
#
PORTNAME= bloodfrontier
DISTVERSION= B2
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/Blood%20Frontier/Blood%20Frontier%20Beta%202
DISTNAME= ${PORTNAME}-${DISTVERSION}-linux
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Single- and multi-player first-person shooter based on Cube 2
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_BZIP2= yes
CONFIGURE_WRKSRC= ${WRKSRC}/src/enet
BUILD_WRKSRC= ${WRKSRC}/src
WRKSRC= ${WRKDIR}/${PORTNAME}
ALL_TARGET= libenet ${BINARIES}
MAKE_JOBS_SAFE= yes
SUB_FILES= bfclient bfserver pkg-message
OPTIONS= CLIENT "Build client" on \
DEDICATED "Build dedicated server" on
.include <bsd.port.options.mk>
.if defined(WITHOUT_CLIENT) && defined(WITHOUT_DEDICATED)
IGNORE= needs at least one executable (CLIENT or DEDICATED)
.endif
.if !defined(WITHOUT_CLIENT)
USE_GL= yes
USE_SDL= image mixer sdl
PLIST_FILES+= bin/bfclient libexec/bfclient
BINARIES+= client
.endif
.if !defined(WITHOUT_DEDICATED)
PLIST_FILES+= bin/bfserver libexec/bfserver
BINARIES+= server
.endif
do-install:
.for f in ${BINARIES}
${INSTALL_SCRIPT} ${WRKDIR}/bf${f} ${PREFIX}/bin
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/bf${f} ${PREFIX}/libexec
.endfor
${MKDIR} ${DATADIR}
cd ${WRKSRC}/data && ${COPYTREE_SHARE} "." ${DATADIR}/
post-install:
@${FIND} ${DATADIR} -type f | \
${SED} -e 's|^${PREFIX}/||' >> ${TMPPLIST}
@${FIND} ${DATADIR} -type d | ${SORT} -r | \
${SED} -e 's|^${PREFIX}/|@dirrm |' >> ${TMPPLIST}
@${ECHO_CMD}
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD}
.include <bsd.port.mk>
|