diff --git a/x11-toolkits/Makefile b/x11-toolkits/Makefile index 063dabebd864..bac8f1e3f76d 100644 --- a/x11-toolkits/Makefile +++ b/x11-toolkits/Makefile @@ -49,6 +49,7 @@ SUBDIR += gtksourceview5 SUBDIR += gtksourceviewmm3 SUBDIR += guile-gnome-platform + SUBDIR += hyprland-qt-support SUBDIR += imgui SUBDIR += irrlicht SUBDIR += itk diff --git a/x11-toolkits/hyprland-qt-support/Makefile b/x11-toolkits/hyprland-qt-support/Makefile new file mode 100644 index 000000000000..cb0e6f7f21fe --- /dev/null +++ b/x11-toolkits/hyprland-qt-support/Makefile @@ -0,0 +1,27 @@ +PORTNAME= hyprland-qt-support +DISTVERSIONPREFIX= v +DISTVERSION= 0.1.0 +CATEGORIES= x11-toolkits + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= QML style provider for hypr* Qt apps +WWW= https://github.com/hyprwm/hyprland-qt-support + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libhyprlang.so:devel/hyprlang + +USES= cmake compiler:c++11-lib localbase:ldflags pkgconfig qt:6 +USE_GITHUB= yes +USE_QT= base declarative +GH_ACCOUNT= hyprwm +LDFLAGS+= -Wl,--as-needed # Qt deps +CMAKE_ARGS= -DINSTALL_QML_PREFIX:PATH="${QT_QMLDIR_REL}" + +post-patch: +# Respect PREFIX for system-wide config + @${REINPLACE_CMD} 's,/etc,${PREFIX}&,' \ + ${WRKSRC}/src/style/impl/hyprlandstyle.cpp + +.include diff --git a/x11-toolkits/hyprland-qt-support/distinfo b/x11-toolkits/hyprland-qt-support/distinfo new file mode 100644 index 000000000000..0c3a6fbe4aea --- /dev/null +++ b/x11-toolkits/hyprland-qt-support/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1736373635 +SHA256 (hyprwm-hyprland-qt-support-v0.1.0_GH0.tar.gz) = cac1f980bd088b890097f3f999cfdf03e73ee94c53f3c92d0b3bc23baa9e7b2c +SIZE (hyprwm-hyprland-qt-support-v0.1.0_GH0.tar.gz) = 12955 diff --git a/x11-toolkits/hyprland-qt-support/pkg-descr b/x11-toolkits/hyprland-qt-support/pkg-descr new file mode 100644 index 000000000000..53dbed1bda1e --- /dev/null +++ b/x11-toolkits/hyprland-qt-support/pkg-descr @@ -0,0 +1 @@ +hyprland-qt-support provides a QML style for hypr* Qt apps. diff --git a/x11-toolkits/hyprland-qt-support/pkg-plist b/x11-toolkits/hyprland-qt-support/pkg-plist new file mode 100644 index 000000000000..a0d653027cf6 --- /dev/null +++ b/x11-toolkits/hyprland-qt-support/pkg-plist @@ -0,0 +1,13 @@ +lib/libhyprland-quick-style-impl.so +lib/libhyprland-quick-style.so +%%QT_QMLDIR%%/org/hyprland/style/Button.qml +%%QT_QMLDIR%%/org/hyprland/style/CheckBox.qml +%%QT_QMLDIR%%/org/hyprland/style/TextField.qml +%%QT_QMLDIR%%/org/hyprland/style/hyprland-quick-style.qmltypes +%%QT_QMLDIR%%/org/hyprland/style/impl/HyprlandStyle.qml +%%QT_QMLDIR%%/org/hyprland/style/impl/MotionBehavior.qml +%%QT_QMLDIR%%/org/hyprland/style/impl/hyprland-quick-style-impl.qmltypes +%%QT_QMLDIR%%/org/hyprland/style/impl/libhyprland-quick-style-implplugin.so +%%QT_QMLDIR%%/org/hyprland/style/impl/qmldir +%%QT_QMLDIR%%/org/hyprland/style/libhyprland-quick-styleplugin.so +%%QT_QMLDIR%%/org/hyprland/style/qmldir