]> git.pld-linux.org Git - packages/fbida.git/blob - no-cairo-gl.patch
- don't build fbpdf if cairo-gl is unavailable
[packages/fbida.git] / no-cairo-gl.patch
1 diff -ur fbida-2.12/GNUmakefile fbida-2.12-cairo/GNUmakefile
2 --- fbida-2.12/GNUmakefile      2016-05-01 20:29:28.027653192 +0200
3 +++ fbida-2.12-cairo/GNUmakefile        2016-05-01 20:27:24.416185030 +0200
4 @@ -15,23 +15,8 @@
5  PKGS_IDA := libexif
6  PKGS_FBI := freetype2 fontconfig libdrm libexif
7  PKGS_FBPDF := libdrm poppler-glib gbm epoxy cairo-gl
8 -HAVE_DEPS := $(shell $(PKG_CONFIG) $(PKGS_FBI) $(PKGS_FBPDF) && echo yes)
9 -
10 -ifeq ($(HAVE_LINUX_FB_H),yes)
11 -ifneq ($(HAVE_DEPS),yes)
12 -.PHONY: deps
13 -deps:
14 -       @echo "Build dependencies missing for fbi and/or fbpdf."
15 -       @echo "  fbi   needs:  $(PKGS_FBI)"
16 -       @echo "  fbpdf needs:  $(PKGS_FBPDF)"
17 -       @echo "Please install.  You can try 'make yum' (needs sudo)."
18 -       @false
19 -
20 -yum dnf:
21 -       sudo $@ install $(patsubst %,"pkgconfig(%)",$(PKGS_FBI) $(PKGS_FBPDF))
22 -
23 -endif
24 -endif
25 +HAVE_FBI_DEPS := $(shell $(PKG_CONFIG) $(PKGS_FBI) && echo yes)
26 +HAVE_FBPDF_DEPS := $(shell $(PKG_CONFIG) $(PKGS_FBPDF) && echo yes)
27  
28  # default target
29  all: build
30 @@ -39,7 +24,13 @@
31  # what to build
32  TARGETS := exiftran thumbnail.cgi
33  ifeq ($(HAVE_LINUX_FB_H),yes)
34 -  TARGETS += fbi fbpdf kbdtest
35 +ifeq ($(HAVE_FBI_DEPS),yes)
36 +  TARGETS += fbi
37 +endif
38 +ifeq ($(HAVE_FBPDF_DEPS),yes)
39 +  TARGETS += fbpdf
40 +endif
41 +  TARGETS += kbdtest
42  endif
43  ifeq ($(HAVE_MOTIF),yes)
44    TARGETS += ida
45 @@ -248,10 +239,14 @@
46         $(INSTALL_BINARY) exiftran $(bindir)
47         $(INSTALL_DATA) $(srcdir)/exiftran.man $(mandir)/man1/exiftran.1
48  ifeq ($(HAVE_LINUX_FB_H),yes)
49 +ifeq ($(HAVE_FBI_DEPS),yes)
50         $(INSTALL_BINARY) fbi $(bindir)
51 -       $(INSTALL_SCRIPT) fbgs $(bindir)
52 -       $(INSTALL_SCRIPT) fbpdf $(bindir)
53         $(INSTALL_DATA) $(srcdir)/fbi.man $(mandir)/man1/fbi.1
54 +endif
55 +ifeq ($(HAVE_FBPDF_DEPS),yes)
56 +       $(INSTALL_SCRIPT) fbpdf $(bindir)
57 +endif
58 +       $(INSTALL_SCRIPT) fbgs $(bindir)
59         $(INSTALL_DATA) $(srcdir)/fbgs.man $(mandir)/man1/fbgs.1
60  endif
61  ifeq ($(HAVE_MOTIF),yes)
This page took 0.045589 seconds and 4 git commands to generate.