View | Details | Raw Unified | Return to bug 255718
Collapse All | Expand All

(-)b/sysutils/xosview/Makefile (-3 / +6 lines)
Lines 1-11 Link Here
1
# Created by: Brian Handy <handy@physics.montana.edu>
1
# Created by: Brian Handy <handy@physics.montana.edu>
2
# $FreeBSD$
2
3
3
PORTNAME=	xosview
4
PORTNAME=	xosview
4
DISTVERSION=	1.21
5
DISTVERSION=	1.23
5
CATEGORIES=	sysutils
6
CATEGORIES=	sysutils
6
7
7
MAINTAINER=	otacilio.neto@bsd.com.br
8
MAINTAINER=	otaciliodearaujo@gmail.com
8
COMMENT=	Graphical performance meter
9
COMMENT=	Graphical performance meter $FreeBSD$
9
10
10
LICENSE=	BSD4CLAUSE GPLv2
11
LICENSE=	BSD4CLAUSE GPLv2
11
LICENSE_COMB=	multi
12
LICENSE_COMB=	multi
Lines 13-18 LICENSE_COMB= multi Link Here
13
ONLY_FOR_ARCHS=		amd64 i386
14
ONLY_FOR_ARCHS=		amd64 i386
14
ONLY_FOR_ARCHS_REASON=	uses x86-specific hardware resources
15
ONLY_FOR_ARCHS_REASON=	uses x86-specific hardware resources
15
16
17
RUN_DEPENDS=	font-misc-misc>=1.1.2:x11-fonts/font-misc-misc
18
16
USES=		gmake xorg
19
USES=		gmake xorg
17
USE_GITHUB=	yes
20
USE_GITHUB=	yes
18
GH_ACCOUNT=	hills
21
GH_ACCOUNT=	hills
(-)b/sysutils/xosview/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1546270995
1
TIMESTAMP = 1620516140
2
SHA256 (hills-xosview-1.21_GH0.tar.gz) = 7b7e2964526baf40c9bd59a6f414c42487187f6eaf1882c6d12ced4c80e7bbd5
2
SHA256 (hills-xosview-1.23_GH0.tar.gz) = 2de555dc07e8d0a44417979116ce1661a3e1cde9f1a849881b999fbd4ec5bdb6
3
SIZE (hills-xosview-1.21_GH0.tar.gz) = 147486
3
SIZE (hills-xosview-1.23_GH0.tar.gz) = 147356
(-)a/sysutils/xosview/files/patch-bsd_kernel.cc (-32 lines)
Removed Link Here
1
--- bsd/kernel.cc.orig	2018-09-12 13:52:23 UTC
2
+++ bsd/kernel.cc
3
@@ -93,6 +93,9 @@ static int mib_uvm[2] = { CTL_VM, VM_UVMEXP2 };
4
 static int mib_uvm[2] = { CTL_VM, VM_UVMEXP };
5
 #endif
6
 #else
7
+#if defined(XOSVIEW_FREEBSD)
8
+#define _WANT_VMMETER
9
+#endif
10
 #include <sys/vmmeter.h>
11
 #endif
12
 
13
@@ -339,7 +342,9 @@ BSDGetPageStats(uint64_t *meminfo, uint64_t *pageinfo)
14
 	GET_VM_STATS(v_active_count);
15
 	GET_VM_STATS(v_inactive_count);
16
 	GET_VM_STATS(v_wire_count);
17
+#if __FreeBSD_version < 1200017
18
 	GET_VM_STATS(v_cache_count);
19
+#endif
20
 	GET_VM_STATS(v_free_count);
21
 	GET_VM_STATS(v_page_size);
22
 	GET_VM_STATS(v_vnodepgsin);
23
@@ -361,7 +366,9 @@ BSDGetPageStats(uint64_t *meminfo, uint64_t *pageinfo)
24
 		meminfo[0] = (uint64_t)vm.v_active_count * vm.v_page_size;
25
 		meminfo[1] = (uint64_t)vm.v_inactive_count * vm.v_page_size;
26
 		meminfo[2] = (uint64_t)vm.v_wire_count * vm.v_page_size;
27
+#if __FreeBSD_version < 1200017
28
 		meminfo[3] = (uint64_t)vm.v_cache_count * vm.v_page_size;
29
+#endif
30
 		meminfo[4] = (uint64_t)vm.v_free_count * vm.v_page_size;
31
 #else  /* XOSVIEW_DFBSD */
32
 		meminfo[0] = (uint64_t)vms.v_active_count * vms.v_page_size;

Return to bug 255718