2006-10-10 04:34:22 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.13 2006/10/10 08:34:22 bernd Exp $
|
2001-08-03 09:02:16 -04:00
|
|
|
|
|
|
|
COMMENT= "Quake/Quake-world client"
|
|
|
|
COMMENT-server= "Quake world server"
|
|
|
|
CATEGORIES= games
|
|
|
|
|
2006-10-10 04:34:22 -04:00
|
|
|
FULLPKGNAME-server= quakeworld-server-20000101p1
|
|
|
|
PKGNAME= quake-20000101p0
|
2001-08-03 09:02:16 -04:00
|
|
|
DISTNAME= quake-v6-bsd-kame
|
2001-08-03 20:37:12 -04:00
|
|
|
PATCHFILES= quake6-00-v6-20000202b.diff.gz:0
|
2001-08-03 09:02:16 -04:00
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.viagenie.qc.ca/en/ipv6-quake.shtml
|
2001-08-03 20:37:12 -04:00
|
|
|
MASTER_SITES= http://www.viagenie.qc.ca/quake/
|
|
|
|
MASTER_SITES0= ftp://ftp.kame.net/pub/kame/misc/
|
2001-08-03 09:02:16 -04:00
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
2004-11-28 17:41:14 -05:00
|
|
|
WANTLIB= c m
|
2001-08-03 09:02:16 -04:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
|
|
|
MULTI_PACKAGES=-server
|
|
|
|
FLAVORS= sdl ggi
|
|
|
|
FLAVOR?= sdl
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Msdl} && ${FLAVOR:L:Mggi}
|
2001-08-09 22:53:55 -04:00
|
|
|
ERRORS="Fatal: Choose only one flavor: sdl or ggi"
|
2001-08-03 09:02:16 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
SUBPACKAGE?=
|
|
|
|
|
|
|
|
CONFIGURE_ENV=LDFLAGS='-L${LOCALBASE}/lib -L${X11BASE}/lib'
|
|
|
|
CONFIGURE_ENV+=CPPFLAGS='-I${LOCALBASE}/include -I${X11BASE}/include'
|
|
|
|
CONFIGURE_STYLE= autoconf
|
|
|
|
CONFIGURE_ARGS= --enable-release
|
|
|
|
CONFIGURE_ARGS+= --bindir=/bin
|
|
|
|
CONFIGURE_ARGS+= --with-opengl=no --with-opengl-includes=no
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Msdl}
|
|
|
|
. if !defined(PACKAGING) || ${SUBPACKAGE} == ""
|
2001-12-28 17:11:58 -05:00
|
|
|
LIB_DEPENDS= SDL::devel/sdl
|
2004-11-28 17:41:14 -05:00
|
|
|
WANTLIB+= pthread
|
2001-08-03 09:02:16 -04:00
|
|
|
. endif
|
|
|
|
CONFIGURE_ARGS+= --with-sdl=${LOCALBASE} --without-ggi
|
2005-01-21 08:26:32 -05:00
|
|
|
MAKE_FLAGS= HAS_X11=no
|
2001-08-03 09:02:16 -04:00
|
|
|
CFLAGS+= -pthread
|
|
|
|
.elif ${FLAVOR:L:Mggi}
|
|
|
|
. if !defined(PACKAGING) || ${SUBPACKAGE} == ""
|
2001-08-09 18:29:21 -04:00
|
|
|
LIB_DEPENDS= ggi.::graphics/ggi
|
2004-11-28 17:41:14 -05:00
|
|
|
WANTLIB+= pthread
|
2001-08-03 09:02:16 -04:00
|
|
|
. endif
|
|
|
|
CONFIGURE_ARGS+= --with-ggi=${LOCALBASE} --without-sdl
|
2005-01-21 08:26:32 -05:00
|
|
|
MAKE_FLAGS= HAS_X11=no
|
|
|
|
CFLAGS+= -pthread
|
2001-08-03 09:02:16 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-sdl --without-ggi
|
|
|
|
MAKE_FLAGS=
|
2004-11-28 17:41:14 -05:00
|
|
|
WANTLIB+= X11 Xext
|
2001-08-03 09:02:16 -04:00
|
|
|
.endif
|
2005-09-10 14:07:43 -04:00
|
|
|
.if defined(PACKAGING) && ${SUBPACKAGE} == "-server"
|
|
|
|
WANTLIB+= pthread
|
|
|
|
.endif
|
2001-08-03 09:02:16 -04:00
|
|
|
|
|
|
|
WRKDIST= ${WRKDIR}/quakeforge
|
|
|
|
FAKE_FLAGS= ${MAKE_FLAGS} DESTDIR=${WRKINST}
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
cd ${WRKDIST}; rm config.cache config.log
|
|
|
|
cd ${WRKDIST}; find . -name \*.o |xargs rm
|
|
|
|
cp ${FILESDIR}/snd_openbsd.c ${WRKDIST}/common
|
|
|
|
|
|
|
|
post-patch:
|
2004-01-27 16:37:06 -05:00
|
|
|
cd ${WRKDIST}; PATH=${PORTPATH} AUTOCONF_VERSION="${AUTOCONF_VERSION}" autoreconf
|
2001-08-03 09:02:16 -04:00
|
|
|
|
2006-10-10 04:34:22 -04:00
|
|
|
post-install:
|
|
|
|
@chown -R ${BINOWN}:${BINGRP} ${PREFIX}/bin/*
|
|
|
|
|
2001-08-03 09:02:16 -04:00
|
|
|
.include <bsd.port.mk>
|