summaryrefslogtreecommitdiff
path: root/git-annex.cabal
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-02-03 16:29:34 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-02-03 16:29:34 -0400
commit590d47ed764c88a08f615c3af057cbff26633bc1 (patch)
tree4ea91c9c5cb34929df631fc74923ee8d5248471c /git-annex.cabal
parent3f1649ef32cb7f7597473dae6a0e92ff875cea45 (diff)
annex.largefiles: Add support for mimetype=text/* etc, when git-annex is linked with libmagic.
Diffstat (limited to 'git-annex.cabal')
-rw-r--r--git-annex.cabal7
1 files changed, 7 insertions, 0 deletions
diff --git a/git-annex.cabal b/git-annex.cabal
index b2c3647a7..a622a04e5 100644
--- a/git-annex.cabal
+++ b/git-annex.cabal
@@ -63,6 +63,9 @@ Flag TestSuite
Flag TorrentParser
Description: Use haskell torrent library to parse torrent files
+Flag MagicMime
+ Description: Use libmagic to determine file MIME types
+
Flag ConcurrentOutput
Description: Use concurrent-output library
@@ -218,6 +221,10 @@ Executable git-annex
Build-Depends: torrent (>= 10000.0.0)
CPP-Options: -DWITH_TORRENTPARSER
+ if flag(MagicMime)
+ Build-Depends: magic
+ CPP-Options: -DWITH_MAGICMIME
+
if flag(ConcurrentOutput)
Build-Depends: concurrent-output (>= 1.6)
CPP-Options: -DWITH_CONCURRENTOUTPUT