diff options
author | pav <pav@FreeBSD.org> | 2009-09-11 06:07:40 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2009-09-11 06:07:40 +0800 |
commit | a6848c4ab0ba116e7098334cfc131ff51b282f2e (patch) | |
tree | 7bbcd15383278f326424f2769a6170d0e5a21ab6 /games | |
parent | 783e4c6a3f045c28bc0ebd9d02795c87bc15999d (diff) | |
download | freebsd-ports-gnome-a6848c4ab0ba116e7098334cfc131ff51b282f2e.tar.gz freebsd-ports-gnome-a6848c4ab0ba116e7098334cfc131ff51b282f2e.tar.zst freebsd-ports-gnome-a6848c4ab0ba116e7098334cfc131ff51b282f2e.zip |
- Update to 1.14.121
PR: ports/138682
Submitted by: Aragon Gouveia <aragon@phat.za.net> (maintainer)
Diffstat (limited to 'games')
-rw-r--r-- | games/d2x-xl/Makefile | 12 | ||||
-rw-r--r-- | games/d2x-xl/distinfo | 6 | ||||
-rw-r--r-- | games/d2x-xl/files/patch-main-gamefolders.cpp | 46 | ||||
-rw-r--r-- | games/d2x-xl/files/patch-noupdates | 76 |
4 files changed, 131 insertions, 9 deletions
diff --git a/games/d2x-xl/Makefile b/games/d2x-xl/Makefile index 1ebcee508615..58187c02df9e 100644 --- a/games/d2x-xl/Makefile +++ b/games/d2x-xl/Makefile @@ -6,9 +6,10 @@ # PORTNAME= d2x-xl -PORTVERSION= 1.14.108 +PORTVERSION= 1.14.121 CATEGORIES= games -MASTER_SITES= SF/d2x-xl/Linux:source \ +MASTER_SITES= SF/d2x-xl/Linux/Archive:source \ + SF/d2x-xl/Linux:source \ SF/d2x-xl/Data:data \ http://www.descent2.de/downloads/:source,data DISTFILES= ${PORTNAME}-src-${PORTVERSION}.rar:source \ @@ -26,10 +27,9 @@ CONFIGURE_ARGS= --disable-debug --enable-release=yes \ --with-sharepath=${PREFIX}/share/d2x-xl USE_SDL= sdl mixer image USE_GMAKE= yes -USE_AUTOTOOLS= aclocal:110 \ - autoheader:262 \ - automake:110 \ - autoconf:262 +USE_AUTOTOOLS= aclocal:110 autoheader:262 automake:110 autoconf:262 +USE_MOTIF= yes +MAKE_JOBS_SAFE= yes AUTOMAKE_ARGS= --add-missing --copy USE_DOS2UNIX= missing depcomp diff --git a/games/d2x-xl/distinfo b/games/d2x-xl/distinfo index a286dda566f5..4519df86eba2 100644 --- a/games/d2x-xl/distinfo +++ b/games/d2x-xl/distinfo @@ -1,6 +1,6 @@ -MD5 (d2x-xl-src-1.14.108.rar) = 7a3738164824b538305ddfe66510339a -SHA256 (d2x-xl-src-1.14.108.rar) = 60740a73f92c6352c7710967ea9e64e8617ef5c2508655808f6ed0aea0fe453d -SIZE (d2x-xl-src-1.14.108.rar) = 1651184 +MD5 (d2x-xl-src-1.14.121.rar) = 83d3d1dc31f043b112f36c72c5050575 +SHA256 (d2x-xl-src-1.14.121.rar) = 410cce88b54ceeac3a62260e1d5bc420e7f4b758943014a23cad3012bdb8126b +SIZE (d2x-xl-src-1.14.121.rar) = 1751369 MD5 (d2x-xl-data-1.14.95.rar) = 20a2d3663171b0514b66f6c1ad41cf82 SHA256 (d2x-xl-data-1.14.95.rar) = bf1d877aba1987c0d529e8dbfbc55a1c5e374556f89ecb860bfd6942f9430625 SIZE (d2x-xl-data-1.14.95.rar) = 9034850 diff --git a/games/d2x-xl/files/patch-main-gamefolders.cpp b/games/d2x-xl/files/patch-main-gamefolders.cpp new file mode 100644 index 000000000000..96e835badf8f --- /dev/null +++ b/games/d2x-xl/files/patch-main-gamefolders.cpp @@ -0,0 +1,46 @@ +--- main/gamefolders.cpp.orig 2009-09-08 15:00:31.000000000 +0200 ++++ main/gamefolders.cpp 2009-09-10 02:55:54.000000000 +0200 +@@ -112,7 +112,7 @@ + // ---------------------------------------------------------------------------- + + #ifdef _WIN32 +-# define STD_GAMEDIR "" ++# define STD_GAMEDIR "./" + # define D2X_APPNAME "d2x-xl.exe" + #elif defined(__macosx__) + # define STD_GAMEDIR "/Applications/Games/D2X-XL" +@@ -228,8 +228,6 @@ + # endif //__unix__ + if (!*gameFolders.szGameDir && GetAppFolder ("", gameFolders.szGameDir, STD_GAMEDIR, "")) + *gameFolders.szGameDir = '\0'; +-if (!*gameFolders.szGameDir && GetAppFolder ("", gameFolders.szGameDir, SHAREPATH, "")) +- *gameFolders.szGameDir = '\0'; + # ifdef __macosx__ + GetOSXAppFolder (szDataRootDir, gameFolders.szGameDir); + # else +@@ -732,19 +730,16 @@ + if ((i = FindArg ("-userdir")) && pszArgList [i + 1] && *pszArgList [i + 1]) { + strcpy (szRootFolder, pszArgList [i + 1]); + i = int (strlen (szRootFolder)); +-#if defined(__unix__) +- if (szRootFolder [i - 1] != '/') +- strcat (szRootFolder, "/"); +-#else +- if ((szRootFolder [i - 1] != '\\') && (szRootFolder [i - 1] != '/') && (szRootFolder [i - 1] != ':')) +- strcat (szRootFolder, "/"); +-#endif + } + else ++ strcpy (szRootFolder, STD_GAMEDIR); ++ + #if defined(__unix__) +- strcpy (szRootFolder, "/usr/local/games/d2x-xl/"); ++if (szRootFolder [i - 1] != '/') ++ strcat (szRootFolder, "/"); + #else +- strcpy (szRootFolder, "./"); ++if ((szRootFolder [i - 1] != '\\') && (szRootFolder [i - 1] != '/') && (szRootFolder [i - 1] != ':')) ++ strcat (szRootFolder, "/"); + #endif + + #if defined(__unix__) diff --git a/games/d2x-xl/files/patch-noupdates b/games/d2x-xl/files/patch-noupdates new file mode 100644 index 000000000000..22d5b2ff7204 --- /dev/null +++ b/games/d2x-xl/files/patch-noupdates @@ -0,0 +1,76 @@ +--- Makefile.am.orig 2009-09-10 02:36:08.000000000 +0200 ++++ Makefile.am 2009-09-10 02:36:29.000000000 +0200 +@@ -59,12 +59,12 @@ + + if MINGW32 + if USE_NETWORK +-d2x_sdl_LDADD = ${d2x_LDADD} -lwinmm -lwsock32 -lcurl -lXm -lXt -lX11 ++d2x_sdl_LDADD = ${d2x_LDADD} -lwinmm -lwsock32 -lXm -lXt -lX11 + else +-d2x_sdl_LDADD = ${d2x_LDADD} -lwinmm -lcurl -lXm -lXt -lX11 ++d2x_sdl_LDADD = ${d2x_LDADD} -lwinmm -lXm -lXt -lX11 + endif + else +-d2x_sdl_LDADD = ${d2x_LDADD} -lm -lcurl -lXm -lXt -lX11 ++d2x_sdl_LDADD = ${d2x_LDADD} -lm -lXm -lXt -lX11 + endif + d2x_xl_LDADD = ${d2x_sdl_LDADD} ${OGL_LIBS} + +--- main/gamefolders.cpp.orig 2009-09-10 02:36:46.000000000 +0200 ++++ main/gamefolders.cpp 2009-09-10 02:38:18.000000000 +0200 +@@ -871,7 +871,7 @@ + + // ---------------------------------------------------------------------------- + +-#if defined(__unix__) ++#if 0 + + # define FILEEXT "rar" + # define FILETYPE "src" +@@ -928,7 +928,7 @@ + + #endif + +-#if defined(_WIN32) || defined(__unix__) ++#if 0 + + int CheckForUpdate (void) + { +--- menus/mainmenu.cpp.orig 2009-09-10 02:39:20.000000000 +0200 ++++ menus/mainmenu.cpp 2009-09-10 02:40:21.000000000 +0200 +@@ -87,7 +87,7 @@ + int nOrder; + int nHelp; + int nChoice; +-#if defined(_WIN32) || defined(__unix__) ++#if 0 + int nUpdate; + #endif + } mainOpts; +@@ -101,7 +101,7 @@ + //returns the number of demo files on the disk + int NDCountDemos (void); + +-#if defined(_WIN32) || defined(__unix__) ++#if 0 + int CheckForUpdate (void); + #endif + +@@ -180,7 +180,7 @@ + if (!gameStates.app.bNostalgia) + mainOpts.nSongs = m.AddMenu (TXT_PLAY_SONGS, KEY_S, HTX_MAIN_SONGS); + mainOpts.nCredits = m.AddMenu (TXT_CREDITS, KEY_C, HTX_MAIN_CREDITS); +-#if defined(_WIN32) || defined(__unix__) ++#if 0 + mainOpts.nUpdate = m.AddMenu (TXT_CHECK_FOR_UPDATE, KEY_U, HTX_CHECK_FOR_UPDATE); + #endif + mainOpts.nQuit = m.AddMenu (TXT_QUIT, KEY_Q, HTX_MAIN_QUIT); +@@ -369,7 +369,7 @@ + } + else if (nChoice == mainOpts.nOrder) + ShowOrderForm (); +-#if defined(_WIN32) || defined(__unix__) ++#if 0 + else if (nChoice == mainOpts.nUpdate) + CheckForUpdate (); + #endif |