2000-01-12 05:47:13 +00:00
|
|
|
# New ports collection makefile for: QuakeForge
|
|
|
|
# Date created: 4 January 2000
|
|
|
|
# Whom: darius@dons.net.au
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-14 12:28:40 +00:00
|
|
|
PORTNAME= QuakeForge
|
2000-05-18 09:27:37 +00:00
|
|
|
PORTVERSION= 0.1.1
|
2000-01-12 05:47:13 +00:00
|
|
|
CATEGORIES= games
|
2000-05-18 09:27:37 +00:00
|
|
|
MASTER_SITES= http://download.sourceforge.net/quake/
|
|
|
|
DISTNAME= quakeforge-${PORTVERSION}
|
2000-05-18 15:14:01 +00:00
|
|
|
.if !defined(NO_WAD)
|
|
|
|
MASTER_SITES+= http://www.devolution.com/~slouken/SDL/projects/quake/data/
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${WADFILE}
|
|
|
|
.endif
|
2000-01-12 05:47:13 +00:00
|
|
|
|
|
|
|
MAINTAINER= darius@dons.net.au
|
|
|
|
|
2000-05-18 09:27:37 +00:00
|
|
|
BUILD_DEPENDS= aclocal:${PORTSDIR}/devel/automake
|
|
|
|
LIB_DEPENDS= SDL-1.0.2:${PORTSDIR}/devel/sdl \
|
|
|
|
${GL_DEPENDS}
|
2000-01-12 05:47:13 +00:00
|
|
|
|
2000-05-18 15:14:01 +00:00
|
|
|
WADFILE= quakesw-1.0.6.tar.gz
|
2000-05-18 09:27:37 +00:00
|
|
|
USE_BZIP2= yes
|
2000-01-12 05:47:13 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_AUTOCONF= yes
|
|
|
|
USE_XLIB= yes
|
|
|
|
PLIST= ${WRKDIR}/PLIST
|
2000-05-18 09:27:37 +00:00
|
|
|
AUTOCONF= ${WRKSRC}/bootstrap
|
2000-01-12 05:47:13 +00:00
|
|
|
|
2000-05-18 09:27:37 +00:00
|
|
|
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`"
|
2000-01-12 05:47:13 +00:00
|
|
|
|
2000-05-18 09:27:37 +00:00
|
|
|
.if defined(USE_GLX)
|
2000-05-22 11:55:45 +00:00
|
|
|
GL_DEPENDS= GL.1:${PORTSDIR}/graphics/utah-glx
|
2000-05-18 09:27:37 +00:00
|
|
|
BINARIES+= quake-gl qw-client-gl
|
2000-01-12 05:47:13 +00:00
|
|
|
.else
|
2000-05-18 09:27:37 +00:00
|
|
|
GL_DEPENDS=
|
|
|
|
CONFIGURE_ARGS+=--without-opengl
|
2000-01-12 05:47:13 +00:00
|
|
|
.endif
|
2000-05-18 15:14:01 +00:00
|
|
|
.if !defined(NO_WAD)
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
BINDIR= ${PREFIX}/share/quakeforge
|
|
|
|
.else
|
|
|
|
BINDIR= ${PREFIX}/bin
|
|
|
|
.endif
|
2000-01-12 05:47:13 +00:00
|
|
|
|
|
|
|
pre-configure:
|
2000-05-18 15:14:01 +00:00
|
|
|
.if !defined(USE_GLX)
|
2000-05-18 09:27:37 +00:00
|
|
|
@${ECHO_MSG} "Define USE_GLX to use GLX (otherwise it is explicitly disabled!)"
|
2000-01-12 05:47:13 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
2000-05-18 15:14:01 +00:00
|
|
|
@${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
|
|
|
|
|
2000-01-12 05:47:13 +00:00
|
|
|
.for binary in ${BINARIES}
|
2000-05-18 15:14:01 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/targets/${binary} ${BINDIR}/
|
2000-01-12 05:47:13 +00:00
|
|
|
.endfor
|
2000-05-18 15:14:01 +00:00
|
|
|
|
2000-05-18 09:27:37 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/quakeforge
|
|
|
|
cd ${WRKSRC}/doc && \
|
|
|
|
${INSTALL_MAN} README.* *.txt ${PREFIX}/share/doc/quakeforge
|
|
|
|
.endif
|
2000-01-12 05:47:13 +00:00
|
|
|
|
2000-05-18 09:27:37 +00:00
|
|
|
.include <bsd.port.mk>
|