From 96c28738775b02ef197c348c609a61b7d73ec70b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Thu, 1 Oct 2020 18:52:37 +0000 Subject: Fix build with -fno-common --- net-mgmt/mbrowse/Makefile | 15 +++++++++++---- net-mgmt/mbrowse/files/patch-src_callbacks.c | 11 +++++++++++ 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 net-mgmt/mbrowse/files/patch-src_callbacks.c (limited to 'net-mgmt') diff --git a/net-mgmt/mbrowse/Makefile b/net-mgmt/mbrowse/Makefile index 84754adc5efe..6531a18b8df1 100644 --- a/net-mgmt/mbrowse/Makefile +++ b/net-mgmt/mbrowse/Makefile @@ -3,6 +3,7 @@ PORTNAME= mbrowse PORTVERSION= 0.4.3 +PORTREVISION= 1 CATEGORIES= net-mgmt MASTER_SITES= SF/${PORTNAME}/${PORTVERSION} @@ -11,14 +12,20 @@ COMMENT= SNMP MIB Browser for X LICENSE= GPLv2 -LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp +LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp \ + libfontconfig.so:x11-fonts/fontconfig \ + libfreetype.so:print/freetype2 \ + libpkg.so:ports-mgmt/pkg +USES= gnome pkgconfig ssl +USE_GNOME= cairo gdkpixbuf2 gtk20 GNU_CONFIGURE= yes -PLIST_FILES= bin/mbrowse -USES= gnome pkgconfig -USE_GNOME= gtk20 + CONFIGURE_ARGS= --with-snmp-prefix=${PREFIX} --with-snmp-type=net + CPPFLAGS+= `net-snmp-config --cflags` LDFLAGS+= `net-snmp-config --libs` +PLIST_FILES= bin/mbrowse + .include diff --git a/net-mgmt/mbrowse/files/patch-src_callbacks.c b/net-mgmt/mbrowse/files/patch-src_callbacks.c new file mode 100644 index 000000000000..73afc7f1af76 --- /dev/null +++ b/net-mgmt/mbrowse/files/patch-src_callbacks.c @@ -0,0 +1,11 @@ +--- src/callbacks.c.orig 2010-11-16 10:20:23 UTC ++++ src/callbacks.c +@@ -28,7 +28,7 @@ extern int delete; + extern int context_id; + extern int tview; + +-struct menu_items bookmark_items[128]; ++extern struct menu_items bookmark_items[128]; + extern int dont_select_damnit; + extern int dont_update_entry; + static struct tree *mibtree; -- cgit v1.2.3