Index: x11-wm/lxqt-panel/Makefile =================================================================== --- x11-wm/lxqt-panel/Makefile (nonexistent) +++ x11-wm/lxqt-panel/Makefile (working copy) @@ -0,0 +1,61 @@ +# Created by: Olivier Duchateau +# $FreeBSD$ + +PORTNAME= lxqt-panel +PORTVERSION= 0.13.0 +CATEGORIES= x11-wm +MASTER_SITES= LXQT + +MAINTAINER= jesper@schmitz.computer +COMMENT= Panel for the LXQt desktop + +LICENSE= LGPL21+ + +LIB_DEPENDS= libmenu-cache.so:x11/menu-cache \ + libdbusmenu-qt5.so:devel/libdbusmenu-qt@qt5 \ + libxkbcommon.so:x11/libxkbcommon \ + libxcb-util.so:x11/xcb-util \ + libsysstat-qt5.so:sysutils/libsysstat +RUN_DEPENDS= lxmenu-data>=0.1.2:x11/lxmenu-data + +USES= cmake:outsource compiler:c++11-lib gettext-runtime kde:5 \ + localbase:ldflags lxqt pkgconfig tar:xz +USE_QT5= buildtools_build qmake_build core dbus gui svg widgets \ + x11extras xml +USE_KDE= windowsystem +USE_LXQT= buildtools lxqt globalkeys qtxdg +USE_XORG= ice sm x11 xcb xcomposite xdamage xext xfixes xrender +USE_GNOME= glib20 + +OPTIONS_RADIO= SOUND +OPTIONS_RADIO_SOUND= ALSA PULSEAUDIO +OPTIONS_DEFINE= CPULOAD MOUNT +OPTIONS_DEFAULT= PULSEAUDIO +ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib +ALSA_CMAKE_ON= -DVOLUME_USE_PULSEAUDIO:BOOL=OFF +CPULOAD_LIB_DEPENDS= libstatgrab.so:devel/libstatgrab +CPULOAD_CMAKE_OFF= -DCPULOAD_PLUGIN:BOOL=OFF +CPULOAD_DESC= CPU stat plugin +PULSEAUDIO_CMAKE_ON= -DVOLUME_USE_ALSA:BOOL=OFF +PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio +MOUNT_USE= kde=solid +MOUNT_CMAKE_OFF= -DMOUNT_PLUGIN:BOOL=OFF +MOUNT_DESC= Mount removable devices support +OPTIONS_SUB= yes + +LDFLAGS+= -Xlinker --export-dynamic + +CMAKE_ARGS+= -DSENSORS_PLUGIN:BOOL=OFF \ + -DNETWORKMONITOR_PLUGIN:BOOL=OFF \ + -DWITH_SCREENSAVER_FALLBACK:BOOL=OFF + +.include + +.if ! ${PORT_OPTIONS:MALSA} && ! ${PORT_OPTIONS:MPULSEAUDIO} +CMAKE_ARGS+= -DVOLUME_PLUGIN:BOOL=OFF +PLIST_SUB+= SOUND="@comment " +.elif ${PORT_OPTIONS:MALSA} || ${PORT_OPTIONS:MPULSEAUDIO} +PLIST_SUB+= SOUND="" +.endif + +.include Property changes on: x11-wm/lxqt-panel/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: x11-wm/lxqt-panel/distinfo =================================================================== --- x11-wm/lxqt-panel/distinfo (nonexistent) +++ x11-wm/lxqt-panel/distinfo (working copy) @@ -0,0 +1,3 @@ +TIMESTAMP = 1527328541 +SHA256 (lxqt/lxqt-panel-0.13.0.tar.xz) = a139dc43d19adf6b7674e7ad518772aebf033aefcb1767b05085d983ff8b2ae3 +SIZE (lxqt/lxqt-panel-0.13.0.tar.xz) = 273924 Property changes on: x11-wm/lxqt-panel/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: x11-wm/lxqt-panel/files/patch-panel_resources_panel.conf =================================================================== --- x11-wm/lxqt-panel/files/patch-panel_resources_panel.conf (nonexistent) +++ x11-wm/lxqt-panel/files/patch-panel_resources_panel.conf (working copy) @@ -0,0 +1,11 @@ +--- panel/resources/panel.conf.orig 2018-05-26 09:42:02 UTC ++++ panel/resources/panel.conf +@@ -1,7 +1,7 @@ + panels=panel1 + + [panel1] +-plugins=mainmenu,desktopswitch,quicklaunch,taskbar,tray,statusnotifier,mount,volume,worldclock,showdesktop ++plugins=mainmenu,desktopswitch,quicklaunch,taskbar,tray,statusnotifier,volume,worldclock,showdesktop + position=Bottom + desktop=0 + Property changes on: x11-wm/lxqt-panel/files/patch-panel_resources_panel.conf ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: x11-wm/lxqt-panel/files/patch-plugin-sysstat_CMakeLists.txt =================================================================== --- x11-wm/lxqt-panel/files/patch-plugin-sysstat_CMakeLists.txt (nonexistent) +++ x11-wm/lxqt-panel/files/patch-plugin-sysstat_CMakeLists.txt (working copy) @@ -0,0 +1,14 @@ +--- plugin-sysstat/CMakeLists.txt.orig 2017-01-01 22:27:14 UTC ++++ plugin-sysstat/CMakeLists.txt +@@ -1,5 +1,11 @@ + set(PLUGIN "sysstat") + ++if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") ++ add_definitions("-DCMAKE_SYSTEM_NAME_FREEBSD=1") ++elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux") ++ add_definitions("-DCMAKE_SYSTEM_NAME_LINUX=1") ++endif() ++ + find_package(SysStat-Qt5 REQUIRED) + + set(HEADERS Property changes on: x11-wm/lxqt-panel/files/patch-plugin-sysstat_CMakeLists.txt ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: x11-wm/lxqt-panel/files/patch-plugin-sysstat_lxqtsysstat.cpp =================================================================== --- x11-wm/lxqt-panel/files/patch-plugin-sysstat_lxqtsysstat.cpp (nonexistent) +++ x11-wm/lxqt-panel/files/patch-plugin-sysstat_lxqtsysstat.cpp (working copy) @@ -0,0 +1,82 @@ +--- plugin-sysstat/lxqtsysstat.cpp.orig 2017-01-01 22:27:14 UTC ++++ plugin-sysstat/lxqtsysstat.cpp +@@ -320,6 +320,7 @@ void LXQtSysStatContent::updateSettings( + { + if (mDataType == "CPU") + { ++#if defined(Q_OS_LINUX) + if (mUseFrequency) + { + qobject_cast(mStat)->setMonitoring(SysStat::CpuStat::LoadAndFrequency); +@@ -330,6 +331,10 @@ void LXQtSysStatContent::updateSettings( + qobject_cast(mStat)->setMonitoring(SysStat::CpuStat::LoadOnly); + connect(qobject_cast(mStat), SIGNAL(update(float, float, float, float)), this, SLOT(cpuUpdate(float, float, float, float))); + } ++#elif defined(Q_OS_FREEBSD) ++ qobject_cast(mStat)->setMonitoring(SysStat::CpuStat::LoadOnly); ++ connect(qobject_cast(mStat), SIGNAL(update(float, float, float, float, float)), this, SLOT(cpuUpdate(float, float, float, float, float))); ++#endif + } + else if (mDataType == "Memory") + { +@@ -386,6 +391,7 @@ void LXQtSysStatContent::clearLine() + reinterpret_cast(mHistoryImage.scanLine(i))[mHistoryOffset] = bg; + } + ++#if defined(Q_OS_LINUX) + void LXQtSysStatContent::cpuUpdate(float user, float nice, float system, float other, float frequencyRate, uint) + { + int y_system = static_cast(system * 100.0 * frequencyRate); +@@ -478,6 +484,52 @@ void LXQtSysStatContent::cpuUpdate(float + + update(0, mTitleFontPixelHeight, width(), height() - mTitleFontPixelHeight); + } ++#elif defined(Q_OS_FREEBSD) ++void LXQtSysStatContent::cpuUpdate(float user, float nice, float system, float idle, float other) ++{ ++ int y_system = static_cast(round(system * 100.0)); ++ int y_user = static_cast(round(user * 100.0)); ++ int y_nice = static_cast(round(nice * 100.0)); ++ int y_idle = static_cast(round(idle * 100.0)); ++ int y_other = static_cast(round(other * 100.0)); ++ ++ toolTipInfo(tr("system: %1%
user: %2%
nice: %3%
other: %4%", "CPU tooltip information") ++ .arg(y_system).arg(y_user).arg(y_nice).arg(y_other)); ++ ++ ++ y_system = clamp(y_system, 0, 99); ++ y_user = clamp(y_user + y_system, 0, 99); ++ y_nice = clamp(y_nice+y_user, 0, 99); ++ y_other = clamp(y_other+y_nice, 0, 99); ++ ++ clearLine(); ++ QPainter painter(&mHistoryImage); ++ if (y_system != 0) ++ { ++ painter.setPen(mColours.cpuSystemColour); ++ painter.drawLine(mHistoryOffset, y_system, mHistoryOffset, 0); ++ } ++ if (y_user != y_system) ++ { ++ painter.setPen(mColours.cpuUserColour); ++ painter.drawLine(mHistoryOffset, y_user, mHistoryOffset, y_system); ++ } ++ if (y_nice != y_user) ++ { ++ painter.setPen(mColours.cpuNiceColour); ++ painter.drawLine(mHistoryOffset, y_nice, mHistoryOffset, y_user); ++ } ++ if (y_other != y_nice) ++ { ++ painter.setPen(mColours.cpuOtherColour); ++ painter.drawLine(mHistoryOffset, y_other, mHistoryOffset, y_nice); ++ } ++ ++ mHistoryOffset = (mHistoryOffset + 1) % width(); ++ ++ update(0, mTitleFontPixelHeight, width(), height() - mTitleFontPixelHeight); ++} ++#endif + + void LXQtSysStatContent::memoryUpdate(float apps, float buffers, float cached) + { Property changes on: x11-wm/lxqt-panel/files/patch-plugin-sysstat_lxqtsysstat.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: x11-wm/lxqt-panel/files/patch-plugin-sysstat_lxqtsysstat.h =================================================================== --- x11-wm/lxqt-panel/files/patch-plugin-sysstat_lxqtsysstat.h (nonexistent) +++ x11-wm/lxqt-panel/files/patch-plugin-sysstat_lxqtsysstat.h (working copy) @@ -0,0 +1,16 @@ +--- plugin-sysstat/lxqtsysstat.h.orig 2017-01-01 22:27:14 UTC ++++ plugin-sysstat/lxqtsysstat.h +@@ -137,8 +137,13 @@ protected: + void resizeEvent(QResizeEvent *); + + protected slots: ++/* moc only expands macros directly */ ++#ifdef CMAKE_SYSTEM_NAME_LINUX + void cpuUpdate(float user, float nice, float system, float other, float frequencyRate, uint frequency); + void cpuUpdate(float user, float nice, float system, float other); ++#elif CMAKE_SYSTEM_NAME_FREEBSD ++ void cpuUpdate(float user, float nice, float system, float idle, float other); ++#endif + void memoryUpdate(float apps, float buffers, float cached); + void swapUpdate(float used); + void networkUpdate(unsigned received, unsigned transmitted); Property changes on: x11-wm/lxqt-panel/files/patch-plugin-sysstat_lxqtsysstat.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: x11-wm/lxqt-panel/pkg-descr =================================================================== --- x11-wm/lxqt-panel/pkg-descr (nonexistent) +++ x11-wm/lxqt-panel/pkg-descr (working copy) @@ -0,0 +1,3 @@ +LXQt desktop panel and plugins. + +WWW: http://lxqt.org/ Property changes on: x11-wm/lxqt-panel/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: x11-wm/lxqt-panel/pkg-plist =================================================================== --- x11-wm/lxqt-panel/pkg-plist (nonexistent) +++ x11-wm/lxqt-panel/pkg-plist (working copy) @@ -0,0 +1,35 @@ +bin/lxqt-panel +etc/xdg/autostart/lxqt-panel.desktop +etc/xdg/menus/lxqt-applications.menu +%%LXQT_INCLUDEDIR%%/ilxqtpanel.h +%%LXQT_INCLUDEDIR%%/ilxqtpanelplugin.h +%%LXQT_INCLUDEDIR%%/lxqtpanelglobals.h +%%LXQT_INCLUDEDIR%%/pluginsettings.h +lib/lxqt-panel/libcolorpicker.so +%%CPULOAD%%lib/lxqt-panel/libcpuload.so +lib/lxqt-panel/libdirectorymenu.so +lib/lxqt-panel/libkbindicator.so +%%MOUNT%%lib/lxqt-panel/libmount.so +lib/lxqt-panel/libsysstat.so +%%SOUND%%lib/lxqt-panel/libvolume.so +man/man1/lxqt-panel.1.gz +share/desktop-directories/lxqt-leave.directory +share/desktop-directories/lxqt-settings.directory +%%LXQT_SHAREDIR%%/lxqt-panel/clock.desktop +%%LXQT_SHAREDIR%%/lxqt-panel/colorpicker.desktop +%%CPULOAD%%%%LXQT_SHAREDIR%%/lxqt-panel/cpuload.desktop +%%LXQT_SHAREDIR%%/lxqt-panel/desktopswitch.desktop +%%LXQT_SHAREDIR%%/lxqt-panel/directorymenu.desktop +%%LXQT_SHAREDIR%%/lxqt-panel/kbindicator.desktop +%%LXQT_SHAREDIR%%/lxqt-panel/mainmenu.desktop +%%MOUNT%%%%LXQT_SHAREDIR%%/lxqt-panel/mount.desktop +%%LXQT_SHAREDIR%%/lxqt-panel/quicklaunch.desktop +%%LXQT_SHAREDIR%%/lxqt-panel/showdesktop.desktop +%%LXQT_SHAREDIR%%/lxqt-panel/spacer.desktop +%%LXQT_SHAREDIR%%/lxqt-panel/statusnotifier.desktop +%%LXQT_SHAREDIR%%/lxqt-panel/sysstat.desktop +%%LXQT_SHAREDIR%%/lxqt-panel/taskbar.desktop +%%LXQT_SHAREDIR%%/lxqt-panel/tray.desktop +%%SOUND%%%%LXQT_SHAREDIR%%/lxqt-panel/volume.desktop +%%LXQT_SHAREDIR%%/lxqt-panel/worldclock.desktop +%%LXQT_SHAREDIR%%/panel.conf Property changes on: x11-wm/lxqt-panel/pkg-plist ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property