- Bump PORTREVISION.
- Fix MASTER_SITES (data URL changed). - Misc changes in text messages (OPTIONS, IGNORE, etc.). - Follow rules in "games/quake2-data/Makefile.include": fix handling of search paths in the engine.
This commit is contained in:
parent
d495a8c682
commit
eab71026bf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=168998
@ -7,9 +7,10 @@
|
||||
|
||||
PORTNAME= kmquake2
|
||||
PORTVERSION= 0.19
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= http://qudos.quakedev.com/linux/quake2/engines/KMQuake2/:src \
|
||||
http://qexpo.quakedev.com/uploaded/54/:data \
|
||||
http://qexpo2005.quakedev.com/uploaded/54/:data \
|
||||
http://www.markshan.com/maps/:pax \
|
||||
ftp://ftp.splatterworld.de/games/q2/mods/:pax \
|
||||
http://www.markshan.com/engine/:paxpatch
|
||||
@ -32,9 +33,9 @@ WRKSRC= ${WRKDIR}/KMQuake2_${PORTVERSION:S/.//}_src_unix
|
||||
|
||||
OPTIONS= 3ZB2 "Build 3zb2 modification (bots)" off \
|
||||
CLIENT "Build client" on \
|
||||
CTF "Build Capture The Flag modification" off \
|
||||
CTF "Build CTF (Capture The Flag) modification" off \
|
||||
DEDICATED "Build dedicated server" on \
|
||||
GAME "Build main game modification" on \
|
||||
GAME "Build a main game .so file (required)" on \
|
||||
HYBRID "Build Rogue-Xatrix hybrid modification" off \
|
||||
LIGHTS "Build Lights modification with bots" off \
|
||||
OPTIMIZED_CFLAGS "Enable compilation optimizations" on \
|
||||
@ -65,7 +66,7 @@ MOD_LIST= 3ZB2 CTF HYBRID LIGHTS PAX ROGUE XATRIX ZAERO
|
||||
|
||||
.if defined(WITHOUT_CLIENT) && defined(WITHOUT_DEDICATED) && \
|
||||
defined(WITHOUT_SDL)
|
||||
IGNORE= needs at least one of CLIENT, DEDICATED and SDL options
|
||||
IGNORE= needs at least one executable (CLIENT, DEDICATED and SDL)
|
||||
.endif
|
||||
|
||||
.for mod in ${MOD_LIST}
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- ./qcommon/files.c.orig Thu Mar 23 06:30:01 2006
|
||||
+++ ./qcommon/files.c Thu Jun 8 13:39:12 2006
|
||||
--- qcommon/files.c.orig Thu Mar 23 06:30:01 2006
|
||||
+++ qcommon/files.c Fri Jul 28 14:54:41 2006
|
||||
@@ -1314,7 +1314,7 @@
|
||||
char *homedir; /* Home directory. */
|
||||
|
||||
@ -9,7 +9,41 @@
|
||||
FS_AddGameDirectory(gdir);
|
||||
}
|
||||
}
|
||||
@@ -1512,6 +1512,7 @@
|
||||
@@ -1468,16 +1468,7 @@
|
||||
// basedir <path>
|
||||
// allows the game to run from outside the data tree
|
||||
//
|
||||
-#if defined __unix__
|
||||
-#ifdef DATADIR
|
||||
- fs_basedir = Cvar_Get("basedir", DATADIR, CVAR_NOSET);
|
||||
-#else
|
||||
- fs_basedir = Cvar_Get("basedir", ".", CVAR_NOSET);
|
||||
-#endif
|
||||
-#endif
|
||||
-#ifdef _WIN32
|
||||
fs_basedir = Cvar_Get ("basedir", ".", CVAR_NOSET);
|
||||
-#endif
|
||||
|
||||
//
|
||||
// cddir <path>
|
||||
@@ -1491,11 +1482,14 @@
|
||||
//
|
||||
// start up with baseq2 by default
|
||||
//
|
||||
-#ifdef LIBDIR // unix
|
||||
+#ifdef DATADIR
|
||||
+ FS_AddGameDirectory(va("%s/"BASEDIRNAME, DATADIR));
|
||||
+#endif
|
||||
+#ifdef LIBDIR
|
||||
FS_AddGameDirectory(va("%s/"BASEDIRNAME, LIBDIR));
|
||||
#endif
|
||||
FS_AddGameDirectory (va("%s/"BASEDIRNAME, fs_basedir->string) );
|
||||
-#ifdef DATADIR // unix
|
||||
+#ifdef DATADIR
|
||||
FS_AddHomeAsGameDirectory(BASEDIRNAME);
|
||||
#endif
|
||||
// any set gamedirs will be freed up to here
|
||||
@@ -1512,6 +1506,7 @@
|
||||
|
||||
#ifdef __unix__
|
||||
/* Create directory if it does not exist. */
|
||||
@ -17,3 +51,19 @@
|
||||
Sys_Mkdir(fs_gamedir);
|
||||
|
||||
Com_Printf("Using '%s' for writing.\n", fs_gamedir);
|
||||
@@ -1624,11 +1619,14 @@
|
||||
Cvar_FullSet ("gamedir", dir, CVAR_SERVERINFO|CVAR_NOSET);
|
||||
if (fs_cddir->string[0])
|
||||
FS_AddGameDirectory (va("%s/%s", fs_cddir->string, dir) );
|
||||
+#ifdef DATADIR
|
||||
+ FS_AddGameDirectory(va("%s/%s", DATADIR, dir));
|
||||
+#endif
|
||||
#ifdef LIBDIR
|
||||
FS_AddGameDirectory(va("%s/%s", LIBDIR, dir));
|
||||
#endif
|
||||
FS_AddGameDirectory (va("%s/%s", fs_basedir->string, dir) );
|
||||
-#if defined(DATADIR) && !defined(_WIN32)
|
||||
+#ifdef DATADIR
|
||||
FS_AddHomeAsGameDirectory(dir);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user