blob: f408d0c28ec53c8b79f5a9f4bcb47f24fe7a3133 (
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
# New ports collection makefile for: FuhQuake
# Date created: 01 Jun 2003
# Whom: Alexey Dokuchaev <danfe@regency.nsu.ru>
#
# $FreeBSD$
#
PORTNAME= fuhquake
PORTVERSION= 0.31
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://www.fuhquake.net/files/releases/v${PORTVERSION}/:q \
http://www.fuhquake.net/files/extras/:s \
ftp://gibbage.mine.nu/clients/fuhquake/releases/v${PORTVERSION}/:q \
http://gamefiles.blueyonder.co.uk/blueyondergames/quake/quakeworld/clients/fuhquake/source/:q \
http://gamefiles.blueyonder.co.uk/blueyondergames/quake/quakeworld/clients/fuhquake/addons/:s
DISTNAME= ${PORTNAME}-source-v${PORTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:q \
${PORTNAME}-linux-v${PORTVERSION}${EXTRACT_SUFX}:q
DIST_SUBDIR= ${PORTNAME}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} \
${PORTNAME}-linux-v${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= danfe@FreeBSD.org
COMMENT= An excellent QuakeWorld client
WRKSRC= ${WRKDIR}/source
USE_ZIP= yes
USE_REINPLACE= yes
MAKEFILE= ${FILESDIR}/Makefile
OPTIONS= GLX "Build GLX client" on \
LITS "Enable coloured lighting" off \
OPTIMIZED_CFLAGS "Enable compilation optimizations" on \
SKYBOXES "Install skyboxes pak" off \
X11 "Build X11 client" on \
X86_ASM "Enable x86 assembly code" on \
XMMS "Enable MP3 Player feature" off
DATADIR= ${Q1DIR}
.include "${.CURDIR}/../quake-data/Makefile.include"
.include <bsd.port.pre.mk>
.if defined(WITH_GLX)
USE_GL= yes
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png \
jpeg.9:${PORTSDIR}/graphics/jpeg
PLIST_SUB+= GLX=""
CLIENTS+= glx
.else
PLIST_SUB+= GLX="@comment "
.endif
.if defined(WITH_LITS)
DISTFILES+= ${PORTNAME}-lits.rar:s
BUILD_DEPENDS+= unrar:${PORTSDIR}/archivers/unrar
PLIST_SUB+= LITS=""
.else
PLIST_SUB+= LITS="@comment "
.endif
.for f in OPTIMIZED_CFLAGS X86_ASM
. if defined(WITH_${f})
MAKE_ARGS+= -DWITH_${f}
. else
MAKE_ARGS+= -DWITHOUT_${f}
. endif
.endfor
.if defined(WITH_SKYBOXES)
DISTFILES+= ${PORTNAME}-skyboxes${EXTRACT_SUFX}:s
EXTRACT_ONLY+= ${PORTNAME}-skyboxes${EXTRACT_SUFX}
PLIST_SUB+= SKYBOXES=""
.else
PLIST_SUB+= SKYBOXES="@comment "
.endif
.if defined(WITH_X11)
USE_XLIB= yes
PLIST_SUB+= X11=""
CLIENTS+= x11
.else
PLIST_SUB+= X11="@comment "
.endif
.if (defined(WITH_XMMS) || exists(${X11BASE}/lib/libxmms.so.4)) && \
defined(CLIENTS)
LIB_DEPENDS+= xmms.4:${PORTSDIR}/multimedia/xmms
MAKE_ARGS+= -DWITH_XMMS \
PTHREAD_CFLAGS=${PTHREAD_CFLAGS} \
PTHREAD_LIBS=${PTHREAD_LIBS}
.endif
.if defined(WITH_LITS)
post-extract:
@${MKDIR} ${WRKDIR}/lits
@unrar x -inul ${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}-lits.rar \
${WRKDIR}/lits
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%BASEDIR%%|${DATADIR}|' ${WRKSRC}/common.c
@${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|' ${WRKSRC}/mp3_player.c
@${CP} ${FILESDIR}/*.c ${WRKSRC}
do-build:
.for f in ${CLIENTS}
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} clean ${f})
.endfor
do-install:
.for f in ${CLIENTS}
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-${f} ${PREFIX}/bin
.endfor
${MKDIR} ${DATADIR}
${MKDIR} ${DATADIR}/${PORTNAME}
${INSTALL_DATA} ${WRKDIR}/qw/*.dat ${DATADIR}/${PORTNAME}
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/pak0.pak ${DATADIR}/${PORTNAME}
.if defined(WITH_LITS)
${CP} -R ${WRKDIR}/lits ${DATADIR}/${PORTNAME}
.endif
.if defined(WITH_SKYBOXES)
${INSTALL_DATA} ${WRKDIR}/pakX.pak ${DATADIR}/${PORTNAME}/pak1.pak
.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/doc/*.txt ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.txt ${DOCSDIR}
.endif
.include <bsd.port.post.mk>
|