diff options
author | Ulrich Klauer <ulrich@chirlu.de> | 2013-03-10 08:03:39 (GMT) |
---|---|---|
committer | Ulrich Klauer <ulrich@chirlu.de> | 2013-03-10 08:27:06 (GMT) |
commit | d51295150e83a6229644eadb1a405d68e0b0acf2 (patch) | |
tree | fa907e800b4ca9f4ccc1e6e315fa96ce6b519a50 /src/sox-1-magic.patch | |
parent | e447c58a7c810c26cfcdbd4812ce030412eb2c9e (diff) | |
download | mxe-d51295150e83a6229644eadb1a405d68e0b0acf2.zip mxe-d51295150e83a6229644eadb1a405d68e0b0acf2.tar.gz mxe-d51295150e83a6229644eadb1a405d68e0b0acf2.tar.bz2 |
Enable use of optional libmagic for sox
Make sox use libmagic (package "file") for file type detection.
Requires two ugly hacks.
Diffstat (limited to 'src/sox-1-magic.patch')
-rw-r--r-- | src/sox-1-magic.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/sox-1-magic.patch b/src/sox-1-magic.patch new file mode 100644 index 0000000..47a52f9 --- /dev/null +++ b/src/sox-1-magic.patch @@ -0,0 +1,24 @@ +This file is part of MXE. +See index.html for further information. + +diff -urN sox-14.4.1.orig/configure sox-14.4.1/configure +--- sox-14.4.1.orig/configure 2013-02-02 03:02:52.000000000 +0100 ++++ sox-14.4.1/configure 2013-03-10 08:48:41.000000000 +0100 +@@ -13240,7 +13240,7 @@ + $as_echo_n "(cached) " >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lmagic $LIBS" ++LIBS="-lmagic -lshlwapi -lgnurx $LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + +@@ -13271,7 +13271,7 @@ + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5 + $as_echo "$ac_cv_lib_magic_magic_open" >&6; } + if test "x$ac_cv_lib_magic_magic_open" = xyes; then : +- MAGIC_LIBS="-lmagic" ++ MAGIC_LIBS="-lmagic -lshlwapi -lgnurx" + else + using_magic=no + fi |