mkvtoolnix: fix qt5 option (#5865)

pkg-config files aren't available anymore for the Qt5 frameworks so the
include paths and framework paths have to be specified directly
This commit is contained in:
ilovezfs 2016-10-13 03:42:37 -07:00 committed by GitHub
parent ba7b72ba18
commit 55329433e7

View file

@ -64,6 +64,10 @@ class Mkvtoolnix < Formula
if build.with?("qt5")
qt5 = Formula["qt5"]
ENV["QT_CFLAGS"] = "-I#{qt5.opt_include} -I#{qt5.opt_include}/QtNetwork -I#{qt5.opt_include}/QtWidgets -I#{qt5.opt_include}/QtGui -I#{qt5.opt_include}/QtCore"
ENV["QT_LIBS"] = "-F#{qt5.opt_lib} -framework QtNetwork -framework QtWidgets -framework QtGui -framework QtCore"
args << "--without-qt-pkg-config"
args << "--with-moc=#{qt5.opt_bin}/moc"
args << "--with-uic=#{qt5.opt_bin}/uic"
args << "--with-rcc=#{qt5.opt_bin}/rcc"