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-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 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)
|
|
|
|
GL_DEPENDS= GL.1:${PORTSDIR}/graphics/glx
|
|
|
|
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
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@${CP} ${PKGDIR}/PLIST ${PLIST}
|
2000-05-18 09:27:37 +00:00
|
|
|
.if defined(USE_GLX)
|
2000-01-12 05:47:13 +00:00
|
|
|
${CAT} ${PKGDIR}/PLIST.glx >>${PLIST}
|
2000-05-18 09:27:37 +00:00
|
|
|
.else
|
|
|
|
@${ECHO_MSG} "Define USE_GLX to use GLX (otherwise it is explicitly disabled!)"
|
2000-01-12 05:47:13 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
.for binary in ${BINARIES}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/targets/${binary} ${PREFIX}/bin/
|
|
|
|
.endfor
|
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>
|