mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
- Rename games/warzone back to games/warzone2100 because the last version
(2.0.4) changed the name to the original one. - Update to version 2.0.4. - Add patches and pkg-message to fix problems [1]. Obtained from:>-Iasen Kostov <tbyte@otel.net> (private e-mail) [1]
This commit is contained in:
parent
0cb600852c
commit
8a15aa5afe
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=171771
7
UPDATING
7
UPDATING
@ -8,6 +8,13 @@ upgrades.
|
||||
|
||||
|
||||
|
||||
20060831:
|
||||
AFFECTS: users of games/warzone
|
||||
AUTHOR: alepulver@FreeBSD.org
|
||||
|
||||
games/warzone port directory was renamed back to games/warzone2100 because
|
||||
the last version (2.0.4) uses the original name.
|
||||
|
||||
20060830:
|
||||
AFFECTS: users of textproc/p5-Senna
|
||||
AUTHOR: kuriyama@FreeBSD.org
|
||||
|
@ -726,7 +726,7 @@
|
||||
SUBDIR += wargus
|
||||
SUBDIR += warsow
|
||||
SUBDIR += warsow-data
|
||||
SUBDIR += warzone
|
||||
SUBDIR += warzone2100
|
||||
SUBDIR += wesnoth
|
||||
SUBDIR += wmeyes
|
||||
SUBDIR += wmfortune
|
||||
|
@ -1,3 +0,0 @@
|
||||
MD5 (warzone-2.0.3.tar.bz2) = 2396e0def69e5e48902448d04944927a
|
||||
SHA256 (warzone-2.0.3.tar.bz2) = 7668f6b794faad8d7ae66dbd0c7317df2521b33593f29174ab3fecb647326749
|
||||
SIZE (warzone-2.0.3.tar.bz2) = 19902273
|
@ -1,11 +0,0 @@
|
||||
--- src/game.c.bak Thu Aug 17 18:52:11 2006
|
||||
+++ src/game.c Thu Aug 17 18:52:44 2006
|
||||
@@ -2832,7 +2832,7 @@
|
||||
aFileName[strlen(aFileName) - 4] = '\0';
|
||||
|
||||
//create dir will fail if directory already exists but don't care!
|
||||
- (void) PHYSFS_mkdir(aFileName);
|
||||
+ (void) PHYSFS_mkdir(unix_path(aFileName));
|
||||
|
||||
//save the map file
|
||||
strcat(aFileName, "/");
|
@ -5,8 +5,8 @@
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= warzone
|
||||
PORTVERSION= 2.0.3
|
||||
PORTNAME= warzone2100
|
||||
PORTVERSION= 2.0.4
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= http://download.gna.org/warzone/releases/2.0/
|
||||
|
||||
@ -29,15 +29,19 @@ USE_SDL= net sdl
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --program-transform-name=""
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib" \
|
||||
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
|
||||
LIBS="${PTHREAD_LIBS}"
|
||||
CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include \
|
||||
`${SDL_CONFIG} --cflags`
|
||||
LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '/stdint.h/d' ${WRKSRC}/lib/ivis_opengl/screen.c
|
||||
@${REINPLACE_CMD} -e 's|-m32||' \
|
||||
-e 's|/usr/local|${LOCALBASE}|; s|/usr/X11R6|${X11BASE}|' \
|
||||
${WRKSRC}/configure
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|-m32||; \
|
||||
s|/usr/local|${LOCALBASE}|; \
|
||||
s|/usr/X11R6|${X11BASE}|' \
|
||||
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
||||
.for f in configure *.c *.h
|
||||
@${FIND} ${WRKSRC} -type f -name "${f}" -print0 | \
|
||||
${XARGS} -0 ${REINPLACE_CMD} -e 's|SDL/||'
|
3
games/warzone2100/distinfo
Normal file
3
games/warzone2100/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (warzone2100-2.0.4.tar.bz2) = 84e92061d9a00405994ab7496d03a610
|
||||
SHA256 (warzone2100-2.0.4.tar.bz2) = 06ce1d72ec1c3ffceed8f5aae77b96442469abe3096caebc5ce43b1178aee9b5
|
||||
SIZE (warzone2100-2.0.4.tar.bz2) = 19883711
|
13
games/warzone2100/files/patch-src__loop.c
Normal file
13
games/warzone2100/files/patch-src__loop.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- src/loop.c 2006/08/26 15:50:47 289
|
||||
+++ src/loop.c 2006/08/29 19:57:34 304
|
||||
@@ -1085,7 +1085,7 @@
|
||||
paused = FALSE;
|
||||
video = FALSE;
|
||||
gameTimeStart();
|
||||
-// pie_SetFogStatus(TRUE);
|
||||
+ pie_SetFogStatus(TRUE);
|
||||
cdAudio_Resume();
|
||||
ASSERT( videoMode == 0,"loop_ClearVideoPlaybackMode: out of sync." );
|
||||
}
|
||||
|
||||
|
22
games/warzone2100/files/patch-src__seqdisp.c
Normal file
22
games/warzone2100/files/patch-src__seqdisp.c
Normal file
@ -0,0 +1,22 @@
|
||||
--- src/seqdisp.c 2006/08/27 19:09:35 298
|
||||
+++ src/seqdisp.c 2006/08/29 19:57:34 304
|
||||
@@ -384,13 +384,14 @@
|
||||
//full screenvideo functions
|
||||
BOOL seq_StartFullScreenVideo(char* videoName, char* audioName)
|
||||
{
|
||||
- bHoldSeqForAudio = FALSE;
|
||||
-
|
||||
#ifdef DUMMY_VIDEO
|
||||
debug( LOG_VIDEO, "seq_StartFullScreenVideo: Refusing to play video! (Not a bug)" );
|
||||
- return FALSE;
|
||||
+ // FIXME We probably should call something like eventFireCallbackTrigger((TRIGGER_TYPE)CALL_VIDEO_QUIT); here!
|
||||
+ return TRUE;
|
||||
#endif
|
||||
|
||||
+ bHoldSeqForAudio = FALSE;
|
||||
+
|
||||
frameSkip = 1;
|
||||
switch(war_GetSeqMode())
|
||||
{
|
||||
|
||||
|
22
games/warzone2100/pkg-message
Normal file
22
games/warzone2100/pkg-message
Normal file
@ -0,0 +1,22 @@
|
||||
==============================================================================
|
||||
|
||||
Warzone2100 has been installed.
|
||||
|
||||
If the game locks up in heavy fight (e.g. many units firing at each other) try
|
||||
to set OPENAL_BUFFER_SIZE to 8192 before running it.
|
||||
|
||||
$ env OPENAL_BUFFER_SIZE=8192 warzone
|
||||
|
||||
Or set the environment variable in your shell's configuration file (you can
|
||||
also run these commands directly from the command-line).
|
||||
|
||||
For sh/bash add in your /etc/profile or ~/.profile:
|
||||
OPENAL_BUFFER_SIZE=8192
|
||||
export OPENAL_BUFFER_SIZE
|
||||
|
||||
For csh/tcsh add in your /etc/csh.cshrc or ~/.cshrc:
|
||||
setenv OPENAL_BUFFER_SIZE=8192
|
||||
|
||||
Enjoy!
|
||||
|
||||
==============================================================================
|
@ -1,4 +1,4 @@
|
||||
bin/warzone
|
||||
bin/warzone2100
|
||||
%%DATADIR%%/mp.wz
|
||||
%%DATADIR%%/warzone.wz
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
Loading…
Reference in New Issue
Block a user