diff --git a/www/qt5-webkit/Makefile b/www/qt5-webkit/Makefile index 8db128fbea4d..60d9e149f12e 100644 --- a/www/qt5-webkit/Makefile +++ b/www/qt5-webkit/Makefile @@ -2,6 +2,7 @@ PORTNAME= webkit DISTVERSION= 5.212.0-alpha2 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= https://github.com/annulen/${PORTNAME}/releases/download/${DISTNAME}/ PKGNAMEPREFIX= qt5- @@ -46,4 +47,7 @@ CXXFLAGS+= -DNDEBUG PLIST_SUB= FULLVER="${PORTVERSION:R}" +SUB_FILES= pkg-install +SUB_LIST= QT_INCDIR="${QT_INCDIR}" + .include diff --git a/www/qt5-webkit/files/pkg-install.in b/www/qt5-webkit/files/pkg-install.in new file mode 100644 index 000000000000..1136125a5b4f --- /dev/null +++ b/www/qt5-webkit/files/pkg-install.in @@ -0,0 +1,11 @@ +#!/bin/sh + +# Before r448361, QtWebKit had QT_DEFINES, which caused qconfig-modules.h to +# include qconfig-webkit.h, which we no longer set. We no longer ship +# qconfig-webkit.h, we need to make sure qconfig-modules.h no longer includes +# it (see bug 221828). + +if [ "$2" = "POST-INSTALL" ]; then + sed -i "" '/qconfig-webkit.h/d' \ + %%QT_INCDIR%%/QtCore/qconfig-modules.h 2>/dev/null || true +fi