head	1.11;
access;
symbols
	pkgsrc-2026Q3:1.9.0.4
	pkgsrc-2026Q3-base:1.9
	pkgsrc-2026Q2:1.9.0.2
	pkgsrc-2026Q2-base:1.9
	pkgsrc-2026Q1:1.8.0.2
	pkgsrc-2026Q1-base:1.8
	pkgsrc-2025Q4:1.7.0.2
	pkgsrc-2025Q4-base:1.7
	pkgsrc-2025Q3:1.4.0.2
	pkgsrc-2025Q3-base:1.4
	pkgsrc-2025Q2:1.3.0.2
	pkgsrc-2025Q2-base:1.3
	pkgsrc-2025Q1:1.2.0.2
	pkgsrc-2025Q1-base:1.2
	pkgsrc-2024Q4:1.1.0.2
	pkgsrc-2024Q4-base:1.1;
locks; strict;
comment	@# @;


1.11
date	2026.10.27.13.55.03;	author adam;	state Exp;
branches;
next	1.10;
commitid	zeP6xCPmsTIux71H;

1.10
date	2026.09.24.09.43.26;	author wiz;	state Exp;
branches;
next	1.9;
commitid	edzqh90YymB8dRWG;

1.9
date	2026.05.01.17.49.02;	author fox;	state Exp;
branches;
next	1.8;
commitid	wJszbsLhixEsA8EG;

1.8
date	2025.12.28.02.25.17;	author fox;	state Exp;
branches;
next	1.7;
commitid	nJ9wqNwL4iXWs7oG;

1.7
date	2025.10.15.23.22.28;	author wiz;	state Exp;
branches;
next	1.6;
commitid	X6Cm6jNMj09INIeG;

1.6
date	2025.10.11.09.29.30;	author wiz;	state Exp;
branches;
next	1.5;
commitid	z1teinGleRuQj8eG;

1.5
date	2025.09.21.17.58.05;	author wiz;	state Exp;
branches;
next	1.4;
commitid	o8R6K3m0uBDiMBbG;

1.4
date	2025.07.06.09.08.59;	author wiz;	state Exp;
branches;
next	1.3;
commitid	IVLl1l0S1dDgkF1G;

1.3
date	2025.05.11.10.18.07;	author wiz;	state Exp;
branches;
next	1.2;
commitid	rodA9zyFICQuvtUF;

1.2
date	2025.03.11.12.28.49;	author nia;	state Exp;
branches;
next	1.1;
commitid	MupLIC0VWxH0cEMF;

1.1
date	2024.10.06.10.43.17;	author fox;	state Exp;
branches;
next	;
commitid	SFJv5MinIbmtCAsF;


desc
@@


1.11
log
@btop: updated to 1.4.8

1.4.8

themes: load/save by name if possible
Fix atomic issues and data races in btop
fix: gate Apple Silicon GPU support to unbreak intel Mac builds
AMD APU/iGPU sysfs backend for GPU monitoring
fix: use ISO 8601 format for log timestamps
Fix possible thread deadlocks and power-event-based false stall detections
fix: defer SIGWINCH resize handling
Fix btop with amd gpu on rocm 7 as in Ubuntu 26.04
Fix: Macos SIGABRT Crash during SMB TimeMachine Backups
fix: avoid macOS swap disk crash
Fix -/+ key binding
fix: ignore missing config dir if config file is present
fix: make background consistent in the Terminal is too small dialogue
@
text
@# $NetBSD: Makefile,v 1.10 2026/09/24 09:43:26 wiz Exp $

DISTNAME=	btop-1.4.8
CATEGORIES=	sysutils
MASTER_SITES=	${MASTER_SITE_GITHUB:=aristocratos/}
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://github.com/aristocratos/btop
COMMENT=	Colorful TTY resource monitor
LICENSE=	apache-2.0

# gcc 10 support was removed from the code base.
# https://github.com/aristocratos/btop/pull/1106
GCC_REQD+=	14

TOOL_DEPENDS+=	lowdown>=0:../../textproc/lowdown

USE_LANGUAGES=	c c++
USE_TOOLS+=	gmake

USE_CXX_FEATURES+=	c++20

INSTALLATION_DIRS=	${PKGMANDIR}/man1

CXXFLAGS+=	-DNDEBUG
MAKE_ENV+=	STRIP=true VERBOSE=true

SUBST_CLASSES+=		themes
SUBST_SED.themes+=	-e 's,/usr/local/share/btop/themes,${PREFIX}/share/btop/themes,'
SUBST_SED.themes+=	-e 's,/usr/.local/.share/btop/themes,${PREFIX}/share/btop/themes,'
SUBST_FILES.themes+=	src/btop_menu.cpp
SUBST_FILES.themes+=	src/btop.cpp
SUBST_STAGE.themes=	pre-configure
SUBST_MESSAGE.themes=	Fixing hardcoded paths to themes.

post-extract:
	# Fix permission issues.
	${CHMOD} -R go-w ${WRKSRC}

.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../mk/atomic64.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.10
log
@btop: add patch from upstream merge request that improves disk display

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2026/05/01 17:49:02 fox Exp $
d3 1
a3 2
DISTNAME=	btop-1.4.7
PKGREVISION=	1
d17 1
a17 1
TOOL_DEPENDS+=	lowdown-[0-9]*:../../textproc/lowdown
@


1.9
log
@sysutils/btop: Update to 1.4.7

Changes since 1.4.6:

Changelog v1.4.7
  * Feat: Process following and following mode improvements.
  * feat: Add Apple Silicon GPU support via IOReport API.
  * feat: add Kanagawa Dragon theme.
  * Add twilight theme.
  * Add Swap upload/download speed graph option, Fix network graphs
    overlap.
  * Add Flexoki dark and light themes.
  * Menu option to disable presets.
  * Create orange.theme.
  * Add E hotkey to collapse/expand all processes in tree mode.
  * fix: restore Apple Silicon temp reporting on M2 Pro.
  * fix regression from a switch to kIOMainPortDefault.
  * Fix hide and info buttons.
  * Fix mouse mapping for process kill buttons with vim keys enabled.
  * Fix kill buttons.
  * following mode fixes.
  * Fixes and Improvements for Pause and Follow modes.
  * fix: remove unused asprintf implementation function.
  * fix: remove busy waiting when checking runner thread state.
  * Update clock with preset change or show/hide box.
  * Tweaked RX/TX collection and drawing, Fix -Wparentheses warning.
  * fix: mem bottom border when net is not shown.
  * fix: force_tty menu option sets TTY mode on start.
  * fix: accumulate pwr_usage into pwr_total instead of mem_total in
    Gpu::collect().
  * fix: read GPU/VRAM clocks when ROCm SMI reports version 1.x.
  * fix: render a non-ascii chars in proc list.
  * fix CPU mib queries for OpenBSD, only display online CPUs in output.
  * fix: correctly map amd zen cpu core temps.
  * fix: restore Intel Mac CPU temperature fallback.
  * fix: Use SVG features compatible with Qt SVG Tiny 1.1.
  * Update widechar detection and fix replace_ascii_control() removing
    wide characters.
  * Fix cpu watt overflow in cpu box + division by zero fix for
    cpu.temp_max.
  * Fixed missing CPU package temperature color (numeric value).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2025/12/28 02:25:17 fox Exp $
d4 1
@


1.8
log
@sysutils/btop: Update to 1.4.6

- Remove the upstreamed patches.
- Update required GCC to 14.
- Fix permissions for the files.

Changes since 1.4.5:

## v1.4.6

References | Description | Author(s)
--- | --- | ---
#1272 | Skip 'H' and 'HX' suffix in AMD cpu name trimming | @@ramdomPTM
#1268 | feature: add process renice functionality | @@goddamnparticle
#1285 | Revert "Use /sys/dev/block/MAJOR:MINOR instead of /sys/block/NAME for disk I/O" #1270 | @@deckstose
#1277 | feat: Introduce cpu frequency display modes | @@emiliopedrollo
#1282 | Fix CPU frequency detection for LoongArch CPUs | @@Twopic2
#1275 | fix arrow keys that send 'O' instead of '[' | @@vandabbin
#1251 | OpenBSD: battery: add support for watthour and watts sensors | @@shtrophic
#1208 | Add Gotham theme | @@jrebs
#1291 | Fix macOS deadlocks and race conditions in collector threads #1292 | @@kuzmeech
#1296 | fix: btop crash on arm cpu | @@emiliopedrollo @@zenofile
#984 | Added ability to set which gpu vendors to enable | @@thedustinmiller
#1274 | added tree toggle of expand/collapse for children of process | @@irabrine
#1300 | Use right key codes to match f1 and f2 keys | @@vandabbin
#1305 | Handle missing SMC gracefully on macOS | @@achille
#1309 | Fix redraw in proc list when changing sort order | @@vandabbin
#1304 | Fix load average and GPU watts leaking past box border | @@vandabbin
#1220 | feat: respect effective cpus from cgroup | @@deckstose
#1218 | feat: display container engine | @@deckstose
#1315 | feat: raise cpp standard to c++23 | @@deckstose
d0cbaf7 | Add configuration toggle for terminal synchronization | @@aristocratos
#1306 | Implement feat Process list pausing | @@vandabbin
#1322 | flip name, command, and user sorting | @@vandabbin
#1334 | fix tty theme for pause banner | @@vandabbin
#1325 | test: add test harness with ctest | @@deckstose
#1339 | fix: skip first argument of argv | @@AlvaroParker
#1357 | feat: add --themes-dir flag | @@adeci
#1359 | fix: don't over-/underflow when parsing --update argument | @@yinghao-w
#1362 | fix segfault on musl systems | @@v1cont
#1363 | Pass only static duration strings to Config::set in Config::apply_preset | @@yinghao-w
#1366 | fix: cpu per-thread totals not reaching 100% | @@Tom94
#1367 | Fix: Align boxes when Cpu bottom and Gpu on | @@yinghao-w
#1372 | Minor fixes and improvements for NetBSD | @@fraggerfox
#1377 | Fixed GPU rendering | @@TheSovietPancakes
#1379 | Fix: Always collect GPU data when cpu_graph_lower = "Auto" | @@yinghao-w
#1393 | Fix: humanized units shortening | @@yinghao-w
#1401 | Feat: add mouse dragging of scrollbar | @@yinghao-w
#1399 | feat: add cli option to dump default config | @@deckstose
e969f43 | Added "save_config_on_exit" option to configuration | @@aristocratos
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2025/10/15 23:22:28 wiz Exp $
d3 1
a3 1
DISTNAME=	btop-1.4.6
@


1.7
log
@btop: help it find its themes

Based on a patch by RVP in PR 59702.

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2025/10/11 09:29:30 wiz Exp $
d3 1
a3 2
DISTNAME=	btop-1.4.5
PKGREVISION=	2
d13 4
d37 4
@


1.6
log
@btop: apply patch from RVP via PR 59702 for various improvements.

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2025/09/21 17:58:05 wiz Exp $
d4 1
a4 1
PKGREVISION=	1
d26 8
@


1.5
log
@btop: update to 1.4.5.

## v1.4.5

References | Description | Author(s)
--- | --- | ---
#1254 | Bump bundled fmt to 12.0.0 | @@deckstose
#1242 | Enable vim movement in help menu | @@botantony
#948 | Remove reduntant symbols in tree view | @@Denizantip
#1249 | Use /sys/dev/block/MAJOR:MINOR instead of /sys/block/NAME for disk I/O | @@CountBleck
#1227 | feat: display CPU power draw & fix GPU+load avg overwriting core info | @@Tom94 and @@YuriiShkrobut
4f5abbb | Fix locale issues | @@aristocratos
#1165 | Add encode and decode meters on Nvidia GPUs | @@sam-kirby
#1197 | linux: Battery Time-to-full | @@RadsammyT
#1203 | Convert ascii escape codes in mountpoint names before reading statvfs | @@deckstose
#1198 | Fix presets erroring with gpu* usage | @@entropylost
#1191 | Fix --tty/--no-tty flag having no effect | @@deckstose
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2025/07/06 09:08:59 wiz Exp $
d4 1
@


1.4
log
@btop: update to 1.4.4.

## v1.4.4

References | Description | Author(s)
--- | --- | ---
#1185 | Fix auto-detection of CPU temp on Ampere boards | @@bexcran
589c133 | Fixed floating_humanizer() to work correctly when numeric delimiter isn't a dot. | @@aristocratos
#1157 | Add command line option to set an inital filter | @@imwints
#1172 | Make 100ms the minimal refresh rate. Exit gracefully if integer conversion in CLI parser fails. | @@imwints
#1031 | Lock/unlock config to avoid infinite recursion | @@Jacajack
#1156 | Fix incorrect positioning and start symbol of second title introduced in 2538d89 | @@xDMPx
ffcd064 | Fix dangling reference warnings for GCC 13 and later | aristocratos
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2025/05/11 10:18:07 wiz Exp $
d3 1
a3 1
DISTNAME=	btop-1.4.4
@


1.3
log
@btop: update to 1.4.3.

## v1.4.3

References | Description | Author(s)
--- | --- | ---
c3b225f | Revert e266ccd which broke str_to_upper() and str_to_lower() | @@aristocratos
#1137 | Enable additional checks in libc++ with the new hardening mode | @@imwints
#1135 | Remove redundant optimization flag | @@imwints
#1139 | Ignore incomplete filter regex, issue #1133 | @@imwints

## v1.4.2

References | Description | Author(s)
--- | --- | ---
f1482fe | Fix process arguments appearing outside proc box by replacing ASCII control codes with blankspace, issue #1080 | @@aristocratos
#1130 | Fix problems shown by clang-tidy's performance checks | @@imwints
#1120 | Fix wrong error message and documentation of renamed option --utf-force | @@t-webber @@imwints
#1128 | Flatten cmake module path | @@imwints
#1129 | CMake: Remove option to use mold  | @@imwints
#1047 | Update Terminus font link, fix typo, spelling, and grammar | @@QinCai-rui
#929 | Please clang with sanitizers | @@bad-co-de
#1126 | Fix MacOS tree-mode + aggregate memory/thread scaling issue | @@xaskii
#993 | Fix typo: Mhz -> MHz | @@NyCodeGHG

## v1.4.1

References | Description | Author(s)
--- | --- | ---
#1111 #1112 | Various code fixes | @@imwints
#930 #931 | Various code fixes | @@bad-co-de
#1061 | Fixed typo | @@polluks
#1110 | Move the config parser in it's own module  | @@imwints
#1101 | Adding a menu option to show bitrates in base 10 separate from the setting to show bytes/bits in base 10 | @@georgev93
#1079 | Allow MidnightBSD to build btop using the existing freebsd support. | @@laffer1
#1098 | Use XDG_STATE_HOME to save logs | @@imwints
#1092 | Bump CMake version to 3.25 required for LINUX variable | @@imwints
#1058 | Replace brackets with arrows in net and proc box | @@taha-yassine
#1091 | Bump bundled fmt to 11.1.4 | @@imwints
#725 | cmake:  link to CMAKE_DL_LIBS | @@alalazo
#990 | Fix phoenix-night.theme marked as executable | @@sertonix
#1034 | Add Kanagawa-lotus and Kanagawa-wave themes | @@philikarus
#973 | Bump NetBSD version to 10.1 and FreeBSD version to 14.2. | @@fraggerfox
#1072 | Add dark version of adwaita theme: adwaita-dark | @@k0tran
#1036 | Resetting last selection on page navigation in optionsMenu to avoid unordered_map error | @@seth-wood
#1029 | Share the CPU name trimming code between platforms | @@yarrick
#1033 | Update Ryzen name trimming | @@yarrick
#1030 | Drop macos 12 build, add v14 and v15 | @@yarrick
#1028 | Fix cmake-macos workflow | @@yarrick
#1027 | Bump version of deprecated upload-artifact step | @@yarrick
#1025 | Update obsolete egrep call | @@tywkeene
b52069c | Fix menu crash when GPU_SUPPORT=false, issue #989 | @@aristocratos
#961 | Add 'Everforest Ligth Medium' theme | @@mstuttgart
#960 | Support intel GPUs before Gen-6 (patch from upstream) | @@w8jcik
#958 | intel_name_lookup_shim.c (get_intel_device_name): Fix SEGFAULT | @@artyom-poptsov
2e7208d | Fix rsmi_measure_pcie_speeds not saving, issue #934 | @@aristocratos
f3446ed | Show GPU Watt fractions when below 100W | @@aristocratos

| + more from @@imwints @@aristocratos

Big thanks to @@imwints for helping out with project maintenance, PR reviews and merging!
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2025/03/11 12:28:49 nia Exp $
d3 1
a3 1
DISTNAME=	btop-1.4.3
@


1.2
log
@btop: Needs atomic64.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2024/10/06 10:43:17 fox Exp $
d3 1
a3 1
DISTNAME=	btop-1.4.0
d13 2
a24 9
post-extract:
	${CHMOD} -R g-w ${WRKSRC}

post-build:
	${CP} ${FILESDIR}/btop.1 ${WRKDIR}/btop.1

post-install:
	${INSTALL_MAN} ${WRKDIR}/btop.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1

@


1.1
log
@Import of btop++ v1.4.0 as sysutils/btop

Resource monitor that shows usage and stats for processor, memory,
disks, network and processes.

* Easy to use, with a game inspired menu system.
* Full mouse support, all buttons with a highlighted key is clickable
  and mouse scroll works in process list and menu boxes.
* Fast and responsive UI with UP, DOWN keys process selection.
* Function for showing detailed stats for selected process.
* Ability to filter processes.
* Easy switching between sorting options.
* Tree view of processes.
* Send any signal to selected process.
* UI menu for changing all config file options.
* Auto scaling graph for network usage.
* Shows IO activity and speeds for disks
* Battery meter
* Selectable symbols for the graphs
* Custom presets
@
text
@d1 1
a1 1
# $NetBSD$
d33 1
@

