[hackers] [sxiv] Add build options for optional dependencies || Vlad Glagolev

From: <git_AT_suckless.org>
Date: Wed, 28 Dec 2016 19:19:24 +0100 (CET)

commit 22436f747d05e99d17bfc05a9d2892cc2ba579af
Author: Vlad Glagolev <scm_AT_vaygr.net>
AuthorDate: Mon Dec 26 19:20:59 2016 -0500
Commit: Vlad Glagolev <scm_AT_vaygr.net>
CommitDate: Mon Dec 26 19:20:59 2016 -0500

    Add build options for optional dependencies

diff --git a/Makefile b/Makefile
index 9caa9ca..b4d4f75 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -11,12 +11,15 @@ LIBS := -lImlib2 -lX11 -lXft
 
 # optional dependencies:
 # giflib: gif animations
+ifeq ($(WITH_GIFLIB), 1)
         CPPFLAGS += -DHAVE_GIFLIB
         LIBS += -lgif
+endif
 # libexif: jpeg auto-orientation, exif thumbnails
+ifeq ($(WITH_LIBEXIF), 1)
         CPPFLAGS += -DHAVE_LIBEXIF
         LIBS += -lexif
-
+endif
 
 .PHONY: clean install uninstall
 
Received on Wed Dec 28 2016 - 19:19:24 CET

This archive was generated by hypermail 2.3.0 : Wed Dec 28 2016 - 19:24:19 CET