Info4: << # QtWebkit has been deprecated and removed from upstream releases as of 5.6. # 5.6.0 and up are 'community releases' Package: qt5-%type_pkg[qt]-qtwebkit # libicu67 & libicu72 FTBFS Version: 5.7.1 Revision: 4 Description: Cross-Platform framework (%type_pkg[qt]) Type: qt (mac) License: LGPL Maintainer: None ### First version 5.3.1 by Hanspeter Niederstrasser ### Free to upgrade and modify parameters, but please discuss ### first on the fink-devel list Depends: << qt5-%type_pkg[qt]-qtwebkit-shlibs (= %v-%r) << BuildDepends: << bison (>= 3.7), qt5-%type_pkg[qt]-qtbase-dev-tools (>= %v-1), qt5-%type_pkg[qt]-qtbase (>= %v-1), #qt5-%type_pkg[qt]-qttools-dev-tools (>= %v-1), qt5-%type_pkg[qt]-qtdeclarative (>= %v-1), qt5-%type_pkg[qt]-qtlocation (>= %v-1), qt5-%type_pkg[qt]-qtmultimedia (>= %v-1), qt5-%type_pkg[qt]-qtsensors (>= %v-1), qt5-%type_pkg[qt]-qtwebchannel (>= %v-1), fink (>= 0.34.4-1), fink-buildenv-modules, fink-package-precedence, libiconv-dev, libicu55-dev, libjpeg9, libpng16, libwebp7, libxml2 (>= 2.9.1-1), libxslt, pkgconfig, sqlite3-dev, xcode.app, ( %type_pkg[qt] = x11 ) x11-dev << BuildConflicts: uuid, libevent1.4, libevent2, libev4 BuildDependsOnly: true Source: http://download.qt.io/community_releases/5.7/%v/qtwebkit-opensource-src-%v.tar.xz Source-Checksum: SHA256(a46cf7c89339645f94a5777e8ae5baccf75c5fc87ab52c9dafc25da3327b5f03) PatchFile: qt5-qtwebkit.patch PatchFile-MD5: e6e207c3e6b4336917e630be4b17f54f # Fix for bison >= 3.7. # https://github.com/qtwebkit/qtwebkit/issues/1023 PatchFile2: qt5-qtwebkit-bison.patch PatchFile2-MD5: 3c3d06ead6c513df34c11f8bff35244a PatchScript: << #!/bin/sh -ex sed -e "s|@FINK_PREFIX@|%p|g; s|@FINK_ICU_LIBS@|`pkg-config --libs-only-l icu-i18n`|" < %{PatchFile} | patch -p1 patch -p1 < %{PatchFile2} if [ "%type_raw[qt]" == "mac" ]; then ### Find our Qt Frameworks echo "QMAKE_CXXFLAGS += -F%p/lib/qt5-%type_pkg[qt]/lib" >> Source/JavaScriptCore/LLIntOffsetsExtractor.pro echo "INCPATH += %p/lib/qt5-%type_pkg[qt]/lib/QtCore.framework/Headers" >> Source/JavaScriptCore/LLIntOffsetsExtractor.pro fi << #NoSetCPPFLAGS: true #NoSetCFLAGS: true #NoSetCXXFLAGS: true GCC: 4.0 CompileScript: << #!/bin/sh -ev . %p/sbin/fink-buildenv-helper.sh export QT_FINK_PREFIX=%p/lib/qt5-%type_pkg[qt] export PATH=${QT_FINK_PREFIX}/bin:$PATH if [ "%type_raw[qt]" == "x11" ]; then qmake_flags="QMAKE_CXXFLAGS+=-I/opt/X11/include" fi # webkit must have an out of tree build mkdir build pushd build qmake $qmake_flags FLEX=/usr/bin/flex .. make -w popd # make docs fink-package-precedence --depfile-ext='\.d' --prohibit-bdep=%N . << InstallScript: << #!/bin/sh -ev pushd build export QT_FINK_PREFIX=%p/lib/qt5-%type_pkg[qt] make install INSTALL_ROOT=%d ### Make sure we have all the right packages (by probing .pc files) pushd %d/${QT_FINK_PREFIX}/lib/pkgconfig ### keep at end of the 'want' list of .pc files want="Qt5WebKit.pc Qt5WebKitWidgets.pc " have=`/bin/ls -1 | tr '\n' ' '` popd if [ "$want" != "$have" ]; then echo "Unexpected build results (mismatched list of .pc)" echo " want: '$want'" echo " have: '$have'" exit 1 fi ### Clean up .la, .prl files ### remove build-dir location and fix '-framework ' -> '-Wl,-framework,' find %d/${QT_FINK_PREFIX}/lib -name \*.prl -o -name \*.la | xargs \ perl -pi -e 's|%b/lib|%p/lib|g; s|-framework |-Wl,-framework,|g; s|QMAKE_PRL_BUILD_DIR \= (.*)$|QMAKE_PRL_BUILD_DIR = |g' ### Clean up .pc files ### fix '-framework ' -> '-Wl,-framework,' find %d/${QT_FINK_PREFIX}/lib -name \*.pc | xargs \ perl -pi -e 's|-framework |-Wl,-framework,|g' ### Fix includedir to point into framework dir instead of non-existent include/QtFOO ### https://bugreports.qt.io/browse/QTBUG-35256 for QTLIB in WebKit WebKitWidgets; do perl -pi -e "s|/Qt$QTLIB|/Qt$QTLIB.framework/Headers|g" %d/${QT_FINK_PREFIX}/lib/pkgconfig/Qt5$QTLIB.pc perl -pi -e 's|I\$\{includedir\}/Qt|F\$\{libdir\} -I\$\{libdir\}/Qt|g' %d/${QT_FINK_PREFIX}/lib/pkgconfig/Qt5$QTLIB.pc done ### clean up Libs.private perl -ni -e 'print unless /Libs.private:/' %d/${QT_FINK_PREFIX}/lib/pkgconfig/*.pc # install -m 0755 -d %i/lib/qt5-%type_pkg[qt]/share/doc/qt5 # cp %b/doc/*.qch %i/lib/qt5-%type_pkg[qt]/share/doc/qt5 # cp -r %b/doc/qtwebkit %i/lib/qt5-%type_pkg[qt]/share/doc/qt5 popd << #AppBundles: DocFiles: Source/WebKit/LICENSE:LICENSE.WebKit VERSION SplitOff: << Package: qt5-%type_pkg[qt]-qtwebkit-shlibs Description: Qt WebKit browser framework (%type_pkg[qt]) Depends: << qt5-%type_pkg[qt]-qtcore-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtgui-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtmultimedia-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtmultimediawidgets-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtnetwork-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtopengl-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtpositioning-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtprintsupport-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtqml-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtquick-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtsensors-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtsql-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtwebchannel-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtwidgets-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtxml-shlibs (>= %v-1), libicu55-shlibs, libjpeg9-shlibs, libpng16-shlibs, libwebp7-shlibs, libxml2-shlibs (>= 2.9.1-1), libxslt-shlibs, sqlite3-shlibs << Files: << ( %type_pkg[qt] = mac ) lib/qt5-%type_pkg[qt]/lib/QtWebKit.framework/Versions/5/QtWebKit ( %type_pkg[qt] = mac ) lib/qt5-%type_pkg[qt]/lib/QtWebKitWidgets.framework/Versions/5/QtWebKitWidgets ( %type_pkg[qt] = x11 ) lib/qt5-%type_pkg[qt]/lib/libQt5WebKit.5*.dylib ( %type_pkg[qt] = x11 ) lib/qt5-%type_pkg[qt]/lib/libQt5WebKitWidgets.5*.dylib lib/qt5-%type_pkg[qt]/libexec/QtWebProcess << Shlibs: << ( %type_pkg[qt] = mac ) %p/lib/qt5-%type_pkg[qt]/lib/QtWebKit.framework/Versions/5/QtWebKit 5.7.0 %n (>= 5.7.0-1) ( %type_pkg[qt] = mac ) %p/lib/qt5-%type_pkg[qt]/lib/QtWebKitWidgets.framework/Versions/5/QtWebKitWidgets 5.7.0 %n (>= 5.7.0-1) ( %type_pkg[qt] = x11 ) %p/lib/qt5-%type_pkg[qt]/lib/libQt5WebKit.5.dylib 5.7.0 %n (>= 5.7.0-1) ( %type_pkg[qt] = x11 ) %p/lib/qt5-%type_pkg[qt]/lib/libQt5WebKitWidgets.5.dylib 5.7.0 %n (>= 5.7.0-1) << DocFiles: Source/WebKit/LICENSE:LICENSE.WebKit VERSION DescDetail: << The QtWebKit module browser interface. << << SplitOff2: << Package: qt5-%type_pkg[qt]-qml-module-qtwebkit Description: Qt5 webkit QML module (%type_pkg[qt]) Depends: << qt5-%type_pkg[qt]-qtwebkit-shlibs (>= %v-%r), qt5-%type_pkg[qt]-qtcore-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtgui-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtnetwork-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtpositioning-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtqml-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtwebchannel-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtquick-shlibs (>= %v-1) << Files: << lib/qt5-%type_pkg[qt]/share/qt5/qml/QtWebKit << DocFiles: Source/WebKit/LICENSE:LICENSE.WebKit VERSION DescDetail: << # Webkit packages its own documentation because it requires # buildtime generated files (not present in fresh tarball). # However, that needs qttools-dev-tools, which BDeps on webkit, # so comment out for now until we figure out how to break # the circular dependency. #SplitOff3: << # Package: qt5-%type_pkg[qt]-qtwebkit-doc # Description: Qt5 WebKit documentation (%type_pkg[qt]) # Files: << # lib/qt5-%type_pkg[qt]/share/doc/qt5/qtwebkit.qch # lib/qt5-%type_pkg[qt]/share/doc/qt5/qtwebkit # << # DescDetail: Documentation for Qt. #<< Homepage: http://qt-project.org DescDetail: << Qt is a cross-platform application and UI framework with APIs for C++ programming and Qt Quick for rapid UI creation. * Intuitive class libraries * Easy to use and learn * Produce highly readable, easily maintainable and reusable code * High runtime performance and small footprint << DescUsage: << To compile against this Qt5, you need to make sure that "%p/lib/qt5-%type_pkg[qt]/bin" is first in your PATH and that qmake is present. Qmake is provided by "qt5-%type_pkg[qt]-qtbase-dev-tools". If you need to manually find the headers and libraries, you need your compiler flags to contain: -F%p/lib/qt5-%type_pkg[qt]/lib or this: -I%p/lib/qt5-%type_pkg[qt]/include ...and your linker flags to contain: -F%p/lib/qt5-%type_pkg[qt]/lib or -L%p/lib/qt5-%type_pkg[qt]/lib In this case, it's still a good idea to set your PATH to contain "%p/lib/qt5-%type_pkg[qt]/bin" as well. << DescPackaging: << We follow Ubuntu's lead in using the separate tarballs and separate most of the packages the same way they do. << DescPort: << On >= 1090, JSC_OBJC_API_ENABLED is set to TRUE, which then causes Source/JavaScriptCore/API/ObjCCallbackFunction.h attempts to search for JavaScriptCore/JSCallbackFunction.h, which it can't find. So we force it to always be < 1090, therefore FALSE. << << # End Info4