In Debian we want library dependencies to work in the conventional way,
since many tools expect that and use it to generate package
dependencies.
Origin: vendor, Debian
LIB_JPEG=-ljpeg
endif
+ifdef LINK_TO_LIBVORBIS
+CFLAGS_LIBVORBIS=-DLINK_TO_LIBVORBIS `pkg-config --cflags vorbisfile`
+LIB_LIBVORBIS=`pkg-config --libs vorbisfile`
+endif
+
ifdef LINK_TO_ZLIB
CFLAGS_ZLIB=-DLINK_TO_ZLIB
LIB_ZLIB=-lz
$(CFLAGS_FS) \
$(CFLAGS_WARNINGS) \
$(CFLAGS_LIBJPEG) \
+ $(CFLAGS_LIBVORBIS) \
$(CFLAGS_ZLIB) \
$(CFLAGS_D3D) \
-D_FILE_OFFSET_BITS=64 \
$(LIB_GMP) \
$(LIB_CRYPTO_RIJNDAEL)
LDFLAGS_UNIXCL=\
+ $(LIB_LIBVORBIS) \
-L$(UNIX_X11LIBPATH) \
-lX11 \
-lXpm \
LDFLAGS_UNIXSDL=\
$(SDLCONFIG_LIBS) \
+ $(LIB_LIBVORBIS) \
$(LIB_SND_MODPLUG)
EXE_UNIXCL=darkplaces-glx