diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-03-08 11:14:59 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-03-08 11:14:59 +0100 |
commit | 65693a3be3229625a84dd94a9490c5ed9fc5bcf0 (patch) | |
tree | 6b7755f7f5c2dd65ac441916bb13908ac8af8c8d /GNUmakefile | |
parent | d3d48f198ee71b4421d9fe7b2c66341db9ef2eff (diff) | |
download | fbida-65693a3be3229625a84dd94a9490c5ed9fc5bcf0.tar.gz |
make cairo-gl a compile time option
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile index 7e392eb..9dca7f7 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -14,7 +14,7 @@ CFLAGS += -Wno-pointer-sign PKG_CONFIG = pkg-config PKGS_IDA := libexif libpng libtiff-4 PKGS_FBI := freetype2 fontconfig libdrm libexif libpng libtiff-4 -PKGS_FBPDF := libdrm poppler-glib gbm epoxy cairo-gl +PKGS_FBPDF := libdrm poppler-glib gbm epoxy HAVE_DEPS := $(shell $(PKG_CONFIG) $(PKGS_FBI) $(PKGS_FBPDF) && echo yes) # map pkg-config names to debian packages using apt-file @@ -70,6 +70,7 @@ RESDIR := $(call ac_resdir) HAVE_LINUX_FB_H := $(call ac_header,linux/fb.h) HAVE_GLIBC := $(call ac_func,fopencookie) HAVE_STRSIGNAL := $(call ac_func,strsignal) +HAVE_CAIRO_GL := $(call ac_pkg_config,cairo-gl) HAVE_LIBPCD := $(call ac_lib,pcd_open,pcd) HAVE_LIBGIF := $(call ac_lib,DGifOpenFileName,gif) HAVE_LIBWEBP := $(call ac_pkg_config,libwebp) @@ -102,7 +103,11 @@ ifeq ($(HAVE_LIBWEBP),yes) PKGS_FBI += libwebp endif -includes = ENDIAN_H STRSIGNAL NEW_EXIF +ifeq ($(HAVE_CAIRO_GL),yes) + PKGS_FBPDF += cairo-gl +endif + +includes = STRSIGNAL CAIRO_GL libraries = PCD GIF CURL SANE LIRC ida_libs = PCD GIF WEBP CURL SANE fbi_libs = PCD GIF WEBP CURL LIRC |