summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6334667c..1e39e5f8 100644
--- a/Makefile
+++ b/Makefile
@@ -1019,7 +1019,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)