- fix potential 64-bit issues
- clean post-extract a bit - regen PLISTs
This commit is contained in:
parent
02b1e4a2ef
commit
b3f27365c4
@ -1,11 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.20 2008/05/07 17:34:33 simon Exp $
|
||||
# $OpenBSD: Makefile,v 1.21 2009/02/14 10:39:38 jasper Exp $
|
||||
|
||||
COMMENT-main= Quake/Quake-world client
|
||||
COMMENT-server= Quake world server
|
||||
CATEGORIES= games
|
||||
|
||||
FULLPKGNAME-server= quakeworld-server-20000101p2
|
||||
PKGNAME-main= quake-20000101p4
|
||||
FULLPKGNAME-server= quakeworld-server-20000101p3
|
||||
PKGNAME-main= quake-20000101p5
|
||||
DISTNAME= quake-v6-bsd-kame
|
||||
PATCHFILES= quake6-00-v6-20000202b.diff.gz:0
|
||||
PATCH_DIST_STRIP= -p1
|
||||
@ -59,9 +59,9 @@ BROKEN= choose either sdl, ggi or x11
|
||||
WRKDIST= ${WRKDIR}/quakeforge
|
||||
|
||||
post-extract:
|
||||
cd ${WRKDIST}; rm config.cache config.log
|
||||
cd ${WRKDIST}; find . -name \*.o |xargs rm
|
||||
cp ${FILESDIR}/snd_openbsd.c ${WRKDIST}/common
|
||||
@rm ${WRKDIST}/{config.cache,config.log}
|
||||
@find ${WRKDIST} -name \*.o |xargs rm
|
||||
@cp ${FILESDIR}/snd_openbsd.c ${WRKDIST}/common
|
||||
|
||||
post-patch:
|
||||
cd ${WRKDIST}; PATH=${PORTPATH} AUTOCONF_VERSION="${AUTOCONF_VERSION}" autoreconf
|
||||
|
15
games/quake/patches/patch-common_mdfour_c
Normal file
15
games/quake/patches/patch-common_mdfour_c
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-common_mdfour_c,v 1.1 2009/02/14 10:39:39 jasper Exp $
|
||||
|
||||
Fix potential 64-bit issue.
|
||||
|
||||
--- common/mdfour.c.orig Sat Feb 14 11:16:05 2009
|
||||
+++ common/mdfour.c Sat Feb 14 11:16:37 2009
|
||||
@@ -27,6 +27,8 @@
|
||||
#include "mdfour.h"
|
||||
#endif // _MDFOUR_H
|
||||
|
||||
+#include <string.h>
|
||||
+
|
||||
/* NOTE: This code makes no attempt to be fast!
|
||||
|
||||
It assumes that a int is at least 32 bits long
|
15
games/quake/patches/patch-common_vid_ggi_c
Normal file
15
games/quake/patches/patch-common_vid_ggi_c
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-common_vid_ggi_c,v 1.1 2009/02/14 10:39:39 jasper Exp $
|
||||
|
||||
Fix potential 64-bit issue.
|
||||
|
||||
--- common/vid_ggi.c.orig Sat Feb 14 11:17:12 2009
|
||||
+++ common/vid_ggi.c Sat Feb 14 11:17:32 2009
|
||||
@@ -22,6 +22,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||
|
||||
#define _BSD
|
||||
|
||||
+#include <sys/types.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST-main,v 1.3 2006/11/25 19:50:07 espie Exp $
|
||||
@comment $OpenBSD: PLIST-main,v 1.4 2009/02/14 10:39:39 jasper Exp $
|
||||
@pkgpath ${BASE_PKGPATH}
|
||||
bin/quake${FLAVOR_EXT}
|
||||
bin/qw-client${FLAVOR_EXT}
|
||||
@bin bin/quake${FLAVORS}
|
||||
@bin bin/qw-client${FLAVORS}
|
||||
|
@ -1,2 +1,2 @@
|
||||
@comment $OpenBSD: PLIST-server,v 1.2 2004/07/30 23:54:10 jolan Exp $
|
||||
bin/qw-server
|
||||
@comment $OpenBSD: PLIST-server,v 1.3 2009/02/14 10:39:39 jasper Exp $
|
||||
@bin bin/qw-server
|
||||
|
Loading…
Reference in New Issue
Block a user