From 5b12d611be690b96785016b2108f13f038bc13e1 Mon Sep 17 00:00:00 2001 From: jbeich Date: Sat, 4 Feb 2017 04:16:59 +0000 Subject: net-mgmt/flow-tools: respect CFLAGS and unbreak with gcc5 or later ../lib/libft.a(ftfil.o): In function `resolve_primitives': ftfil.c:(.text+0x12bb): undefined reference to `eval_match_src_as' ftfil.c:(.text+0x13e7): undefined reference to `eval_match_ip_prot' ftfil.c:(.text+0x1432): undefined reference to `eval_match_ip_src_prefix_len' [...] PR: 216707 Reported by: antoine (via exp-run) --- net-mgmt/flow-tools/Makefile | 5 +++-- net-mgmt/flow-tools/files/patch-lib_Makefile.in | 11 ----------- net-mgmt/flow-tools/files/patch-src_Makefile.in | 11 ----------- 3 files changed, 3 insertions(+), 24 deletions(-) delete mode 100644 net-mgmt/flow-tools/files/patch-lib_Makefile.in delete mode 100644 net-mgmt/flow-tools/files/patch-src_Makefile.in diff --git a/net-mgmt/flow-tools/Makefile b/net-mgmt/flow-tools/Makefile index 48eb72b8cc26..0bbd3b080e30 100644 --- a/net-mgmt/flow-tools/Makefile +++ b/net-mgmt/flow-tools/Makefile @@ -3,7 +3,7 @@ PORTNAME= flow-tools PORTVERSION= 0.68 -PORTREVISION= 8 +PORTREVISION= 9 CATEGORIES= net-mgmt MASTER_SITES= ftp://ftp.eng.oar.net/pub/flow-tools/ @@ -17,9 +17,10 @@ OPTIONS_DEFINE= MYSQL OPENSSL PGSQL CONFLICTS= flow-tools-ng-[0-9]* USES= python:run -USE_GCC= any GNU_CONFIGURE= yes +CFLAGS+= -fgnu89-inline CONFIGURE_ARGS+=--localstatedir="${PREFIX}" +MAKE_ARGS= AM_CFLAGS="${CFLAGS}" SUB_FILES= pkg-install pkg-deinstall SUB_LIST= FLOW_CAPTURE_SPOOL="${FLOW_CAPTURE_SPOOL}" \ diff --git a/net-mgmt/flow-tools/files/patch-lib_Makefile.in b/net-mgmt/flow-tools/files/patch-lib_Makefile.in deleted file mode 100644 index 21aea465d5e1..000000000000 --- a/net-mgmt/flow-tools/files/patch-lib_Makefile.in +++ /dev/null @@ -1,11 +0,0 @@ ---- lib/Makefile.in.orig Wed Dec 20 01:38:19 2006 -+++ lib/Makefile.in Wed Dec 20 01:38:25 2006 -@@ -91,7 +91,7 @@ - - #AM_CFLAGS=-g -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs - #AM_CFLAGS=-O2 --AM_CFLAGS = -g -Wall -+#AM_CFLAGS = -g -Wall - - DEFS = -I. -I$(srcdir)/lib - diff --git a/net-mgmt/flow-tools/files/patch-src_Makefile.in b/net-mgmt/flow-tools/files/patch-src_Makefile.in deleted file mode 100644 index 7e414cb892c4..000000000000 --- a/net-mgmt/flow-tools/files/patch-src_Makefile.in +++ /dev/null @@ -1,11 +0,0 @@ ---- src/Makefile.in.orig Wed Dec 20 01:37:38 2006 -+++ src/Makefile.in Wed Dec 20 01:37:57 2006 -@@ -97,7 +97,7 @@ - - #AM_CFLAGS=-g -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs - #AM_CFLAGS=-O2 --AM_CFLAGS = -g -Wall -+#AM_CFLAGS = -g -Wall - - bin_PROGRAMS = flow-capture flow-cat flow-stat flow-print flow-dscan \ - flow-send flow-receive flow-gen flow-expire \ -- cgit