pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
gromit-mpx: Import gromit-mpx-1.7.0 as wip/gromit-mpx
Module Name: pkgsrc-wip
Committed By: Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By: leot
Date: Sun May 4 18:49:07 2025 +0200
Changeset: 26a78f6f3f44bc9594530747026e47cf82d3c78d
Added Files:
gromit-mpx/DESCR
gromit-mpx/Makefile
gromit-mpx/PLIST
gromit-mpx/TODO
gromit-mpx/distinfo
gromit-mpx/patches/patch-CMakeLists.txt
gromit-mpx/patches/patch-src_coordlist__ops.c
gromit-mpx/patches/patch-src_main.c
gromit-mpx/patches/patch-src_main.h
Log Message:
gromit-mpx: Import gromit-mpx-1.7.0 as wip/gromit-mpx
Gromit-MPX is an on-screen annotation tool that works with any Unix
desktop environment under X11 as well as Wayland.
Its main use is for making presentations of some application.
Normally, you would have to move the mouse pointer around the point of
interest until hopefully everybody noticed it. With Gromit-MPX, you
can draw everywhere onto the screen, highlighting some button or area.
The name stands for (GRaphics Over MIscellaneous Things -
Multi-Pointer-EXtension). It is a multi-pointer port of the original
Gromit annotation tool by Simon Budig.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=26a78f6f3f44bc9594530747026e47cf82d3c78d
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
gromit-mpx/DESCR | 11 +++++++
gromit-mpx/Makefile | 20 ++++++++++++
gromit-mpx/PLIST | 20 ++++++++++++
gromit-mpx/TODO | 1 +
gromit-mpx/distinfo | 9 ++++++
gromit-mpx/patches/patch-CMakeLists.txt | 44 +++++++++++++++++++++++++++
gromit-mpx/patches/patch-src_coordlist__ops.c | 17 +++++++++++
gromit-mpx/patches/patch-src_main.c | 41 +++++++++++++++++++++++++
gromit-mpx/patches/patch-src_main.h | 28 +++++++++++++++++
9 files changed, 191 insertions(+)
diffs:
diff --git a/gromit-mpx/DESCR b/gromit-mpx/DESCR
new file mode 100644
index 0000000000..253040748a
--- /dev/null
+++ b/gromit-mpx/DESCR
@@ -0,0 +1,11 @@
+Gromit-MPX is an on-screen annotation tool that works with any Unix
+desktop environment under X11 as well as Wayland.
+
+Its main use is for making presentations of some application.
+Normally, you would have to move the mouse pointer around the point of
+interest until hopefully everybody noticed it. With Gromit-MPX, you
+can draw everywhere onto the screen, highlighting some button or area.
+
+The name stands for (GRaphics Over MIscellaneous Things -
+Multi-Pointer-EXtension). It is a multi-pointer port of the original
+Gromit annotation tool by Simon Budig.
diff --git a/gromit-mpx/Makefile b/gromit-mpx/Makefile
new file mode 100644
index 0000000000..66d5af0764
--- /dev/null
+++ b/gromit-mpx/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD$
+
+DISTNAME= gromit-mpx-1.7.0
+CATEGORIES= x11
+MASTER_SITES= ${MASTER_SITE_GITHUB:=bk138/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/bk138/gromit-mpx/
+COMMENT= X11 and Wayland on-screen annotation tool
+LICENSE= gnu-gpl-v2
+
+USE_TOOLS+= pkg-config
+
+USE_PKGLOCALEDIR= yes
+
+.include "../../archivers/lz4/buildlink3.mk"
+.include "../../devel/cmake/build.mk"
+.include "../../x11/libXi/buildlink3.mk"
+.include "../../x11/gtk3/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/gromit-mpx/PLIST b/gromit-mpx/PLIST
new file mode 100644
index 0000000000..d64984a214
--- /dev/null
+++ b/gromit-mpx/PLIST
@@ -0,0 +1,20 @@
+@comment $NetBSD$
+bin/gromit-mpx
+etc/gromit-mpx/gromit-mpx.cfg
+man/man1/gromit-mpx.1
+share/applications/net.christianbeier.Gromit-MPX.desktop
+share/doc/gromit-mpx/AUTHORS
+share/doc/gromit-mpx/ChangeLog
+share/doc/gromit-mpx/NEWS.md
+share/doc/gromit-mpx/README.md
+share/icons/hicolor/scalable/apps/net.christianbeier.Gromit-MPX.active.svg
+share/icons/hicolor/scalable/apps/net.christianbeier.Gromit-MPX.svg
+share/locale/de/LC_MESSAGES/gromit-mpx.mo
+share/locale/es/LC_MESSAGES/gromit-mpx.mo
+share/locale/fa/LC_MESSAGES/gromit-mpx.mo
+share/locale/he/LC_MESSAGES/gromit-mpx.mo
+share/locale/it/LC_MESSAGES/gromit-mpx.mo
+share/locale/pt_BR/LC_MESSAGES/gromit-mpx.mo
+share/metainfo/net.christianbeier.Gromit-MPX.appdata.xml
+share/pixmaps/net.christianbeier.Gromit-MPX.active.png
+share/pixmaps/net.christianbeier.Gromit-MPX.png
diff --git a/gromit-mpx/TODO b/gromit-mpx/TODO
new file mode 100644
index 0000000000..92c81369ce
--- /dev/null
+++ b/gromit-mpx/TODO
@@ -0,0 +1 @@
+- Properly handle configuration file
diff --git a/gromit-mpx/distinfo b/gromit-mpx/distinfo
new file mode 100644
index 0000000000..3e45ffc54d
--- /dev/null
+++ b/gromit-mpx/distinfo
@@ -0,0 +1,9 @@
+$NetBSD$
+
+BLAKE2s (gromit-mpx-1.7.0.tar.gz) = 828d7483e15bdec3af7ca907dfebf506a5043f7ecd558aed50d66b6b7c5e43b7
+SHA512 (gromit-mpx-1.7.0.tar.gz) = 26baee4ec035eb6cd20faea96c6f6790dce2b6aaaed9578a1e975fb0d4b3a9062f0463607ca2ca53add8193aa0c7a2e94b730604d071dcea48a085aa8fdc4797
+Size (gromit-mpx-1.7.0.tar.gz) = 2165825 bytes
+SHA1 (patch-CMakeLists.txt) = 7c3908e3d4b14369f623168b05feb67a1db7d048
+SHA1 (patch-src_coordlist__ops.c) = e3ff1e823b0ca8911d1707f6db12235a54ecc0d2
+SHA1 (patch-src_main.c) = d36a81c81606db81f79a959d47346221ffb1fd27
+SHA1 (patch-src_main.h) = 2335f833410caf5741266b16f64ca6509da02cae
diff --git a/gromit-mpx/patches/patch-CMakeLists.txt b/gromit-mpx/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000000..7ba58bed8c
--- /dev/null
+++ b/gromit-mpx/patches/patch-CMakeLists.txt
@@ -0,0 +1,44 @@
+$NetBSD$
+
+Disable appindicator3 support to avoid dbus dependency.
+
+From OpenBSD ports.
+
+--- CMakeLists.txt.orig 2024-09-09 18:39:05.000000000 +0000
++++ CMakeLists.txt
+@@ -24,11 +24,6 @@ find_package(Gettext)
+ pkg_check_modules(gtk3 REQUIRED "gtk+-3.0 >= 3.22")
+ pkg_check_modules(xinput REQUIRED "xi >= 1.3")
+ pkg_check_modules(x11 REQUIRED x11)
+-pkg_check_modules(appindicator3 "ayatana-appindicator3-0.1 >= 0.5")
+-if(NOT appindicator3_FOUND)
+- pkg_check_modules(appindicator3 REQUIRED "appindicator3-0.1 >= 0.4.92")
+- set(APPINDICATOR_IS_LEGACY 1)
+-endif()
+ pkg_check_modules(lz4 REQUIRED liblz4)
+
+ configure_file(build-config.h_cmake_in build-config.h)
+@@ -36,7 +31,6 @@ configure_file(build-config.h_cmake_in b
+ include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${gtk3_INCLUDE_DIRS}
+- ${appindicator3_INCLUDE_DIRS}
+ ${xinput_INCLUDE_DIRS}
+ ${x11_INCLUDE_DIRS}
+ ${lz4_INCLUDE_DIRS}
+@@ -44,7 +38,6 @@ include_directories(
+
+ link_directories(
+ ${gtk3_LIBRARY_DIRS}
+- ${appindicator3_LIBRARY_DIRS}
+ ${xinput_LIBRARY_DIRS}
+ ${x11_LIBRARY_DIRS}
+ ${lz4_LIBRARY_DIRS}
+@@ -71,7 +64,6 @@ add_executable(${target_name} ${sources}
+
+ target_link_libraries(${target_name}
+ ${gtk3_LIBRARIES}
+- ${appindicator3_LIBRARIES}
+ ${xinput_LIBRARIES}
+ ${x11_LIBRARIES}
+ ${lz4_LIBRARIES}
diff --git a/gromit-mpx/patches/patch-src_coordlist__ops.c b/gromit-mpx/patches/patch-src_coordlist__ops.c
new file mode 100644
index 0000000000..d815e48a02
--- /dev/null
+++ b/gromit-mpx/patches/patch-src_coordlist__ops.c
@@ -0,0 +1,17 @@
+$NetBSD$
+
+Threat the 2nd argument as a single one instead of 6.
+
+Fix the build with NetBSD memcpy(3).
+
+--- src/coordlist_ops.c.orig 2025-05-04 16:37:58.021770918 +0000
++++ src/coordlist_ops.c
+@@ -270,7 +270,7 @@ static gfloat angle_deg_snap(gfloat angl
+ // -------------------- 2D affine transformations --------------------
+
+ static void unity2D(trans2D *m) {
+- memcpy(m->m, (gfloat[6]){1.0, 0.0, 0.0, 0.0, 1.0, 0.0}, sizeof(gfloat[6]));
++ memcpy(m->m, ((gfloat[6]){1.0, 0.0, 0.0, 0.0, 1.0, 0.0}), sizeof(gfloat[6]));
+ }
+
+ static void rotate2D(gfloat angle, trans2D *m) {
diff --git a/gromit-mpx/patches/patch-src_main.c b/gromit-mpx/patches/patch-src_main.c
new file mode 100644
index 0000000000..9dcf2b266d
--- /dev/null
+++ b/gromit-mpx/patches/patch-src_main.c
@@ -0,0 +1,41 @@
+$NetBSD$
+
+Disable appindicator3 support to avoid dbus dependency.
+
+From OpenBSD ports.
+
+--- src/main.c.orig 2024-09-09 18:39:05.000000000 +0000
++++ src/main.c
+@@ -864,15 +864,6 @@ void setup_main_app (GromitData *data, i
+ if (activate)
+ acquire_grab (data, NULL); /* grab all */
+
+- /*
+- TRAY ICON
+- */
+- data->trayicon = app_indicator_new (PACKAGE_NAME,
+- "net.christianbeier.Gromit-MPX",
+- APP_INDICATOR_CATEGORY_APPLICATION_STATUS);
+-
+- app_indicator_set_status (data->trayicon, APP_INDICATOR_STATUS_ACTIVE);
+-
+
+
+ /* create the menu */
+@@ -1019,7 +1010,6 @@ void setup_main_app (GromitData *data, i
+ gtk_widget_show (quit_item);
+
+
+- app_indicator_set_menu (data->trayicon, GTK_MENU(menu));
+
+ /*
+ Build the support menu
+@@ -1267,8 +1257,4 @@ int main (int argc, char **argv)
+
+ void indicate_active(GromitData *data, gboolean YESNO)
+ {
+- if(YESNO)
+- app_indicator_set_icon(data->trayicon, "net.christianbeier.Gromit-MPX.active");
+- else
+- app_indicator_set_icon(data->trayicon, "net.christianbeier.Gromit-MPX");
+ }
diff --git a/gromit-mpx/patches/patch-src_main.h b/gromit-mpx/patches/patch-src_main.h
new file mode 100644
index 0000000000..e69a8f91b2
--- /dev/null
+++ b/gromit-mpx/patches/patch-src_main.h
@@ -0,0 +1,28 @@
+$NetBSD$
+
+Disable appindicator3 support to avoid dbus dependency.
+
+From OpenBSD ports.
+
+--- src/main.h.orig 2024-09-09 18:39:05.000000000 +0000
++++ src/main.h
+@@ -29,11 +29,6 @@
+ #include <glib/gi18n.h>
+ #include <gdk/gdk.h>
+ #include <gtk/gtk.h>
+-#ifdef APPINDICATOR_IS_LEGACY
+-#include <libappindicator/app-indicator.h>
+-#else
+-#include <libayatana-appindicator/app-indicator.h>
+-#endif
+
+ #define GROMIT_MOUSE_EVENTS ( GDK_BUTTON_MOTION_MASK | \
+ GDK_BUTTON_PRESS_MASK | \
+@@ -116,7 +111,6 @@ typedef struct
+ typedef struct
+ {
+ GtkWidget *win;
+- AppIndicator *trayicon;
+
+ GdkCursor *paint_cursor;
+ GdkCursor *erase_cursor;
Home |
Main Index |
Thread Index |
Old Index