diff options
author | alepulver <alepulver@FreeBSD.org> | 2006-07-30 03:59:36 +0800 |
---|---|---|
committer | alepulver <alepulver@FreeBSD.org> | 2006-07-30 03:59:36 +0800 |
commit | de3d8e27cd6c24c7ce6b51be952b8865fd202812 (patch) | |
tree | 32ebe89e1fe48d01026d67f907017786bc48f9b8 /games | |
parent | da2a7a17f13b3bdd20550c2345b6d170810aeb98 (diff) | |
download | freebsd-ports-gnome-de3d8e27cd6c24c7ce6b51be952b8865fd202812.tar.gz freebsd-ports-gnome-de3d8e27cd6c24c7ce6b51be952b8865fd202812.tar.zst freebsd-ports-gnome-de3d8e27cd6c24c7ce6b51be952b8865fd202812.zip |
- Bump PORTREVISION.
- Add a GAME option (disabled by default, because original game.so is provided
by "games/quake2-data").
- Follow rules in "games/quake2-data/Makefile.include": fix search path
handling.
Diffstat (limited to 'games')
-rw-r--r-- | games/qudos/Makefile | 2 | ||||
-rw-r--r-- | games/qudos/files/patch-src__qcommon__files.c | 34 |
2 files changed, 36 insertions, 0 deletions
diff --git a/games/qudos/Makefile b/games/qudos/Makefile index 1330ddbf1256..82a2786b13a1 100644 --- a/games/qudos/Makefile +++ b/games/qudos/Makefile @@ -7,6 +7,7 @@ PORTNAME= qudos PORTVERSION= 0.40.1 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= http://qudos.quakedev.com/linux/quake2/engines/QuDos/ DISTNAME= QuDos-${PORTVERSION}-src @@ -28,6 +29,7 @@ OPTIONS= 3ZB2 "Build 3zb2 modification (bots)" on \ CLIENT "Build client" on \ CTF "Build CTF (Capture The Flag) modification" off \ DEDICATED "Build dedicated server" on \ + GAME "Build a main game .so modification" off \ GAME_MOD "Enable custom addons in main modification" on \ GLX "Build OpenGL renderer" on \ IPV6 "Enable IPv6 support" off \ diff --git a/games/qudos/files/patch-src__qcommon__files.c b/games/qudos/files/patch-src__qcommon__files.c new file mode 100644 index 000000000000..7cc749e0ebc5 --- /dev/null +++ b/games/qudos/files/patch-src__qcommon__files.c @@ -0,0 +1,34 @@ +--- src/qcommon/files.c.orig Fri Jun 2 12:50:53 2006 ++++ src/qcommon/files.c Thu Jul 27 17:11:03 2006 +@@ -1377,6 +1377,9 @@ + Cvar_FullSet("gamedir", dir, CVAR_SERVERINFO | CVAR_NOSET); + if (fs_cddir->string[0] == '\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 +@@ -1707,11 +1710,7 @@ + /* + * basedir <path> Allows the game to run from outside the data tree. + */ +-#ifdef DATADIR +- fs_basedir = Cvar_Get("basedir", DATADIR, CVAR_NOSET); +-#else + fs_basedir = Cvar_Get("basedir", ".", CVAR_NOSET); +-#endif + + /* + * cddir <path> Logically concatenates the cddir after the basedir to +@@ -1731,6 +1730,9 @@ + fs_homepath = Cvar_Get("homepath", Sys_GetCurrentDirectory(), CVAR_NOSET); + + /* Add baseq2 to search path. */ ++#ifdef DATADIR ++ FS_AddGameDirectory(va("%s/" BASEDIRNAME, DATADIR)); ++#endif + #ifdef LIBDIR + FS_AddGameDirectory(va("%s/" BASEDIRNAME, LIBDIR)); + #endif |