Info4: << Package: qt5-%type_pkg[qt]-qt3d Version: 5.7.1 Revision: 3 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 # qt5-%type_pkg[qt]-qt3dcollision-shlibs (= %v-%r), Depends: << qt5-%type_pkg[qt]-qt3dcore-shlibs (= %v-%r), qt5-%type_pkg[qt]-qt3dinput-shlibs (= %v-%r), qt5-%type_pkg[qt]-qt3dlogic-shlibs (= %v-%r), qt5-%type_pkg[qt]-qt3dquick-shlibs (= %v-%r), qt5-%type_pkg[qt]-qt3dquickrender-shlibs (= %v-%r), qt5-%type_pkg[qt]-qt3drender-shlibs (= %v-%r) << BuildDepends: << qt5-%type_pkg[qt]-qtbase-dev-tools (>= %v-1), qt5-%type_pkg[qt]-qtbase (>= %v-1), qt5-%type_pkg[qt]-qtdeclarative (>= %v-1), fink (>= 0.34.4-1), fink-buildenv-modules, fink-package-precedence, libassimp5-dev, pkgconfig, xcode.app, ( %type_pkg[qt] = x11 ) x11-dev << BuildConflicts: uuid, libevent1.4, libevent2, libev4 BuildDependsOnly: true Source: http://download.qt.io/archive/qt/5.7/%v/submodules/qt3d-opensource-src-%v.tar.xz Source-Checksum: SHA256(1d74cf431777b8086d771ab0d4d2c01f9c28eb14cc2d73d7f838a665d1f707ea) PatchScript: << # qmake/pkg-config expects -I%p/include/assimp, but pkg uses #include # https://bugreports.qt.io/browse/QTBUG-44582 echo "INCLUDEPATH += %p/include" >> config.tests/assimp/assimp.pro echo "INCLUDEPATH += %p/include" >> src/plugins/sceneparsers/assimp/assimp.pro echo "INCLUDEPATH += %p/include" >> tools/qgltf/qgltf.pro << 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 export PKG_CONFIG_PATH=%p/lib/glib-2.0/pkgconfig-strict:$PKG_CONFIG_PATH #if [ "%type_raw[qt]" == "mac" ]; then # qmake_flags="QMAKE_CXXFLAGS+=\"-F%b/lib\"" #fi qmake $qmake_flags make -w fink-package-precedence --depfile-ext='\.d' --prohibit-bdep=%N . << InstallScript: << #!/bin/sh -ev 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="Qt53DCore.pc Qt53DExtras.pc Qt53DInput.pc Qt53DLogic.pc Qt53DQuick.pc Qt53DQuickExtras.pc Qt53DQuickInput.pc Qt53DQuickRender.pc Qt53DRender.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 3DCore 3DExtras 3DInput 3DLogic 3DQuick 3DQuickExtras 3DQuickInput 3DQuickRender 3DRender; 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 << #AppBundles: DocFiles: LICENSE.GPL LICENSE.LGPLv3 README # Collision support was removed in 5.6.0 because the API was not stable. # Nothing uses it. Might be back around 5.8. # https://bugreports.qt.io/browse/QTBUG-49091 # http://code.qt.io/cgit/qt/qt3d.git/commit/src/src.pro?id=336e49eaa2a5722bc256bf819d54ad1d3cb931cb #SplitOff: << # Package: qt5-%type_pkg[qt]-qt3dcollision-shlibs # Description: Qt 3D Collision library (%type_pkg[qt]) # Depends: << # qt5-%type_pkg[qt]-qt3dcore-shlibs (>= %v-%r), # qt5-%type_pkg[qt]-qtcore-shlibs (>= %v-1), # qt5-%type_pkg[qt]-qtgui-shlibs (>= %v-1) # << # Files: << # ( %type_pkg[qt] = mac ) lib/qt5-%type_pkg[qt]/lib/Qt3DCollision.framework/Versions/5/Qt3DCollision # ( %type_pkg[qt] = x11 ) lib/qt5-%type_pkg[qt]/lib/libQt3DCollision.5*.dylib # << # Shlibs: << # ( %type_pkg[qt] = mac ) %p/lib/qt5-%type_pkg[qt]/lib/Qt3DCollision.framework/Versions/5/Qt3DCollision 5.5.0 %n (>= 5.5.1-1) # ( %type_pkg[qt] = x11 ) %p/lib/qt5-%type_pkg[qt]/lib/libQt3DCollision.5.dylib 5.5.1 %n (>= 5.5.0-1) # << # DescDetail: << #Qt5 3D collisions module. # << #<< SplitOff2: << Package: qt5-%type_pkg[qt]-qt3dcore-shlibs Description: Qt 3D Core library (%type_pkg[qt]) Depends: << qt5-%type_pkg[qt]-qtcore-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtgui-shlibs (>= %v-1) << Conflicts: qt5-%type_pkg[qt]-qt3dcollision-shlibs (<< 5.6.0) Replaces: qt5-%type_pkg[qt]-qt3dcollision-shlibs (<< 5.6.0) Files: << ( %type_pkg[qt] = mac ) lib/qt5-%type_pkg[qt]/lib/Qt3DCore.framework/Versions/5/Qt3DCore ( %type_pkg[qt] = x11 ) lib/qt5-%type_pkg[qt]/lib/libQt53DCore.5*.dylib << Shlibs: << ( %type_pkg[qt] = mac ) %p/lib/qt5-%type_pkg[qt]/lib/Qt3DCore.framework/Versions/5/Qt3DCore 5.7.0 %n (>= 5.7.0-1) ( %type_pkg[qt] = x11 ) %p/lib/qt5-%type_pkg[qt]/lib/libQt53DCore.5.dylib 5.7.0 %n (>= 5.7.0-1) << DescDetail: << Qt5 3D module. << << SplitOff3: << Package: qt5-%type_pkg[qt]-qt3dinput-shlibs Description: Qt 3D Input library (%type_pkg[qt]) Depends: << qt5-%type_pkg[qt]-qt3dcore-shlibs (>= %v-%r), qt5-%type_pkg[qt]-qt3drender-shlibs (>= %v-%r), qt5-%type_pkg[qt]-qtconcurrent-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtcore-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtgui-shlibs (>= %v-1) << Files: << ( %type_pkg[qt] = mac ) lib/qt5-%type_pkg[qt]/lib/Qt3DInput.framework/Versions/5/Qt3DInput ( %type_pkg[qt] = x11 ) lib/qt5-%type_pkg[qt]/lib/libQt53DInput.5*.dylib << Shlibs: << ( %type_pkg[qt] = mac ) %p/lib/qt5-%type_pkg[qt]/lib/Qt3DInput.framework/Versions/5/Qt3DInput 5.7.0 %n (>= 5.7.0-1) ( %type_pkg[qt] = x11 ) %p/lib/qt5-%type_pkg[qt]/lib/libQt53DInput.5.dylib 5.7.0 %n (>= 5.7.0-1) << DescDetail: << Qt5 3D input module. << << SplitOff4: << Package: qt5-%type_pkg[qt]-qt3dlogic-shlibs Description: Qt 3D Logic library (%type_pkg[qt]) Depends: << qt5-%type_pkg[qt]-qt3dcore-shlibs (>= %v-%r), qt5-%type_pkg[qt]-qtcore-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtgui-shlibs (>= %v-1) << Files: << ( %type_pkg[qt] = mac ) lib/qt5-%type_pkg[qt]/lib/Qt3DLogic.framework/Versions/5/Qt3DLogic ( %type_pkg[qt] = x11 ) lib/qt5-%type_pkg[qt]/lib/libQt53DLogic.5*.dylib << Shlibs: << ( %type_pkg[qt] = mac ) %p/lib/qt5-%type_pkg[qt]/lib/Qt3DLogic.framework/Versions/5/Qt3DLogic 5.7.0 %n (>= 5.7.0-1) ( %type_pkg[qt] = x11 ) %p/lib/qt5-%type_pkg[qt]/lib/libQt53DLogic.5.dylib 5.7.0 %n (>= 5.7.0-1) << DescDetail: << Qt5 3D logic module. << << SplitOff5: << Package: qt5-%type_pkg[qt]-qt3dquick-shlibs Description: Qt 3D Quick Depends: << qt5-%type_pkg[qt]-qt3dcore-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]-qtqml-shlibs (>= %v-1) << Files: << ( %type_pkg[qt] = mac ) lib/qt5-%type_pkg[qt]/lib/Qt3DQuick.framework/Versions/5/Qt3DQuick ( %type_pkg[qt] = x11 ) lib/qt5-%type_pkg[qt]/lib/libQt53DQuick.5*.dylib << Shlibs: << ( %type_pkg[qt] = mac ) %p/lib/qt5-%type_pkg[qt]/lib/Qt3DQuick.framework/Versions/5/Qt3DQuick 5.7.0 %n (>= 5.7.0-1) ( %type_pkg[qt] = x11 ) %p/lib/qt5-%type_pkg[qt]/lib/libQt53DQuick.5.dylib 5.7.0 %n (>= 5.7.0-1) << DescDetail: << Qt5 3D Quick module. << << SplitOff6: << Package: qt5-%type_pkg[qt]-qt3dquickrender-shlibs Description: Qt 3D Quick Render Depends: << qt5-%type_pkg[qt]-qt3dcore-shlibs (>= %v-%r), qt5-%type_pkg[qt]-qt3dquick-shlibs (>= %v-%r), qt5-%type_pkg[qt]-qt3drender-shlibs (>= %v-%r), qt5-%type_pkg[qt]-qtconcurrent-shlibs (>= %v-1), 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]-qtqml-shlibs (>= %v-1) << Conflicts: qt5-%type_pkg[qt]-qt3dquickrenderer-shlibs (<< 5.6.0) Replaces: qt5-%type_pkg[qt]-qt3dquickrenderer-shlibs (<< 5.6.0) Files: << ( %type_pkg[qt] = mac ) lib/qt5-%type_pkg[qt]/lib/Qt3DQuickRender.framework/Versions/5/Qt3DQuickRender ( %type_pkg[qt] = x11 ) lib/qt5-%type_pkg[qt]/lib/libQt53DQuickRender.5*.dylib << Shlibs: << ( %type_pkg[qt] = mac ) %p/lib/qt5-%type_pkg[qt]/lib/Qt3DQuickRender.framework/Versions/5/Qt3DQuickRender 5.7.0 %n (>= 5.7.0-1) ( %type_pkg[qt] = x11 ) %p/lib/qt5-%type_pkg[qt]/lib/libQt53DQuickRender.5.dylib 5.7.0 %n (>= 5.7.0-1) << DescDetail: << Qt5 3D Quick Render module. << << SplitOff7: << Package: qt5-%type_pkg[qt]-qt3drender-shlibs Description: Qt 3D Quick Render Depends: << qt5-%type_pkg[qt]-qt3dcore-shlibs (>= %v-%r), qt5-%type_pkg[qt]-qtconcurrent-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtcore-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtgui-shlibs (>= %v-1) << Conflicts: qt5-%type_pkg[qt]-qt3drenderer-shlibs (<< 5.6.0) Replaces: qt5-%type_pkg[qt]-qt3drenderer-shlibs (<< 5.6.0) Files: << ( %type_pkg[qt] = mac ) lib/qt5-%type_pkg[qt]/lib/Qt3DRender.framework/Versions/5/Qt3DRender ( %type_pkg[qt] = x11 ) lib/qt5-%type_pkg[qt]/lib/libQt53DRender.5*.dylib << Shlibs: << ( %type_pkg[qt] = mac ) %p/lib/qt5-%type_pkg[qt]/lib/Qt3DRender.framework/Versions/5/Qt3DRender 5.7.0 %n (>= 5.7.0-1) ( %type_pkg[qt] = x11 ) %p/lib/qt5-%type_pkg[qt]/lib/libQt53DRender.5.dylib 5.7.0 %n (>= 5.7.0-1) << DescDetail: << Qt5 3D Render module. << << SplitOff10: << Package: qt5-%type_pkg[qt]-qml-module-qt3d Description: Qt5 Qt3D QML module (%type_pkg[qt]) Depends: << qt5-%type_pkg[qt]-qt3dcore-shlibs (>= %v-%r), qt5-%type_pkg[qt]-qt3drender-shlibs (>= %v-%r), qt5-%type_pkg[qt]-qtcore-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtgui-shlibs (>= %v-1) << Files: << lib/qt5-%type_pkg[qt]/share/qt5/qml/Qt3D << DescDetail: << SplitOff11: << Package: qt5-%type_pkg[qt]-qml-module-qtquick-scene3d Description: Qt5 Scene3D QML module (%type_pkg[qt]) Depends: << qt5-%type_pkg[qt]-qt3dcore-shlibs (>= %v-%r), qt5-%type_pkg[qt]-qt3dinput-shlibs (>= %v-%r), qt5-%type_pkg[qt]-qt3drender-shlibs (>= %v-%r), qt5-%type_pkg[qt]-qtconcurrent-shlibs (>= %v-1), 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]-qtqml-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtquick-shlibs (>= %v-1) << Files: << lib/qt5-%type_pkg[qt]/share/qt5/qml/QtQuick << DescDetail: << SplitOff12: << Package: qt5-%type_pkg[qt]-sceneparsers-plugins Description: Qt5 positioning plugins (%type_pkg[qt]) Depends: << libassimp5-shlibs, qt5-%type_pkg[qt]-qt3dcore-shlibs (>= %v-%r), qt5-%type_pkg[qt]-qt3drender-shlibs (>= %v-%r), qt5-%type_pkg[qt]-qtconcurrent-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtcore-shlibs (>= %v-1), qt5-%type_pkg[qt]-qtgui-shlibs (>= %v-1) << Files: << lib/qt5-%type_pkg[qt]/plugins/sceneparsers << DescDetail: << 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. << << # End Info4