From 15fb0b4df90d46cc8b1bf96f0bdff1fcce794551 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Sat, 8 Mar 2014 19:27:45 +0100 Subject: [PATCH] Package libbluray: Ugly fix for shared build. --- src/libbluray.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/libbluray.mk b/src/libbluray.mk index d8aeb695..d5fdf521 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