summaryrefslogtreecommitdiffstats
path: root/src/sox.mk
diff options
context:
space:
mode:
authorUlrich Klauer <ulrich@chirlu.de>2013-03-10 08:03:39 (GMT)
committerUlrich Klauer <ulrich@chirlu.de>2013-03-10 08:27:06 (GMT)
commitd51295150e83a6229644eadb1a405d68e0b0acf2 (patch)
treefa907e800b4ca9f4ccc1e6e315fa96ce6b519a50 /src/sox.mk
parente447c58a7c810c26cfcdbd4812ce030412eb2c9e (diff)
downloadmxe-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.mk')
-rw-r--r--src/sox.mk9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sox.mk b/src/sox.mk
index e81ae9e..a482a7d 100644
--- a/src/sox.mk
+++ b/src/sox.mk
@@ -8,7 +8,7 @@ $(PKG)_CHECKSUM := 71f05afc51e3d9b03376b2f98fd452d3a274d595
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc flac lame libgomp libmad libpng libsndfile libtool opencore-amr twolame vorbis wavpack
+$(PKG)_DEPS := gcc file flac lame libgomp libmad libpng libsndfile libtool opencore-amr twolame vorbis wavpack
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://sourceforge.net/projects/sox/files/sox/' | \
@@ -20,8 +20,9 @@ define $(PKG)_BUILD
# set pkg-config cflags and libs
$(SED) -i 's,^\(Cflags:.*\),\1 -fopenmp,' '$(1)/sox.pc.in'
$(SED) -i '/Libs.private/d' '$(1)/sox.pc.in'
- echo Libs.private: `grep sox_LDADD '$(1)/src/optional-fmts.am' | \
- $(SED) 's, sox_LDADD += ,,g' | tr -d '\n'` >>'$(1)/sox.pc.in'
+ echo Libs.private: @MAGIC_LIBS@ \
+ `grep sox_LDADD '$(1)/src/optional-fmts.am' | \
+ $(SED) 's, sox_LDADD += ,,g' | tr -d '\n'` >>'$(1)/sox.pc.in'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
@@ -31,7 +32,7 @@ define $(PKG)_BUILD
--enable-static \
--disable-debug \
--with-libltdl \
- --without-magic \
+ --with-magic \
--with-png \
--with-ladspa \
--with-amrwb \