From cb9d76f417be06feac13719658220eea86b9c677 Mon Sep 17 00:00:00 2001 From: ale Date: Mon, 4 Oct 2004 21:50:57 +0000 Subject: - Unbreak on systems where gcc 3.4 is the base compiler (patches to sources are welcome) - Respect CFLAGS Approved by: portmgr (marcus) --- net/portfwd/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'net') diff --git a/net/portfwd/Makefile b/net/portfwd/Makefile index f095cfd5a252..1b6104cf3d55 100644 --- a/net/portfwd/Makefile +++ b/net/portfwd/Makefile @@ -26,9 +26,15 @@ MAN8= portfwd.8 .include .if ${OSVERSION} >= 502126 -BROKEN= "Does not compile on FreeBSD >= 5.x" +USE_GCC= 3.3 .endif +post-patch: + @${REINPLACE_CMD} -e "s|-Wall -ggdb -O3|${CFLAGS}|g" \ + ${WRKSRC}/src/Makefile.in + @${REINPLACE_CMD} -e "s|-Wall -g -O3|${CFLAGS}|g" \ + ${WRKSRC}/tools/Makefile.in + .if defined(NOPORTDOCS) post-configure: @${REINPLACE_CMD} -e "s|\(^install-data-am:\) install-docDATA|\1|g" \ -- cgit