1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 21:23:01 +01:00

Makefile: use correct variable name when checking video libs

This commit is contained in:
Ansa89 2016-10-05 09:09:22 +02:00
parent da6fe41d75
commit 34c29745cc
No known key found for this signature in database
GPG Key ID: 19B3DFBF159E800E

View File

@ -8,13 +8,13 @@ else
endif endif
# Check if we can build video support # Check if we can build video support
CHECK_VIDEO_LIBS = $(shell $(PKG-CONFIG) --exists $(VIDEO_LIBS) || echo -n "error") CHECK_VIDEO_LIBS = $(shell $(PKG_CONFIG) --exists $(VIDEO_LIBS) || echo -n "error")
ifneq ($(CHECK_VIDEO_LIBS), error) ifneq ($(CHECK_VIDEO_LIBS), error)
LIBS += $(VIDEO_LIBS) LIBS += $(VIDEO_LIBS)
CFLAGS += $(VIDEO_CFLAGS) CFLAGS += $(VIDEO_CFLAGS)
OBJ += $(VIDEO_OBJ) OBJ += $(VIDEO_OBJ)
else ifneq ($(MAKECMDGOALS), clean) else ifneq ($(MAKECMDGOALS), clean)
MISSING_VIDEO_LIBS = $(shell for lib in $(VIDEO_LIBS) ; do if ! $(PKG-CONFIG) --exists $$lib ; then echo $$lib ; fi ; done) MISSING_VIDEO_LIBS = $(shell for lib in $(VIDEO_LIBS) ; do if ! $(PKG_CONFIG) --exists $$lib ; then echo $$lib ; fi ; done)
$(warning WARNING -- Toxic will be compiled without video support) $(warning WARNING -- Toxic will be compiled without video support)
$(warning WARNING -- You will need these libraries for video support) $(warning WARNING -- You will need these libraries for video support)
$(warning WARNING -- $(MISSING_VIDEO_LIBS)) $(warning WARNING -- $(MISSING_VIDEO_LIBS))