Created attachment 188959 [details] qt5-gtkplatform.patch This awesome little plugin allows Qt apps to use Gtk as the backend: https://github.com/CrimsonAS/gtkplatform
Created attachment 189496 [details] qt5-gtkplatform.patch 0.2.2 Updated to 0.2.2. Tested with Qt 5.9.
(In reply to Greg V from comment #1) > Created attachment 189496 [details] > qt5-gtkplatform.patch 0.2.2 > > Updated to 0.2.2. Tested with Qt 5.9. +CATEGORIES= x11-toolkits devel I think you can just use "x11-toolkits" here; I don't anything really related to devel/ here. +LIB_DEPENDS= libnotify.so:devel/libnotify \ Can you sort this list alphabetically? +USES= qmake Could you see if qmake:outsource also works? Not mixing source files and build files is generally a good idea.
Created attachment 189508 [details] qt5-gtkplatform.patch 0.2.2 v2 (In reply to Raphael Kubo da Costa from comment #2) > I don't anything really related to devel/ here. Yeah, sorry, I probably copy-pasted that :D > Can you sort this list alphabetically? > Could you see if qmake:outsource also works? Sure. Of course it works.
The LIB_DEPENDS list still needs to be sorted. I tried building the port here on Poudriere, and it failed in `make configure': ===> Configuring for qt5-gtkplatform-0.2.2 Info: creating stash file /wrkdirs/usr/ports/x11-toolkits/qt5-gtkplatform/work/.build/.qmake.stash Reading /wrkdirs/usr/ports/x11-toolkits/qt5-gtkplatform/work/gtkplatform-0.2.2/src/src.pro [/wrkdirs/usr/ports/x11-toolkits/qt5-gtkplatform/work/.build/src] Project ERROR: gdk-3.0 development package not found
Created attachment 189540 [details] qt5-gtkplatform.patch 0.2.2 v3 (In reply to Raphael Kubo da Costa from comment #4) I thought I sorted it, but looks like the last line wasn't included. > Project ERROR: gdk-3.0 development package not found That's weird. libdata/pkgconfig/gdk-3.0.pc is installed by x11-toolkits/gtk30… Let's try with USES=pkgconfig
Now it fails in `make build' :-) ===> Building for qt5-gtkplatform-0.2.2 --- sub-src-all --- cd src/ && ( test -e Makefile || /usr/local/lib/qt5/bin/qmake -o Makefile /wrkdirs/usr/ports/x11-toolkits/qt5-gtkplatform/work/gtkplatform-0.2.2/src/src.pro -spec /usr/local/lib/qt5/mkspecs/freebsd-clang QMAKE_CC=cc QMAKE_CXX=c++ QMAKE_LINK_C=cc QMAKE_LINK_C_SHLIB=cc QMAKE_LINK=c++ QMAKE_LINK_SHLIB=c++ 'QMAKE_CFLAGS=-O2 -pipe -march=ivybridge -fstack-protector -fno-strict-aliasing' 'QMAKE_CXXFLAGS=-O2 -pipe -march=ivybridge -fstack-protector -fno-strict-aliasing ' 'QMAKE_LFLAGS= -fstack-protector' QMAKE_LIBS= QMAKE_CFLAGS_DEBUG= QMAKE_CFLAGS_RELEASE= QMAKE_CXXFLAGS_DEBUG= QMAKE_CXXFLAGS_RELEASE= PREFIX=/usr/local CONFIG+=release 'CONFIG-=debug separate_debug_info' ) && /usr/bin/make -f Makefile all make[2]: make[2]: don't know how to make /usr/local/lib/qt5/bin/moc. Stop You're missing USE_QT5=buildtools_build
Created attachment 189544 [details] qt5-gtkplatform.patch 0.2.2 v4 oh. I wish DEVELOPER=1 detected that :D
A commit references this bug: Author: rakuco Date: Mon Jan 8 21:59:15 UTC 2018 New revision: 458486 URL: https://svnweb.freebsd.org/changeset/ports/458486 Log: New port: x11-toolkits/qt5-gtkplatform gtkplatform is a Qt Platform Abstraction plugin providing Qt applications with the capability to use GTK+ as a host toolkit. It lets Qt applications render with native GTK+ menus, and use GTK+ for input (mouse, keyboard, touch), and getting window content on screen, the same as it uses e.g. Cocoa on macOS. WWW: https://github.com/CrimsonAS/gtkplatform PR: 224453 Submitted by: Greg V <greg@unrelenting.technology> Changes: head/x11-toolkits/Makefile head/x11-toolkits/qt5-gtkplatform/ head/x11-toolkits/qt5-gtkplatform/Makefile head/x11-toolkits/qt5-gtkplatform/distinfo head/x11-toolkits/qt5-gtkplatform/pkg-descr head/x11-toolkits/qt5-gtkplatform/pkg-plist
Aaaand committed. Thanks!