blob: 829869c90ad158b0d1ebd1d6bf55c342a429fba1 (
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
|
# Created by: alepulver
# $FreeBSD$
PORTNAME= ezquake
PORTVERSION= 1.9
PORTREVISION= 8
PORTEPOCH= 2
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/stable/${PORTVERSION}:ezquake \
http://www.winimage.com/zLibDll/:minizip
DISTFILES= ${PORTNAME}_source_${PORTVERSION}.7z:ezquake \
${PORTNAME}_linux-x86_${PORTVERSION}${EXTRACT_SUFX}:ezquake \
unzip101e.zip:minizip
MAINTAINER= ports@FreeBSD.org
COMMENT= Modern QuakeWorld client
EXTRACT_DEPENDS=${UNZIP_CMD}:${PORTSDIR}/archivers/unzip \
7z:${PORTSDIR}/archivers/p7zip
LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2 \
libpcre.so:${PORTSDIR}/devel/pcre \
libpng.so:${PORTSDIR}/graphics/png
USES= gmake tcl dos2unix
DOS2UNIX_GLOB= *.[ch] Makefile*
USE_CSTD= gnu89
MAKE_ENV= TCL_SUFX=${TCL_SHLIB_VER}
.for v in TCL_INCLUDEDIR TCL_LIBDIR DATADIR
MAKE_ENV+= ${v}="${${v}}"
.endfor
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION:S/.//}_stable_sources
OPTIONS_MULTI= OUTPUT
OPTIONS_MULTI_OUTPUT= X11 OPENGL
OPTIONS_DEFINE= OPTIMIZED_CFLAGS
OPTIONS_DEFAULT= OPENGL X11 OPTIMIZED_CFLAGS
OPTIONS_SUB= yes
OPENGL_LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg
OPENGL_USE= GL=yes
X11_USE= XORG=xxf86dga
BROKEN_powerpc= Does not install on powerpc: signal 2
.include "${.CURDIR}/../quake-data/Makefile.include"
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MOPENGL}
ALL_TARGET+= glx
.endif
.if ${PORT_OPTIONS:MX11}
ALL_TARGET+= x11
.endif
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
MAKE_ENV+= USE_OPTIMIZED_CFLAGS=YES
.else
MAKE_ENV+= USE_OPTIMIZED_CFLAGS=NO
.endif
do-extract:
@${MKDIR} ${WRKDIR}
@cd ${WRKDIR} && \
${UNZIP_CMD} -qo ${DISTDIR}/${DISTFILES:C/:.*//:M*.zip} && \
${TAR} zxf ${DISTDIR}/${DISTFILES:C/:.*//:M*.tar.gz} && \
7z x ${DISTDIR}/${DISTFILES:C/:.*//:M*.7z} >/dev/null
@${LN} -s ${WRKSRC}/libs/asmlib.h ${WRKSRC}
post-patch:
@${REINPLACE_CMD} -e 's|libtcl\.so|libtcl${TCL_VER:S/.//}|' \
${WRKSRC}/embed_tcl.h
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKDIR} && ${COPYTREE_SHARE} "ezquake qw" ${STAGEDIR}${DATADIR})
.if ${PORT_OPTIONS:MOPENGL}
${INSTALL_PROGRAM} ${WRKSRC}/release/ezquake-gl.glx \
${STAGEDIR}${PREFIX}/bin/ezquake-glx
.endif
.if ${PORT_OPTIONS:MX11}
${INSTALL_PROGRAM} ${WRKSRC}/release/ezquake.x11 \
${STAGEDIR}${PREFIX}/bin/ezquake-x11
.endif
.include <bsd.port.post.mk>
|