mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2025-02-21 18:50:57 +00:00
Allow system libjpeg to be in a non-standard location
It doesn't have pkg-config metadata (at least on Debian), so if the user doesn't override it, assume normal system paths.
This commit is contained in:
parent
2821aa41d7
commit
9ff2fc3324
1 changed files with 7 additions and 1 deletions
8
Makefile
8
Makefile
|
@ -1038,7 +1038,13 @@ ifeq ($(USE_INTERNAL_JPEG),1)
|
||||||
BASE_CFLAGS += -DUSE_INTERNAL_JPEG
|
BASE_CFLAGS += -DUSE_INTERNAL_JPEG
|
||||||
BASE_CFLAGS += -I$(JPDIR)
|
BASE_CFLAGS += -I$(JPDIR)
|
||||||
else
|
else
|
||||||
RENDERER_LIBS += -ljpeg
|
# libjpeg doesn't have pkg-config yet, but let users override with
|
||||||
|
# "make JPEG_CFLAGS=-I/opt/jpeg/include JPEG_LIBS='-L/opt/jpeg/lib -ljpeg'"
|
||||||
|
# if they need to
|
||||||
|
JPEG_CFLAGS ?=
|
||||||
|
JPEG_LIBS ?= -ljpeg
|
||||||
|
BASE_CFLAGS += $(JPEG_CFLAGS)
|
||||||
|
RENDERER_LIBS += $(JPEG_LIBS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(USE_FREETYPE),1)
|
ifeq ($(USE_FREETYPE),1)
|
||||||
|
|
Loading…
Reference in a new issue