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