Some compile fixes.

This commit is contained in:
Spike 2018-05-31 17:02:35 +01:00 committed by Shpoike
parent f6d31e9db9
commit 1e6a12b923
3 changed files with 18 additions and 2 deletions

View file

@ -18,7 +18,7 @@ USE_CODEC_WAVE=1
USE_CODEC_FLAC=0
USE_CODEC_MP3=1
USE_CODEC_VORBIS=1
USE_CODEC_OPUS=0
USE_CODEC_OPUS=1
# either mikmod or xmp
USE_CODEC_MIKMOD=0
USE_CODEC_XMP=0
@ -74,6 +74,8 @@ define do_strip
endef
endif
CFLAGS += $(QSS_CFLAGS)
LDFLAGS += $(QSS_LDFLAGS)
ifeq ($(DO_USERDIRS),1)
CFLAGS += -DDO_USERDIRS=1
endif
@ -158,6 +160,7 @@ ifeq ($(USE_CODEC_OPUS),1)
CFLAGS+= -DUSE_CODEC_OPUS
CFLAGS+= $(shell pkg-config --cflags opusfile)
CODECLIBS+= $(shell pkg-config --libs opusfile)
CODECLIBS+= $(shell pkg-config --libs opus)
endif
ifeq ($(USE_CODEC_VORBIS),1)
CFLAGS+= -DUSE_CODEC_VORBIS $(cpp_vorbisdec)

View file

@ -1320,7 +1320,7 @@ static struct
#define OPUS_SET_BITRATE_REQUEST 4002
#define OPUS_RESET_STATE 4028
#ifdef OPUS_STATIC
#include <opus/opus.h>
#include <opus.h>
#define qopus_encoder_create opus_encoder_create
#define qopus_encoder_destroy opus_encoder_destroy
#define qopus_encoder_ctl opus_encoder_ctl

13
Quakespasm-Spiked.txt Executable file → Normal file
View file

@ -208,6 +208,19 @@ QuakeSpasm-Spiked
o Additional code and binaries are released under the same license.
o The public linux build statically links against various common libraries
in order to reduce version conflicts (compiled on a Debian 8/Jessie system).
For system integration, it still requires the SDL 1.2 package from your distro.
. libjpeg 9b
. libz 1.2.11
. libpng 1.6.34
. lobogg 1.3.3
. libvorbis[file] 1.3.5
. libopus 1.3-beta
. libopusfile 0.9
. libmad 0.15.1b
-------------------
6. Links / Contact