1 PROJECT_NAME = zathura ;
4 -configure-enable-disable-vars- +=
5 "mupdf" USE_MUPDF "" "don't use muPDF"
11 Echo "checking for muPDF ... " : -n ;
12 LIBMUPDF_PFX = [ DetectLibrary libmupdf.a ] ;
13 LIBMUPDF_EX_PFX = [ DetectLibrary libmupdf-third.a ] ;
14 if $(LIBMUPDF_PFX) && $(LIBMUPDF_EX_PFX) {
16 -configure-add-line- "# muPDF" ;
17 -configure-add-line- "LINKFLAGS.all += -L$(LIBMUPDF_PFX)/lib ;" ;
18 -configure-add-line- "HDRS += $(LIBMUPDF_PFX)/include ;" ;
19 if $(LIBMUPDF_PFX) != $(LIBMUPDF_EX_PFX) {
20 -configure-add-line- "LINKFLAGS.all += -L$(LIBMUPDF_EX_PFX)/lib ;" ;
21 -configure-add-line- "HDRS += $(LIBMUPDF_EX_PFX)/include ;" ;
23 -configure-add-line- "LINKLIBS.all += -lmupdf -lmupdf-third ;" ;
24 -configure-add-line- "DEFINES += USE_MUPDF ;" ;
31 #-configure-pkg-config-necessary- "GTK+2" : gtk+-2.0 : : : "you need GTK+2 to compile this!" ;
32 -configure-pkg-config-necessary- "GTK+2" gtk+-2.0 ;
34 -configure-pkg-config-necessary- "Poppler-glib" poppler-glib ;
36 -configure-pkg-config-necessary- "GThread2" gthread-2.0 ;
38 -configure-add-line- "LINKLIBS.all += -lm ;" ;
42 rule -configure-preinit- {