git: c1abbcb92827 - main - sysutils/wmtop: Update 0.84 => 0.85

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Wed, 21 Jan 2026 19:59:52 UTC
The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c1abbcb92827c0965f0c71d8707ed22e4020db85

commit c1abbcb92827c0965f0c71d8707ed22e4020db85
Author:     Jishan Alam <jishanalam9128@gmail.com>
AuthorDate: 2026-01-21 19:57:49 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-01-21 19:57:49 +0000

    sysutils/wmtop: Update 0.84 => 0.85
    
    Changelog:
    https://repo.or.cz/dockapps.git/blob/refs/tags/wmtop-0.85:/wmtop/ChangeLog
    
    Upstream moved to https://www.dockapps.net/wmtop.
    
    PR:             292626
    Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org>
---
 sysutils/wmtop/Makefile             | 21 ++++++++++++---------
 sysutils/wmtop/distinfo             |  5 +++--
 sysutils/wmtop/files/patch-Makefile | 21 ---------------------
 sysutils/wmtop/files/patch-wmtop.c  | 32 ++++++++++++++++----------------
 4 files changed, 31 insertions(+), 48 deletions(-)

diff --git a/sysutils/wmtop/Makefile b/sysutils/wmtop/Makefile
index 6a1d191042d1..119f1536b3d4 100644
--- a/sysutils/wmtop/Makefile
+++ b/sysutils/wmtop/Makefile
@@ -1,30 +1,33 @@
 PORTNAME=	wmtop
-PORTVERSION=	0.84
-PORTREVISION=	4
+DISTVERSION=	0.85
 CATEGORIES=	sysutils windowmaker
 MASTER_SITES=	https://www.dockapps.net/download/
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Dockapp to display top three CPU consuming processes
-WWW=		https://wmtop.sourceforge.net/
+WWW=		https://www.dockapps.net/wmtop
 
 LICENSE=	GPLv2
 
-USES=		gmake xorg		# gmake is needed for -jX builds
-USE_XORG=	xpm x11
+LIB_DEPENDS=	libdockapp.so:x11-wm/libdockapp
+
+USES=		autoreconf pkgconfig xorg
 USE_CSTD=	gnu89
-ALL_TARGET=	freebsd
-CFLAGS+=	-fcommon  # clang11/gcc10
+USE_XORG=	x11 xext xpm
+
+GNU_CONFIGURE=	yes
+
+WRKSRC=		${WRKDIR}/dockapps-be3f170
 
-PORTDOCS=	BUGS CHANGES README TODO
 PLIST_FILES=	bin/wmtop \
 		share/man/man1/wmtop.1.gz
+PORTDOCS=	BUGS ChangeLog README TODO
 
 OPTIONS_DEFINE=	DOCS
 
 post-patch:
 	@${REINPLACE_CMD} -e 's/^\(LIBS.*\)/\1 -lkvm/ ; \
-		s/^\(FLAGS.*\)/\1 -DNO_PROCFS/' ${WRKSRC}/Makefile
+		s/^\(AM_CFLAGS.*\)/\1 -DNO_PROCFS/' ${WRKSRC}/Makefile.am
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/wmtop ${STAGEDIR}${PREFIX}/bin
diff --git a/sysutils/wmtop/distinfo b/sysutils/wmtop/distinfo
index e0d488a453d7..b336060aa550 100644
--- a/sysutils/wmtop/distinfo
+++ b/sysutils/wmtop/distinfo
@@ -1,2 +1,3 @@
-SHA256 (wmtop-0.84.tar.gz) = bca0651049c6bc897936d5523438e3eb14efa470abc6d08d3577332badc0f99a
-SIZE (wmtop-0.84.tar.gz) = 26492
+TIMESTAMP = 1767896824
+SHA256 (wmtop-0.85.tar.gz) = a1b7640aac041db98afc4ef65ee288319c06b1104071b14c461dd57500438d02
+SIZE (wmtop-0.85.tar.gz) = 21165
diff --git a/sysutils/wmtop/files/patch-Makefile b/sysutils/wmtop/files/patch-Makefile
deleted file mode 100644
index cd70faf7f654..000000000000
--- a/sysutils/wmtop/files/patch-Makefile
+++ /dev/null
@@ -1,21 +0,0 @@
---- Makefile.orig	Sat Apr 29 17:49:07 2000
-+++ Makefile	Sun May  7 17:04:17 2000
-@@ -1,12 +1,12 @@
- DEBUG  = -DPARANOID
--LIBDIR = -L/usr/X11R6/lib
-+LIBDIR = -L$(PREFIX)/lib
- LIBS   = -lXpm -lXext -lX11
--INCS   = -I/usr/X11R6/share/include -I/usr/X11R6/include
-+INCS   = -I$(PREFIX)/include
- OBJS   = wmtop.o wmgeneral/wmgeneral.o wmgeneral/misc.o wmgeneral/list.o
--OPTS   = -O3 -g -Wall
--FLAGS  = $(DEBUG) $(OPTS) -D$(OS)
--MAKE   = make
--CC     = cc
-+OPTS   = -g -Wall
-+FLAGS  = $(DEBUG) $(OPTS) -D$(OS) $(CFLAGS)
-+MAKE  ?= make
-+CC    ?= cc
- PREFIX ?= /usr/local
- 
- default:
diff --git a/sysutils/wmtop/files/patch-wmtop.c b/sysutils/wmtop/files/patch-wmtop.c
index 7ce361ad4045..d3ba0d9ff1ab 100644
--- a/sysutils/wmtop/files/patch-wmtop.c
+++ b/sysutils/wmtop/files/patch-wmtop.c
@@ -1,6 +1,6 @@
---- wmtop.c.orig	Wed Mar  7 05:30:56 2001
-+++ wmtop.c	Fri Feb 25 22:34:36 2005
-@@ -70,6 +70,13 @@
+--- wmtop.c.orig	2016-02-09 01:13:19 UTC
++++ wmtop.c
+@@ -72,6 +72,13 @@
  #include "xpm/wmtop-neon2.xpm"
  #include "xpm/wmtop-rainbow.xpm"
  
@@ -14,8 +14,8 @@
  /******************************************/
  /* Defines                                */
  /******************************************/
-@@ -191,6 +198,9 @@
-     int rss;
+@@ -191,6 +198,9 @@ struct process {
+     long rss;
      int time_stamp;
      int counted;
 +#ifdef NO_PROCFS
@@ -24,7 +24,7 @@
  };
  
  /******************************************/
-@@ -455,17 +465,19 @@
+@@ -455,17 +465,19 @@ int process_parse_procfs(struct process *process) {
   * Anyone hoping to port wmtop should look here first.
   */
  int process_parse_procfs(struct process *process) {
@@ -32,10 +32,10 @@
      char line[WMTOP_BUFLENGTH],filename[WMTOP_BUFLENGTH],procname[WMTOP_BUFLENGTH];
      int ps;
      struct stat sbuf;
--    int user_time,kernel_time;
+-    unsigned long user_time,kernel_time;
      int rc;
 +#endif
-+    int user_time,kernel_time;
++    unsigned long user_time,kernel_time;
  #if defined(LINUX)
      char *r,*q;
      char deparenthesised_name[WMTOP_BUFLENGTH];
@@ -43,10 +43,10 @@
  #endif /* defined(LINUX) */
 -#if defined(FREEBSD)
 +#if defined(FREEBSD) && !defined(NO_PROCFS)
+     /* TODO: needs analysis. Probably needs same data type fix as LINUX (use
+      * long types). Need to check FreeBSD docs and test.  -wbk		     */
      int us,um,ks,km;
- #endif /* defined(FREEBSD) */
- 
-@@ -473,6 +485,15 @@
+@@ -475,6 +487,15 @@ int process_parse_procfs(struct process *process) {
      assert(process->id==0x0badfeed);
  #endif /* defined(PARANOID) */
  
@@ -62,15 +62,15 @@
      sprintf(filename,PROCFS_TEMPLATE,process->pid);
  
      /*
-@@ -582,6 +603,7 @@
+@@ -588,6 +609,7 @@ int process_parse_procfs(struct process *process) {
      process->user_time = us*1000+um/1000;
      process->kernel_time = ks*1000+km/1000;
  #endif /* defined(FREEBSD) */
 +#endif /* defined(NO_PROCFS) */
  
-     process->rss *= getpagesize();
- 
-@@ -607,6 +629,39 @@
+     /* not portable (especially unsuitable for redistributable executables.
+      * On some systems, getpagesize() is a preprocessor macro).
+@@ -616,6 +638,39 @@ int update_process_table() {
  /******************************************/
  
  int update_process_table() {
@@ -110,7 +110,7 @@
      DIR *dir;
      struct dirent *entry;
  
-@@ -640,6 +695,7 @@
+@@ -649,6 +704,7 @@ int update_process_table() {
      closedir(dir);
  
      return 0;