blob: 076a721be720c081021d69350c0e4c76afe3084a (
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
|
# Created by: Alejandro Pulver <alejandro@varnet.biz>
# $FreeBSD$
PORTNAME= source
PORTVERSION= 1.01
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_IDSOFTWARE}
MASTER_SITE_SUBDIR= source
PKGNAMEPREFIX= quake-
DISTNAME= qcc
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Quake game source code
NO_BUILD= yes
NO_WRKSUBDIR= yes
LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}
OPTIONS_DEFINE= QUAKEWORLD
OPTIONS_DEFAULT= QUAKEWORLD
QUAKEWORLD_DESC= Install QuakeWorld game source
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MQUAKEWORLD}
MASTER_SITES+= ${MASTER_SITE_IDSOFTWARE:S|$|quakeworld/unix/:qw|}
DISTFILES+= qwsv-2.30-glibc-i386-unknown-linux2.0${EXTRACT_SUFX}:qw
COMMENT:= ${COMMENT:S/Quake/& and QuakeWorld/}
PLIST_SUB+= QUAKEWORLD=""
.else
PLIST_SUB+= QUAKEWORLD="@comment "
.endif
pre-patch:
# CRLF -> LF conversion (XXX why not USE_DOS2UNIX?)
@${FIND} ${WRKSRC} -type f | ${XARGS} ${FILE} | \
${GREP} 'CRLF' | ${SED} -e 's/:.*//' | ${XARGS} \
${REINPLACE_CMD} -i "" -e "s/`${PRINTF} '\r'`$$//"
post-patch:
@${REINPLACE_CMD} -e 's,^\.\.,.,' ${WRKSRC}/send/v101qc/progs.src
@${RM} ${WRKSRC}/send/v101qc/progs.src.bak
do-install:
@${MKDIR} ${DATADIR}
${CP} -a ${WRKSRC}/send/v101qc ${DATADIR}
.if ${PORT_OPTIONS:MQUAKEWORLD}
@${MKDIR} ${DATADIR}/qw
. for f in *.h *.qc *.src
@${REINPLACE_CMD} -e "s|`${ECHO_CMD} -e '\r'`$$||" ${WRKSRC}/qw/${f}
${INSTALL_DATA} ${WRKSRC}/qw/${f} ${DATADIR}/qw
. endfor
.endif
.include "Makefile.include"
.include <bsd.port.mk>
|