2010-01-07 16:54:29 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.23 2010/01/07 21:54:29 jasper Exp $
|
2001-08-03 09:02:16 -04:00
|
|
|
|
2007-09-15 14:01:00 -04:00
|
|
|
COMMENT-main= Quake/Quake-world client
|
|
|
|
COMMENT-server= Quake world server
|
2001-08-03 09:02:16 -04:00
|
|
|
CATEGORIES= games
|
|
|
|
|
2010-01-07 16:54:29 -05:00
|
|
|
FULLPKGNAME-server= quakeworld-server-20000101p4
|
|
|
|
PKGNAME-main= quake-20000101p7
|
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
|
2008-01-11 11:48:44 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_BACKUP}
|
2001-08-03 20:37:12 -04:00
|
|
|
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
|
2008-01-11 11:48:44 -05:00
|
|
|
|
|
|
|
WANTLIB= c m
|
2001-08-03 09:02:16 -04:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
2006-11-21 06:03:35 -05:00
|
|
|
MULTI_PACKAGES= -main -server
|
2010-01-07 16:54:29 -05:00
|
|
|
FLAVORS= sdl ggi x11 gl
|
2001-08-03 09:02:16 -04:00
|
|
|
FLAVOR?= sdl
|
|
|
|
|
|
|
|
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
|
2010-01-07 16:54:29 -05:00
|
|
|
CONFIGURE_ARGS+= --bindir=/bin \
|
|
|
|
--with-opengl=no --with-opengl-includes=no
|
2008-01-11 11:48:44 -05:00
|
|
|
|
2008-05-07 13:34:33 -04:00
|
|
|
.if ${FLAVOR:L} == sdl
|
2008-01-11 11:48:44 -05:00
|
|
|
WANTLIB+= pthread
|
2006-11-21 06:03:35 -05:00
|
|
|
LIB_DEPENDS-main= SDL::devel/sdl
|
2001-08-03 09:02:16 -04:00
|
|
|
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
|
2008-05-07 13:34:33 -04:00
|
|
|
.elif ${FLAVOR:L} == ggi
|
2008-01-11 11:48:44 -05:00
|
|
|
WANTLIB+= pthread
|
2006-11-21 06:03:35 -05:00
|
|
|
LIB_DEPENDS-main= ggi::graphics/ggi
|
2001-08-03 09:02:16 -04:00
|
|
|
CONFIGURE_ARGS+= --with-ggi=${LOCALBASE} --without-sdl
|
2005-01-21 08:26:32 -05:00
|
|
|
MAKE_FLAGS= HAS_X11=no
|
|
|
|
CFLAGS+= -pthread
|
2008-05-07 13:34:33 -04:00
|
|
|
.elif ${FLAVOR:L} == x11
|
2001-08-03 09:02:16 -04:00
|
|
|
CONFIGURE_ARGS+= --without-sdl --without-ggi
|
|
|
|
MAKE_FLAGS=
|
2009-08-10 02:29:51 -04:00
|
|
|
WANTLIB-main= X11 Xext c m pthread-stubs xcb
|
2010-01-07 16:54:29 -05:00
|
|
|
.elif ${FLAVOR:L} == gl
|
|
|
|
CONFIGURE_ARGS+= --with-opengl=yes --with-opengl-includes=${X11BASE}/include
|
|
|
|
WANTLIB+= GL X11 Xext pthread
|
2006-11-21 06:03:35 -05:00
|
|
|
.else
|
2010-01-07 16:54:29 -05:00
|
|
|
BROKEN= choose either sdl, ggi, gl or x11
|
2005-09-10 14:07:43 -04:00
|
|
|
.endif
|
2001-08-03 09:02:16 -04:00
|
|
|
|
2006-11-21 06:03:35 -05:00
|
|
|
WRKDIST= ${WRKDIR}/quakeforge
|
2001-08-03 09:02:16 -04:00
|
|
|
|
|
|
|
post-extract:
|
2009-02-14 05:39:38 -05:00
|
|
|
@rm ${WRKDIST}/{config.cache,config.log}
|
|
|
|
@find ${WRKDIST} -name \*.o |xargs rm
|
|
|
|
@cp ${FILESDIR}/snd_openbsd.c ${WRKDIST}/common
|
2001-08-03 09:02:16 -04:00
|
|
|
|
|
|
|
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>
|