blob: 1148e81e8392c1dca0657a9e4ef71263587196ce (
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
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
|
# New ports collection makefile for: QuakeForge
# Date created: 4 January 2000
# Whom: darius@dons.net.au
#
# $FreeBSD$
#
PORTNAME= QuakeForge
PORTVERSION= 0.1.1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= quake
DISTNAME= quakeforge-${PORTVERSION}
.if !defined(NO_WAD)
MASTER_SITES+= http://www.devolution.com/~slouken/SDL/projects/quake/data/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${WADFILE}
.endif
MAINTAINER= ports@FreeBSD.org
PORTCOMMENT= Cleaned up copy of the GPL\'d Quake 1 source code
BUILD_DEPENDS= ${ACLOCAL}:${PORTSDIR}/devel/automake14
LIB_DEPENDS= SDL-1.1.4:${PORTSDIR}/devel/sdl12 \
${GL_DEPENDS}
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
WADFILE= quakesw-1.0.6.tar.gz
USE_BZIP2= yes
USE_GMAKE= yes
USE_AUTOCONF_VER=213
USE_XLIB= yes
PLIST= ${WRKDIR}/PLIST
BINARIES= quake-x11 quake-sdl qw-client-x11 qw-client-sdl qw-server
CONFIGURE_ARGS= "--with-sdl=${LOCALBASE}"
CONFIGURE_ENV= "SDL_LIBS=`${SDL_CONFIG} --libs`" \
"SDL_CFLAGS=`${SDL_CONFIG} --cflags`"
.if defined(WITH_GLX)
GL_DEPENDS= GL.1:${PORTSDIR}/graphics/utah-glx
BINARIES+= quake-gl qw-client-gl
.else
GL_DEPENDS=
CONFIGURE_ARGS+=--without-opengl
.endif
.if !defined(NO_WAD)
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
BINDIR= ${PREFIX}/share/quakeforge
.else
BINDIR= ${PREFIX}/bin
.endif
pre-configure:
.if !defined(WITH_GLX)
@${ECHO_MSG} "Define WITH_GLX to use GLX (otherwise it is explicitly disabled!)"
.endif
@cd ${WRKSRC} ; ${ACLOCAL}
@cd ${WRKSRC} ; ${AUTOHEADER}
do-install:
@${CP} ${PKGDIR}/pkg-plist ${PLIST}
.if defined(WITH_GLX)
@${CAT} ${PKGDIR}/pkg-plist.glx >>${PLIST}
.endif
.if !defined(NO_WAD)
${MKDIR} ${PREFIX}/share/quakeforge
${TAR} xfz ${DISTDIR}/${WADFILE} -C ${PREFIX}/share/quakeforge
.for binary in ${BINARIES}
@printf "#!/bin/sh\ncd ${PREFIX}/share/quakeforge\n./${binary} \$$@" > \
${WRKDIR}/${binary}.sh
${INSTALL_SCRIPT} ${WRKDIR}/${binary}.sh ${PREFIX}/bin/${binary}
@${ECHO_CMD} share/quakeforge/${binary} >>${PLIST}
.endfor
@${CAT} ${PKGDIR}/pkg-plist.wad >>${PLIST}
.endif
.for binary in ${BINARIES}
${INSTALL_PROGRAM} ${WRKSRC}/targets/${binary} ${BINDIR}/
.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/quakeforge
cd ${WRKSRC}/doc && \
${INSTALL_MAN} README.* *.txt ${PREFIX}/share/doc/quakeforge
.endif
.include <bsd.port.mk>
|