summaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-02-10 21:44:01 +0100
committerGitHub <noreply@github.com>2022-02-10 21:44:01 +0100
commit125556cb9847fd2c71296760d61228ad30476a8c (patch)
treed16eba0869547a574c293054972e8941c1c96c1c /config.mk
parent617e1f3a75fedb01af851694fe31df5b859239a2 (diff)
parent26cd770c8732a4467e57cf3e7a5d4c2518836275 (diff)
Merge pull request #645 from eworm-de/magic
use libmagic to detect valid file formats
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.mk b/config.mk
index 2d63f72..910eac7 100644
--- a/config.mk
+++ b/config.mk
@@ -6,6 +6,7 @@ curl ?= 1
debug ?= 0
exif ?= 0
help ?= 0
+magic ?= 1
mkstemps ?= 1
verscmp ?= 1
xinerama ?= 1
@@ -68,6 +69,11 @@ ifeq (${mkstemps},1)
CFLAGS += -DHAVE_MKSTEMPS
endif
+ifeq (${magic},1)
+ CFLAGS += -DHAVE_LIBMAGIC
+ LDLIBS += -lmagic
+endif
+
ifeq (${verscmp},1)
CFLAGS += -DHAVE_STRVERSCMP
endif