Bug 224453 - New port: x11-toolkits/qt5-gtkplatform, GTK backend for Qt
Summary: New port: x11-toolkits/qt5-gtkplatform, GTK backend for Qt
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Raphael Kubo da Costa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-19 13:41 UTC by Val Packett
Modified: 2018-01-08 22:00 UTC (History)
1 user (show)

See Also:


Attachments
qt5-gtkplatform.patch (2.26 KB, patch)
2017-12-19 13:41 UTC, Val Packett
no flags Details | Diff
qt5-gtkplatform.patch 0.2.2 (2.26 KB, patch)
2018-01-07 20:40 UTC, Val Packett
no flags Details | Diff
qt5-gtkplatform.patch 0.2.2 v2 (2.27 KB, patch)
2018-01-08 11:32 UTC, Val Packett
no flags Details | Diff
qt5-gtkplatform.patch 0.2.2 v3 (2.28 KB, patch)
2018-01-08 21:02 UTC, Val Packett
no flags Details | Diff
qt5-gtkplatform.patch 0.2.2 v4 (2.29 KB, patch)
2018-01-08 21:47 UTC, Val Packett
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Val Packett 2017-12-19 13:41:22 UTC
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
Comment 1 Val Packett 2018-01-07 20:40:44 UTC
Created attachment 189496 [details]
qt5-gtkplatform.patch 0.2.2

Updated to 0.2.2. Tested with Qt 5.9.
Comment 2 Raphael Kubo da Costa freebsd_committer freebsd_triage 2018-01-07 22:02:15 UTC
(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.
Comment 3 Val Packett 2018-01-08 11:32:16 UTC
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.
Comment 4 Raphael Kubo da Costa freebsd_committer freebsd_triage 2018-01-08 20:46:33 UTC
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
Comment 5 Val Packett 2018-01-08 21:02:13 UTC
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
Comment 6 Raphael Kubo da Costa freebsd_committer freebsd_triage 2018-01-08 21:33:41 UTC
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
Comment 7 Val Packett 2018-01-08 21:47:46 UTC
Created attachment 189544 [details]
qt5-gtkplatform.patch 0.2.2 v4

oh. I wish DEVELOPER=1 detected that :D
Comment 8 commit-hook freebsd_committer freebsd_triage 2018-01-08 21:59:58 UTC
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
Comment 9 Raphael Kubo da Costa freebsd_committer freebsd_triage 2018-01-08 22:00:34 UTC
Aaaand committed. Thanks!