diff options
author | Zack Middleton <zturtleman@gmail.com> | 2014-07-20 05:58:38 -0500 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-08-28 11:03:34 +0100 |
commit | ecbbee4fc3613922da9d6b534740cd4f864a2f54 (patch) | |
tree | a95aa6796dfc55dd51678064886adefa820c4ad7 /Makefile | |
parent | 70fc8cd0c88a3328fc8d7308ca95ad285d2e3528 (diff) |
Fix up vorbis handling in Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 32 |
1 files changed, 14 insertions, 18 deletions
@@ -186,7 +186,7 @@ USE_INTERNAL_OGG=$(USE_INTERNAL_LIBS) endif ifndef USE_INTERNAL_VORBIS -USE_INTERNAL_VORBIS=1 +USE_INTERNAL_VORBIS=$(USE_INTERNAL_LIBS) endif ifndef USE_INTERNAL_OPUS @@ -954,14 +954,6 @@ ifeq ($(USE_CURL),1) endif endif -ifeq ($(USE_CODEC_VORBIS),1) - VORBIS_CFLAGS ?= $(shell pkg-config --silence-errors --cflags vorbisfile vorbis || true) - VORBIS_LIBS ?= $(shell pkg-config --silence-errors --libs vorbisfile vorbis || echo -lvorbisfile -lvorbis) - CLIENT_CFLAGS += -DUSE_CODEC_VORBIS $(VORBIS_CFLAGS) - CLIENT_LIBS += $(VORBIS_LIBS) - NEED_OGG=1 -endif - ifeq ($(USE_CODEC_OPUS),1) CLIENT_CFLAGS += -DUSE_CODEC_OPUS ifeq ($(USE_INTERNAL_OPUS),1) @@ -977,6 +969,19 @@ ifeq ($(USE_CODEC_OPUS),1) NEED_OGG=1 endif +ifeq ($(USE_CODEC_VORBIS),1) + CLIENT_CFLAGS += -DUSE_CODEC_VORBIS + ifeq ($(USE_INTERNAL_VORBIS),1) + CLIENT_CFLAGS += -I$(VORBISDIR)/include -I$(VORBISDIR)/lib + else + VORBIS_CFLAGS ?= $(shell pkg-config --silence-errors --cflags vorbisfile vorbis || true) + VORBIS_LIBS ?= $(shell pkg-config --silence-errors --libs vorbisfile vorbis || echo -lvorbisfile -lvorbis) + endif + CLIENT_CFLAGS += $(VORBIS_CFLAGS) + CLIENT_LIBS += $(VORBIS_LIBS) + NEED_OGG=1 +endif + ifeq ($(NEED_OGG),1) ifeq ($(USE_INTERNAL_OGG),1) OGG_CFLAGS = -I$(OGGDIR)/include @@ -988,15 +993,6 @@ ifeq ($(NEED_OGG),1) CLIENT_LIBS += $(OGG_LIBS) endif -ifeq ($(USE_CODEC_VORBIS),1) - ifeq ($(USE_INTERNAL_VORBIS),1) - CLIENT_CFLAGS += -I$(VORBISDIR)/include -I$(VORBISDIR)/lib - - else - CLIENT_LIBS += -lvorbisfile -lvorbis - endif -endif - ifeq ($(USE_RENDERER_DLOPEN),1) CLIENT_CFLAGS += -DUSE_RENDERER_DLOPEN endif |