mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-10 07:04:03 +00:00
Update to 1.15.3
Sound and music support is still very poor. PR: ports/73432 Submitted by: maintainer
This commit is contained in:
parent
72d4b805f8
commit
5a4a7ccf23
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=121310
@ -6,11 +6,11 @@
|
||||
#
|
||||
|
||||
PORTNAME= vavoom
|
||||
PORTVERSION= 1.15.2
|
||||
PORTVERSION= 1.15.3
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
DISTNAME= v115_2_src
|
||||
DISTNAME= v115_${PORTVERSION:E}_src
|
||||
|
||||
MAINTAINER= ip@doom.homeunix.org
|
||||
COMMENT= Doom, Doom II, Heretic, Hexen and Strife source port
|
||||
@ -47,7 +47,7 @@ pre-everything::
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
cd ${WRKSRC} && ${SH} ${WRKSRC}/fixunix.sh
|
||||
cd ${WRKSRC} && ${TR} -d '\r' <${WRKSRC}/fixunix.sh | ${SH}
|
||||
@${REINPLACE_CMD} -e 's|SDL\/||g' ${WRKSRC}/source/*.cpp
|
||||
|
||||
do-install:
|
||||
|
@ -1,2 +1,2 @@
|
||||
MD5 (v115_2_src.zip) = 635e5ba761c1d91a3aa03ee5adb802b8
|
||||
SIZE (v115_2_src.zip) = 4292268
|
||||
MD5 (v115_3_src.zip) = ba834b78d74947bc31182009f5c13580
|
||||
SIZE (v115_3_src.zip) = 4328768
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- Makefile.orig Fri Dec 19 20:00:14 2003
|
||||
+++ Makefile Fri Jan 23 16:41:34 2004
|
||||
--- Makefile.orig
|
||||
+++ Makefile
|
||||
@@ -8,7 +8,7 @@
|
||||
#DEBUG = 1
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
|
||||
# Uncomment to compile without OpenGL driver
|
||||
#NOGL = 1
|
||||
@@ -70,7 +70,7 @@
|
||||
@@ -73,7 +73,7 @@
|
||||
obj/sys_i386.o \
|
||||
obj/sys_sdl.o
|
||||
GL_SYS_OBJ = obj/gl_sdl.o
|
||||
@ -18,7 +18,7 @@
|
||||
else
|
||||
#-- Linux with Allegro --
|
||||
SYS_OBJS = \
|
||||
@@ -214,7 +214,7 @@
|
||||
@@ -213,7 +213,7 @@
|
||||
ifdef MESAGL
|
||||
LIBS := -lMesaGL $(LIBS)
|
||||
else
|
||||
@ -27,18 +27,24 @@
|
||||
endif
|
||||
endif
|
||||
|
||||
@@ -308,8 +308,8 @@
|
||||
@@ -317,11 +317,11 @@
|
||||
|
||||
# ---------------------------------------
|
||||
|
||||
-C_ARGS = -c -W -Wall -march=pentiumpro -ffast-math
|
||||
-CPP_ARGS = -c -W -Wall -march=pentiumpro -ffast-math
|
||||
-ARCH ?= -march=pentiumpro
|
||||
-export ARCH
|
||||
-C_ARGS = -c -W -Wall $(ARCH) -ffast-math
|
||||
-CPP_ARGS = -c -W -Wall $(ARCH) -ffast-math
|
||||
-ASM_ARGS = -c -W -Wall $(ARCH) -x assembler-with-cpp
|
||||
+#ARCH ?= -march=pentiumpro
|
||||
+#export ARCH
|
||||
+C_ARGS = -c ${CFLAGS} -I${X11BASE}/include `${SDL_CONFIG} --cflags` -W -Wall -ffast-math
|
||||
+CPP_ARGS = -c ${CFLAGS} -I${X11BASE}/include `${SDL_CONFIG} --cflags` -W -Wall -ffast-math
|
||||
ASM_ARGS = -c -W -Wall -x assembler-with-cpp
|
||||
+CPP_ARGS = -c ${CXXFLAGS} -I${X11BASE}/include `${SDL_CONFIG} --cflags` -W -Wall -ffast-math
|
||||
+ASM_ARGS = -c ${CFLAGS} -I${X11BASE}/include `${SDL_CONFIG} --cflags` -W -Wall -x assembler-with-cpp
|
||||
LINK_ARGS = -Wall
|
||||
|
||||
@@ -337,7 +337,7 @@
|
||||
ifdef DEBUG
|
||||
@@ -348,7 +348,7 @@
|
||||
exe: Vavoom$(EXE)
|
||||
|
||||
Vavoom$(EXE): $(OBJ_FILES) $(LIB_FILES)
|
||||
@ -47,7 +53,7 @@
|
||||
|
||||
suid:
|
||||
chown root.root Vavoom
|
||||
@@ -347,13 +347,13 @@
|
||||
@@ -358,13 +358,13 @@
|
||||
addr2line -e Vavoom -f < crash.txt >> basev/debug.txt
|
||||
|
||||
obj/%.o : source/%.c
|
||||
@ -64,7 +70,7 @@
|
||||
|
||||
# ---------------------------------------
|
||||
|
||||
@@ -370,16 +370,16 @@
|
||||
@@ -381,16 +381,16 @@
|
||||
svexe: VavoomSV$(EXE)
|
||||
|
||||
VavoomSV$(EXE): $(SV_OBJ_FILES)
|
||||
@ -85,7 +91,7 @@
|
||||
|
||||
# ---------------------------------------
|
||||
|
||||
@@ -415,11 +415,11 @@
|
||||
@@ -433,11 +433,11 @@
|
||||
# ---------------------------------------
|
||||
|
||||
ifndef INSTALL
|
||||
@ -99,7 +105,7 @@
|
||||
endif
|
||||
|
||||
ifndef INSTALL_GROUP
|
||||
@@ -511,8 +511,8 @@
|
||||
@@ -529,8 +529,8 @@
|
||||
asm: $(ASM_FILES)
|
||||
|
||||
source/%.asm : source/%.s source/asm_i386.h source/gas2tasm.exe
|
||||
|
@ -1,150 +0,0 @@
|
||||
--- source/s_sdl.cpp.orig Sat Mar 8 14:08:04 2003
|
||||
+++ source/s_sdl.cpp Wed Jan 21 15:41:52 2004
|
||||
@@ -82,8 +82,8 @@
|
||||
|
||||
IMPLEMENT_CLASS(VDefaultSoundDevice);
|
||||
|
||||
-static TCvarI mix_frequency ("mix_frequency", "22050", CVAR_ARCHIVE);
|
||||
-static TCvarI mix_bits ("mix_bits", "16", CVAR_ARCHIVE);
|
||||
+static TCvarI mix_frequency ("mix_frequency", "44100", CVAR_ARCHIVE);
|
||||
+static TCvarI mix_bits ("mix_bits", "8", CVAR_ARCHIVE);
|
||||
static TCvarI mix_channels ("mix_channels", "2", CVAR_ARCHIVE);
|
||||
|
||||
static TCvarI mix_chunksize ("mix_chunksize", "4096", CVAR_ARCHIVE);
|
||||
@@ -107,6 +107,8 @@
|
||||
static TVec listener_forward;
|
||||
static TVec listener_right;
|
||||
static TVec listener_up;
|
||||
+
|
||||
+SDL_AudioCVT wavecvt;
|
||||
|
||||
// CODE --------------------------------------------------------------------
|
||||
|
||||
@@ -337,6 +339,12 @@
|
||||
mix_bits = fmt & 0xFF;
|
||||
mix_channels = ch;
|
||||
|
||||
+ if (SDL_BuildAudioCVT(&wavecvt, AUDIO_S8, 2, 4096,
|
||||
+ fmt, mix_channels, mix_frequency) == -1) {
|
||||
+ Sys_Error("SDL_BuildAudioCVT: failed.\n");
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
channels = Z_CNew<channel_t>(mix_voices);
|
||||
for (i = 0; i < mix_voices; i++)
|
||||
{
|
||||
@@ -425,13 +433,23 @@
|
||||
return;
|
||||
}
|
||||
|
||||
- // copy the lump to a SDL_Mixer chunk...
|
||||
- chunk = Mix_LoadRAW_RW(SDL_RWFromMem((void*)S_sfx[sound_id].data,
|
||||
- S_sfx[sound_id].len), 0, S_sfx[sound_id].freq, AUDIO_U8, 1);
|
||||
- if (chunk == NULL)
|
||||
- Sys_Error("Mix_LoadRAW_RW() failed!\n");
|
||||
- voice = Mix_LoadChannel(-1, chunk, 0);
|
||||
-
|
||||
+ wavecvt.len = S_sfx[sound_id].len;
|
||||
+ wavecvt.buf = (Uint8*)malloc(wavecvt.len*wavecvt.len_mult);
|
||||
+ memcpy(wavecvt.buf, S_sfx[sound_id].data, S_sfx[sound_id].len);
|
||||
+
|
||||
+ if (SDL_ConvertAudio(&wavecvt) == -1) {
|
||||
+ Sys_Error("SDL_ConvertAudio: error during conversion\n");
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ // copy the lump to a SDL_Mixer chunk...
|
||||
+ chunk = Mix_QuickLoad_RAW((Uint8*)wavecvt.buf,
|
||||
+ wavecvt.len*wavecvt.len_mult);
|
||||
+ if (chunk == NULL)
|
||||
+ Sys_Error("Mix_QuickLoad_RAW() failed!\n");
|
||||
+
|
||||
+ voice = Mix_PlayChannel(-1, chunk, 0);
|
||||
+
|
||||
if (voice < 0)
|
||||
{
|
||||
S_DoneWithLump(sound_id);
|
||||
@@ -448,9 +466,6 @@
|
||||
pitch = CalcPitch(S_sfx[sound_id].freq, sound_id);
|
||||
#warning how to set the pitch? (CS)
|
||||
|
||||
- // ready to go...
|
||||
- Mix_Play(voice);
|
||||
-
|
||||
channels[chan].origin_id = origin_id;
|
||||
channels[chan].origin = origin;
|
||||
channels[chan].channel = channel;
|
||||
@@ -501,22 +516,28 @@
|
||||
return;
|
||||
}
|
||||
|
||||
- // copy the lump to a SDL_Mixer chunk...
|
||||
- chunk = Mix_LoadRAW_RW(SDL_RWFromMem((void*)S_VoiceInfo.data,
|
||||
- S_VoiceInfo.len), 0, S_VoiceInfo.freq, AUDIO_U8, 1);
|
||||
- if (chunk == NULL)
|
||||
- Sys_Error("Mix_LoadRAW_RW() failed!\n");
|
||||
- voice = Mix_LoadChannel(-1, chunk, 0);
|
||||
-
|
||||
+ wavecvt.len = S_sfx[VOICE_SOUND_ID].len;
|
||||
+ wavecvt.buf = (Uint8*)malloc(wavecvt.len*wavecvt.len_mult);
|
||||
+ memcpy(wavecvt.buf, S_sfx[VOICE_SOUND_ID].data, S_sfx[VOICE_SOUND_ID].len);
|
||||
+
|
||||
+ if (SDL_ConvertAudio(&wavecvt) == -1) {
|
||||
+ Sys_Error("SDL_ConvertAudio: error during conversion\n");
|
||||
+ return;
|
||||
+ }
|
||||
+ // copy the lump to a SDL_Mixer chunk...
|
||||
+ chunk = Mix_QuickLoad_RAW((Uint8*)wavecvt.buf,
|
||||
+ wavecvt.len*wavecvt.len_mult);
|
||||
+ if (chunk == NULL)
|
||||
+ Sys_Error("Mix_QuickLoad_RAW() failed!\n");
|
||||
+
|
||||
+ voice = Mix_PlayChannel(-1, chunk, 0);
|
||||
+
|
||||
if (voice < 0)
|
||||
{
|
||||
S_DoneWithLump(VOICE_SOUND_ID);
|
||||
return;
|
||||
}
|
||||
|
||||
- // ready to go...
|
||||
- Mix_Play(voice);
|
||||
-
|
||||
channels[chan].origin_id = 0;
|
||||
channels[chan].origin = TVec(0, 0, 0);
|
||||
channels[chan].channel = 1;
|
||||
@@ -558,19 +579,26 @@
|
||||
return;
|
||||
}
|
||||
|
||||
- chunk = Mix_LoadRAW_RW(SDL_RWFromMem((void*)S_sfx[sound_id].data,
|
||||
- S_sfx[sound_id].len), 0, S_sfx[sound_id].freq, AUDIO_U8, 1);
|
||||
- if (chunk == NULL)
|
||||
- Sys_Error("Mix_LoadRAW_RW() failed!\n");
|
||||
-
|
||||
- voice = Mix_LoadChannel(-1, chunk, 0);
|
||||
+ wavecvt.len = S_sfx[sound_id].len;
|
||||
+ wavecvt.buf = (Uint8*)malloc(wavecvt.len*wavecvt.len_mult);
|
||||
+ memcpy(wavecvt.buf, S_sfx[sound_id].data, S_sfx[sound_id].len);
|
||||
+
|
||||
+ if (SDL_ConvertAudio(&wavecvt) == -1) {
|
||||
+ Sys_Error("SDL_ConvertAudio: error during conversion\n");
|
||||
+ return;
|
||||
+ }
|
||||
+ // copy the lump to a SDL_Mixer chunk...
|
||||
+ chunk = Mix_QuickLoad_RAW((Uint8*)wavecvt.buf,
|
||||
+ wavecvt.len*wavecvt.len_mult);
|
||||
+ if (chunk == NULL)
|
||||
+ Sys_Error("Mix_QuickLoad_RAW() failed!\n");
|
||||
+
|
||||
+ voice = Mix_PlayChannel(-1, chunk, 0);
|
||||
|
||||
if (voice < 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
-
|
||||
- Mix_Play(voice);
|
||||
|
||||
start = Sys_Time();
|
||||
while (1)
|
21
games/vavoom/files/patch-utils_acc_Makefile
Normal file
21
games/vavoom/files/patch-utils_acc_Makefile
Normal file
@ -0,0 +1,21 @@
|
||||
--- utils/acc/Makefile.orig
|
||||
+++ utils/acc/Makefile
|
||||
@@ -6,7 +6,7 @@
|
||||
#LIBS=-lstdc++
|
||||
endif
|
||||
|
||||
-CFLAGS = -Wall -O3 -ffast-math -fomit-frame-pointer -march=pentiumpro
|
||||
+CFLAGS += -Wall -O3 -ffast-math -fomit-frame-pointer
|
||||
|
||||
OBJS = \
|
||||
acc.o \
|
||||
@@ -21,7 +21,7 @@
|
||||
all: ../bin/acc$(EXE)
|
||||
|
||||
../bin/acc$(EXE): $(OBJS)
|
||||
- gcc -s -o $@ $^ $(LIBS)
|
||||
+ ${CC} -s -o $@ $^ $(LIBS)
|
||||
|
||||
%.o : %.c *.h
|
||||
- gcc $(CFLAGS) -c -o $@ $<
|
||||
+ ${CC} $(CFLAGS) -c -o $@ $<
|
11
games/vavoom/files/patch-utils_acc_misc.c
Normal file
11
games/vavoom/files/patch-utils_acc_misc.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- utils/acc/misc.c.orig
|
||||
+++ utils/acc/misc.c
|
||||
@@ -12,7 +12,7 @@
|
||||
#else
|
||||
#include <fcntl.h>
|
||||
#include <stdlib.h>
|
||||
-#ifndef __linux__
|
||||
+#if !defined(__linux__) && !defined(__FreeBSD__)
|
||||
#include <io.h>
|
||||
#endif
|
||||
#include <sys/stat.h>
|
11
games/vavoom/files/patch-utils_acc_token.c
Normal file
11
games/vavoom/files/patch-utils_acc_token.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- utils/acc/token.c.orig
|
||||
+++ utils/acc/token.c
|
||||
@@ -10,7 +10,7 @@
|
||||
#ifdef __NeXT__
|
||||
#include <libc.h>
|
||||
#else
|
||||
-#ifndef __linux__
|
||||
+#if !defined(__linux__) && !defined(__FreeBSD__)
|
||||
#include <io.h>
|
||||
#endif
|
||||
#include <fcntl.h>
|
24
games/vavoom/files/patch-utils_glbsp_Plugin.mak
Normal file
24
games/vavoom/files/patch-utils_glbsp_Plugin.mak
Normal file
@ -0,0 +1,24 @@
|
||||
--- utils/glbsp/Plugin.mak.orig
|
||||
+++ utils/glbsp/Plugin.mak
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
OUTNAME=libglbsp.a
|
||||
|
||||
-CC=gcc
|
||||
-CFLAGS=-O3 -Wall -DGLBSP_PLUGIN -DUNIX -DINLINE_G=inline
|
||||
-AR=ar rc
|
||||
+#CC=gcc
|
||||
+CFLAGS+=-O3 -Wall -DGLBSP_PLUGIN -DUNIX -DINLINE_G=inline
|
||||
+#AR=ar rc
|
||||
RANLIB=ranlib
|
||||
|
||||
OBJS=$(MAIN)/analyze.o \
|
||||
@@ -31,7 +31,7 @@
|
||||
rm -f $(OUTNAME) $(MAIN)/*.o
|
||||
|
||||
$(OUTNAME): $(OBJS)
|
||||
- $(AR) $(OUTNAME) $(OBJS)
|
||||
+ $(AR) rc $(OUTNAME) $(OBJS)
|
||||
$(RANLIB) $(OUTNAME)
|
||||
|
||||
.PHONY: all clean
|
31
games/vavoom/files/patch-utils_glvis_Makefile
Normal file
31
games/vavoom/files/patch-utils_glvis_Makefile
Normal file
@ -0,0 +1,31 @@
|
||||
--- utils/glvis/Makefile.orig
|
||||
+++ utils/glvis/Makefile
|
||||
@@ -6,7 +6,7 @@
|
||||
LIBS=-lstdc++
|
||||
endif
|
||||
|
||||
-CFLAGS = -Wall -O3 -ffast-math -fomit-frame-pointer -march=pentiumpro
|
||||
+CFLAGS += -Wall -O3 -ffast-math -fomit-frame-pointer
|
||||
LIB_OBJS = cmdlib.o wadlib.o level.o flow.o
|
||||
OBJS = glvis.o
|
||||
LIBS += -lm
|
||||
@@ -14,15 +14,15 @@
|
||||
all: ../bin/glvis$(EXE)
|
||||
|
||||
../bin/glvis$(EXE): $(OBJS) libglvis.a
|
||||
- gcc -s -o $@ $^ $(LIBS)
|
||||
+ ${CC} -s -o $@ $^ $(LIBS)
|
||||
|
||||
libglvis.a: $(LIB_OBJS)
|
||||
- ar rc $@ $^
|
||||
+ ${AR} rc $@ $^
|
||||
ranlib $@
|
||||
|
||||
%.o: %.cpp *.h ../common/*.h
|
||||
- gcc $(CFLAGS) -I../common -c -o $@ $<
|
||||
+ ${CC} $(CFLAGS) -I../common -c -o $@ $<
|
||||
|
||||
%.o: ../common/%.cpp ../common/*.h
|
||||
- gcc $(CFLAGS) -c -o $@ $<
|
||||
+ ${CC} $(CFLAGS) -c -o $@ $<
|
||||
|
41
games/vavoom/files/patch-utils_vcc_Makefile
Normal file
41
games/vavoom/files/patch-utils_vcc_Makefile
Normal file
@ -0,0 +1,41 @@
|
||||
--- utils/vcc/Makefile.orig
|
||||
+++ utils/vcc/Makefile
|
||||
@@ -6,7 +6,7 @@
|
||||
LIBS=-lstdc++
|
||||
endif
|
||||
|
||||
-CFLAGS = -Wall -O3 -ffast-math -fomit-frame-pointer -march=pentiumpro
|
||||
+CFLAGS += -Wall -O3 -ffast-math -fomit-frame-pointer
|
||||
|
||||
OBJS = \
|
||||
cmdlib.o \
|
||||
@@ -35,19 +35,23 @@
|
||||
|
||||
all: ../bin/vcc$(EXE)
|
||||
|
||||
-../bin/vcc$(EXE): $(OBJS) vcpp/libcpp.a
|
||||
- gcc -s -o $@ $^ $(LIBS)
|
||||
+../bin/vcc$(EXE): $(OBJS) clean_libcpp vcpp/libcpp.a
|
||||
+ ${CC} -s -o $@ $(OBJS) vcpp/libcpp.a $(LIBS)
|
||||
|
||||
+.PHONY: all clean_libcpp
|
||||
+clean_libcpp:
|
||||
+ ${RM} -rf vcpp/*.o vcpp/libcpp.a
|
||||
+
|
||||
vcpp/libcpp.a: $(CPP_OBJS)
|
||||
- ar rc $@ $^
|
||||
+ ${AR} rc $@ $^
|
||||
ranlib $@
|
||||
|
||||
%.o : %.cpp vcc.h ../../source/progdefs.h ../common/cmdlib.h
|
||||
- gcc $(CFLAGS) -I../common -c -o $@ $<
|
||||
+ ${CC} $(CFLAGS) -I../common -c -o $@ $<
|
||||
|
||||
%.o : ../common/%.cpp ../common/cmdlib.h
|
||||
- gcc $(CFLAGS) -c -o $@ $<
|
||||
+ ${CC} $(CFLAGS) -c -o $@ $<
|
||||
|
||||
vcpp/%.o : vcpp/%.cpp vcpp/cpp.h
|
||||
- gcc $(CFLAGS) -c -o $@ $<
|
||||
+ ${CC} $(CFLAGS) -c -o $@ $<
|
||||
|
24
games/vavoom/files/patch-utils_vlumpy_Makefile
Normal file
24
games/vavoom/files/patch-utils_vlumpy_Makefile
Normal file
@ -0,0 +1,24 @@
|
||||
--- utils/vlumpy/Makefile.orig
|
||||
+++ utils/vlumpy/Makefile
|
||||
@@ -6,17 +6,17 @@
|
||||
LIBS=-lm -lstdc++
|
||||
endif
|
||||
|
||||
-CFLAGS = -Wall -O3 -ffast-math -fomit-frame-pointer -march=pentiumpro
|
||||
+CFLAGS += -Wall -O3 -ffast-math -fomit-frame-pointer
|
||||
OBJS = cmdlib.o imglib.o scrlib.o wadlib.o vlumpy.o
|
||||
|
||||
all: ../bin/vlumpy$(EXE)
|
||||
|
||||
../bin/vlumpy$(EXE): $(OBJS)
|
||||
- gcc -s -o $@ $(OBJS) $(LIBS)
|
||||
+ ${CC} -s -o $@ $(OBJS) $(LIBS)
|
||||
|
||||
%.o: %.cpp ../common/*.h
|
||||
- gcc $(CFLAGS) -I../common -c -o $@ $<
|
||||
+ ${CC} $(CFLAGS) -I../common -c -o $@ $<
|
||||
|
||||
%.o: ../common/%.cpp ../common/*.h
|
||||
- gcc $(CFLAGS) -c -o $@ $<
|
||||
+ ${CC} $(CFLAGS) -c -o $@ $<
|
||||
|
@ -14,9 +14,6 @@ Differences from original game:
|
||||
* Jumping;
|
||||
....
|
||||
|
||||
No music support is available in SDL compiled version at the moment.
|
||||
Sound effects are 8 bit, 44100KHz, stereo.
|
||||
|
||||
WWW: http://www.vavoom-engine.com/
|
||||
|
||||
- Igor Pokrovsky
|
||||
|
Loading…
Reference in New Issue
Block a user