Index: x11-wm/Makefile =================================================================== --- x11-wm/Makefile +++ x11-wm/Makefile @@ -85,6 +85,7 @@ SUBDIR += nickleby SUBDIR += obapps SUBDIR += obconf + SUBDIR += obconf-qt SUBDIR += obkey SUBDIR += obmenu SUBDIR += obpager Index: x11-wm/obconf-qt/Makefile =================================================================== --- /dev/null +++ x11-wm/obconf-qt/Makefile @@ -0,0 +1,34 @@ +# Created by: Olivier Duchateau +# $FreeBSD$ + +PORTNAME= obconf-qt +PORTVERSION= 0.13.0 +CATEGORIES= x11-wm +MASTER_SITES= LXQT/${PORTNAME} + +MAINTAINER= jsm@FreeBSD.org +COMMENT= Qt port of preferences manager for Openbox + +LICENSE= GPLv2 + +LIB_DEPENDS= libobt.so:x11-wm/openbox \ + libfontconfig.so:x11-fonts/fontconfig \ + libfreetype.so:print/freetype2 \ + libImlib2.so:graphics/imlib2 + +USES= cmake:outsource compiler:c++11-lang gettext-runtime localbase qt:5 \ + gnome lxqt pkgconfig tar:xz + +USE_QT= buildtools_build qmake_build core gui linguisttools \ + widgets x11extras + +USE_LXQT= buildtools + +USE_GNOME= glib20 pango librsvg2 gdkpixbuf2 libxml2 cairo + +USE_XORG= ice sm x11 xft + +PLIST_FILES= bin/obconf-qt \ + share/applications/obconf-qt.desktop \ + share/icons/hicolor/48x48/apps/obconf-qt.png +.include Index: x11-wm/obconf-qt/distinfo =================================================================== --- /dev/null +++ x11-wm/obconf-qt/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1527328597 +SHA256 (lxqt/obconf-qt-0.13.0.tar.xz) = cec24a319ad87c6c04459c66ad9d14f0ce9d6b0cad6eb5584376b72a6eb07fb9 +SIZE (lxqt/obconf-qt-0.13.0.tar.xz) = 34348 Index: x11-wm/obconf-qt/files/patch-src_CMakeLists.txt =================================================================== --- /dev/null +++ x11-wm/obconf-qt/files/patch-src_CMakeLists.txt @@ -0,0 +1,11 @@ +--- src/CMakeLists.txt.orig 2018-05-21 17:40:12 UTC ++++ src/CMakeLists.txt +@@ -108,7 +108,7 @@ endif() + + target_link_libraries(obconf-qt + ${QTX_LIBRARIES} +- ${GLIB_LIBRARIES} ++ ${GLIB_LDFLAGS} + ${OPENBOX_LIBRARIES} + ) + Index: x11-wm/obconf-qt/files/patch-src_archive.cpp =================================================================== --- /dev/null +++ x11-wm/obconf-qt/files/patch-src_archive.cpp @@ -0,0 +1,35 @@ +--- src/archive.cpp.orig 2015-02-25 14:12:33 UTC ++++ src/archive.cpp +@@ -1,4 +1,5 @@ + #include ++#include + + #include + #include +@@ -161,6 +162,7 @@ static gchar* install_theme_to(const gch + GError *e = NULL; + gchar *name = NULL; + ++#if defined(Q_OS_LINUX) + argv = g_new(gchar*, 11); + argv[0] = g_strdup("tar"); + argv[1] = g_strdup("-x"); +@@ -173,6 +175,18 @@ static gchar* install_theme_to(const gch + argv[8] = g_strdup(to); + argv[9] = g_strdup("*/openbox-3/"); + argv[10] = NULL; ++#else ++ argv = g_new(gchar*, 9); ++ argv[0] = g_strdup("tar"); ++ argv[1] = g_strdup("-x"); ++ argv[2] = g_strdup("-v"); ++ argv[3] = g_strdup("-z"); ++ argv[4] = g_strdup("-f"); ++ argv[5] = g_strdup(file); ++ argv[6] = g_strdup("-C"); ++ argv[7] = g_strdup(to); ++ argv[8] = NULL; ++#endif + if (!g_spawn_sync(NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, + &outtxt, &errtxt, &exitcode, &e)) + QMessageBox::critical(NULL, QString(), QObject::tr("Unable to run the \"tar\" command: %1") Index: x11-wm/obconf-qt/files/patch-src_theme.cpp =================================================================== --- /dev/null +++ x11-wm/obconf-qt/files/patch-src_theme.cpp @@ -0,0 +1,18 @@ +--- src/theme.cpp.orig 2018-09-20 14:07:09 UTC ++++ src/theme.cpp +@@ -156,10 +156,11 @@ void MainDialog::on_install_theme_clicke + } + + void MainDialog::on_theme_archive_clicked() { +- QString filename = QFileDialog::getSaveFileName(this, +- tr("Choose an Openbox theme"), +- QString(), +- "Openbox theme archives (*.obt);;"); ++ QFileDialog* dialog = new QFileDialog(); ++ dialog->setFileMode(QFileDialog::Directory); ++ QString filename=""; ++ if(dialog->exec()) ++ filename= dialog->selectedFiles()[0]; + if(!filename.isEmpty()) { + archive_create(filename.toLocal8Bit().constData()); + } Index: x11-wm/obconf-qt/pkg-descr =================================================================== --- /dev/null +++ x11-wm/obconf-qt/pkg-descr @@ -0,0 +1,5 @@ +ObConf-Qt is a Qt port of ObConf, a configuration editor for OpenBox. +It allows you to edit and choose theme, and to edit window manager preferences +such as mouse focus behaviour, font-settings and number of virtual desktops. + +WWW: https://github.com/lxqt/obconf-qt