mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +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 += -I$(JPDIR)
|
||||
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
|
||||
|
||||
ifeq ($(USE_FREETYPE),1)
|
||||
|
|
Loading…
Reference in a new issue