View | Details | Raw Unified | Return to bug 237159 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-1 / +4 lines)
Lines 12-18 Link Here
12
12
13
LIB_DEPENDS=	libsysctlmibinfo.so:devel/libsysctlmibinfo
13
LIB_DEPENDS=	libsysctlmibinfo.so:devel/libsysctlmibinfo
14
14
15
USES=		pkgconfig gettext-runtime gnome
15
USES=		compiler:c++11-lang pkgconfig gettext-runtime gnome
16
USE_GNOME=	gtkmm30 atkmm glibmm pangomm glibmm gtk30 pango atk \
16
USE_GNOME=	gtkmm30 atkmm glibmm pangomm glibmm gtk30 pango atk \
17
		cairo glib20 cairomm libsigc++20 gdkpixbuf2 glib20
17
		cairo glib20 cairomm libsigc++20 gdkpixbuf2 glib20
18
18
Lines 32-37 Link Here
32
PLIST_FILES=	bin/sysctlview \
32
PLIST_FILES=	bin/sysctlview \
33
		man/man1/sysctlview.1.gz
33
		man/man1/sysctlview.1.gz
34
34
35
post-patch:
36
	@${REINPLACE_CMD} '/CXX =/d; s/^CXXFLAGS =/CXXFLAGS +=/; s/^LDFLAGS =/LDFLAGS +=/' ${WRKSRC}/Makefile
37
35
do-install:
38
do-install:
36
	${INSTALL_PROGRAM} ${WRKSRC}/sysctlview ${STAGEDIR}${PREFIX}/bin
39
	${INSTALL_PROGRAM} ${WRKSRC}/sysctlview ${STAGEDIR}${PREFIX}/bin
37
	${INSTALL_MAN} ${WRKSRC}/sysctlview.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
40
	${INSTALL_MAN} ${WRKSRC}/sysctlview.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
(-)files/patch-mytreeview.cc (+28 lines)
Line 0 Link Here
1
--- mytreeview.cc.orig	2019-04-09 12:24:35 UTC
2
+++ mytreeview.cc
3
@@ -31,24 +31,7 @@
4
 
5
 #include "mytreeview.h"
6
 
7
-static const char *ctl_typename[CTLTYPE+1] = {
8
-    [CTLTYPE_INT] = "integer",
9
-    [CTLTYPE_UINT] = "unsigned integer",
10
-    [CTLTYPE_LONG] = "long integer",
11
-    [CTLTYPE_ULONG] = "unsigned long",
12
-    [CTLTYPE_U8] = "uint8_t",
13
-    [CTLTYPE_U16] = "uint16_t",
14
-    [CTLTYPE_U32] = "uint32_t",
15
-    [CTLTYPE_U64] = "uint64_t",
16
-    [CTLTYPE_S8] = "int8_t",
17
-    [CTLTYPE_S16] = "int16_t",
18
-    [CTLTYPE_S32] = "int32_t",
19
-    [CTLTYPE_S64] = "int64_t",
20
-    [CTLTYPE_NODE] = "node",
21
-    [CTLTYPE_STRING] = "string",
22
-    [CTLTYPE_OPAQUE] = "opaque",
23
-};
24
-
25
+static const char *ctl_typename[CTLTYPE+1] = { "node", "integer", "string", "int64_t", "opaque", "unsigned integer", "long integer", "unsigned long", "uint64_t", "int8_t", "int16_t", "int32_t", "uint32_t" };
26
 
27
 MyTreeView::MyTreeView(Gtk::Window *w)
28
 {

Return to bug 237159