aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2000-05-18 23:14:01 +0800
committersobomax <sobomax@FreeBSD.org>2000-05-18 23:14:01 +0800
commit87c942695d609c673938aa1a9b8330a4bbd4d9c2 (patch)
treed1f530b7a75e2846e0dc7a342b79c34b70ac63f7 /games
parent90d271aa26505761c16fba95e6a7c0009f528f3a (diff)
downloadfreebsd-ports-gnome-87c942695d609c673938aa1a9b8330a4bbd4d9c2.tar.gz
freebsd-ports-gnome-87c942695d609c673938aa1a9b8330a4bbd4d9c2.tar.zst
freebsd-ports-gnome-87c942695d609c673938aa1a9b8330a4bbd4d9c2.zip
Merge shareware WAD support from sdlquake. Now sdlquake is ready to be nuked
from the tree.
Diffstat (limited to 'games')
-rw-r--r--games/quakeforge/Makefile37
-rw-r--r--games/quakeforge/distinfo1
-rw-r--r--games/quakeforge/pkg-plist.wad3
3 files changed, 36 insertions, 5 deletions
diff --git a/games/quakeforge/Makefile b/games/quakeforge/Makefile
index 3f317847a61d..691ef1a11d58 100644
--- a/games/quakeforge/Makefile
+++ b/games/quakeforge/Makefile
@@ -10,6 +10,10 @@ PORTVERSION= 0.1.1
CATEGORIES= games
MASTER_SITES= http://download.sourceforge.net/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= darius@dons.net.au
@@ -17,6 +21,7 @@ BUILD_DEPENDS= aclocal:${PORTSDIR}/devel/automake
LIB_DEPENDS= SDL-1.0.2:${PORTSDIR}/devel/sdl \
${GL_DEPENDS}
+WADFILE= quakesw-1.0.6.tar.gz
USE_BZIP2= yes
USE_GMAKE= yes
USE_AUTOCONF= yes
@@ -37,19 +42,41 @@ BINARIES+= quake-gl qw-client-gl
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:
- @${CP} ${PKGDIR}/PLIST ${PLIST}
-.if defined(USE_GLX)
- ${CAT} ${PKGDIR}/PLIST.glx >>${PLIST}
-.else
+.if !defined(USE_GLX)
@${ECHO_MSG} "Define USE_GLX to use GLX (otherwise it is explicitly disabled!)"
.endif
do-install:
+ @${CP} ${PKGDIR}/PLIST ${PLIST}
+
+.if defined(USE_GLX)
+ @${CAT} ${PKGDIR}/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} share/quakeforge/${binary} >>${PLIST}
+.endfor
+ @${CAT} ${PKGDIR}/PLIST.wad >>${PLIST}
+.endif
+
.for binary in ${BINARIES}
- ${INSTALL_PROGRAM} ${WRKSRC}/targets/${binary} ${PREFIX}/bin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/targets/${binary} ${BINDIR}/
.endfor
+
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/quakeforge
cd ${WRKSRC}/doc && \
diff --git a/games/quakeforge/distinfo b/games/quakeforge/distinfo
index 7a065a2d0d3b..9ff00722a5a9 100644
--- a/games/quakeforge/distinfo
+++ b/games/quakeforge/distinfo
@@ -1 +1,2 @@
MD5 (quakeforge-0.1.1.tar.bz2) = 7cf29a1a21e5c736bf0cb148417ef337
+MD5 (quakesw-1.0.6.tar.gz) = 663b749612d55de29f74966ec3168918
diff --git a/games/quakeforge/pkg-plist.wad b/games/quakeforge/pkg-plist.wad
new file mode 100644
index 000000000000..e3c784ace4f2
--- /dev/null
+++ b/games/quakeforge/pkg-plist.wad
@@ -0,0 +1,3 @@
+share/quakeforge/id1/pak0.pak
+@dirrm share/quakeforge/id1
+@dirrm share/quakeforge