summaryrefslogtreecommitdiffstats
path: root/src/ffmpeg.mk
diff options
context:
space:
mode:
authorTobias Gruetzmacher <tobias-git@23.gs>2014-03-08 18:37:08 (GMT)
committerTobias Gruetzmacher <tobias-git@23.gs>2014-03-08 21:00:19 (GMT)
commitceaa7b43359db71823460f999576805cd5d7a1e0 (patch)
treec43d64787619d0be3b95c35630c1c77d24272f3c /src/ffmpeg.mk
parent15fb0b4df90d46cc8b1bf96f0bdff1fcce794551 (diff)
downloadmxe-ceaa7b43359db71823460f999576805cd5d7a1e0.zip
mxe-ceaa7b43359db71823460f999576805cd5d7a1e0.tar.gz
mxe-ceaa7b43359db71823460f999576805cd5d7a1e0.tar.bz2
Package ffmpeg: Fix generation of --arch param.
GNU Make's patsubst does strange things (aka. nothing at all) when there are dots in the text it should replace...
Diffstat (limited to 'src/ffmpeg.mk')
-rw-r--r--src/ffmpeg.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ffmpeg.mk b/src/ffmpeg.mk
index 26ec7c2..404d22c 100644
--- a/src/ffmpeg.mk
+++ b/src/ffmpeg.mk
@@ -20,11 +20,10 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
- '$(SED)' -i "s^[-]lvpx^`'$(TARGET)'-pkg-config --libs-only-l vpx`^g;" $(1)/configure
cd '$(1)' && ./configure \
--cross-prefix='$(TARGET)'- \
--enable-cross-compile \
- --arch=$(patsubst -%,,$(TARGET)) \
+ --arch=$(firstword $(subst -, ,$(TARGET))) \
--target-os=mingw32 \
--prefix='$(PREFIX)/$(TARGET)' \
$(if $(BUILD_STATIC), \