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 31-36 Link Here
31
NLS_USES=		gettext
31
NLS_USES=		gettext
32
NLS_CONFIGURE_ENABLE=	nls
32
NLS_CONFIGURE_ENABLE=	nls
33
33
34
post-patch:
35
	@${REINPLACE_CMD} '/CXX =/d; s/^CXXFLAGS =/CXXFLAGS +=/; s/^LDFLAGS =/LDFLAGS +=/' ${WRKSRC}/Makefile
36
34
do-install:
37
do-install:
35
	${INSTALL_PROGRAM} ${WRKSRC}/sysctlview ${STAGEDIR}${PREFIX}/bin
38
	${INSTALL_PROGRAM} ${WRKSRC}/sysctlview ${STAGEDIR}${PREFIX}/bin
36
	${INSTALL_MAN} ${WRKSRC}/sysctlview.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
39
	${INSTALL_MAN} ${WRKSRC}/sysctlview.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
(-)files/patch-mytreeview.cc (+27 lines)
Line 0 Link Here
1
--- mytreeview.cc.orig	2019-03-29 02:24:01 UTC
2
+++ mytreeview.cc
3
@@ -29,23 +29,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
+static const char *ctl_typename[CTLTYPE+1] = { "ZEROUNUSED", "node", "integer", "string", "int64_t", "opaque", "unsigned integer", "long integer", "unsigned long", "uint64_t", "uint8_t", "uint16_t", "int8_t","int16_t", "int32_t", "uint32_t" };
25
 
26
 /* Public Methods */
27
 

Return to bug 237159