summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Gruetzmacher <tobias-git@23.gs>2014-03-08 18:27:45 (GMT)
committerTobias Gruetzmacher <tobias-git@23.gs>2014-03-08 21:00:18 (GMT)
commit15fb0b4df90d46cc8b1bf96f0bdff1fcce794551 (patch)
treeecf260293c62de604bfababb026a4de279fc676c /src
parentc45869654a9a636174bae709c19e359843d1ce99 (diff)
downloadmxe-15fb0b4df90d46cc8b1bf96f0bdff1fcce794551.zip
mxe-15fb0b4df90d46cc8b1bf96f0bdff1fcce794551.tar.gz
mxe-15fb0b4df90d46cc8b1bf96f0bdff1fcce794551.tar.bz2
Package libbluray: Ugly fix for shared build.
Diffstat (limited to 'src')
-rw-r--r--src/libbluray.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libbluray.mk b/src/libbluray.mk
index d8aeb69..d5fdf52 100644
--- a/src/libbluray.mk
+++ b/src/libbluray.mk
@@ -27,5 +27,12 @@ define $(PKG)_BUILD
--with-libxml2 \
--disable-bdjava
$(MAKE) -C '$(1)' -j '$(JOBS)'
+
+ # Since libbluray doesn't export its symbols, we can't create a shared
+ # build on Windows. So we mangle the pkg-config to fool ffmpegs detection
+ # to work... In a static build, this fixes transitive dependencies of xml2
+ # and freetype...
+ $(SED) -i '/Libs:/ s,$$, -lxml2 -lfreetype,; s,^Libs.private:.*$$,Requires.private: libxml-2.0 freetype2,' '$(1)/src/libbluray.pc'
+
$(MAKE) -C '$(1)' -j 1 install
endef