From 5e42dc3ba95d3d9ab5982b551476542cba080382 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Wed, 1 Dec 2004 21:23:38 +0000 Subject: - Fix build on 5.3 PR: ports/74547 Submitted by: Sean Farley --- news/nn/Makefile | 6 +----- news/nn/files/patch-ag | 15 ++++++++------- 2 files changed, 9 insertions(+), 12 deletions(-) (limited to 'news/nn') diff --git a/news/nn/Makefile b/news/nn/Makefile index 69a5d8e4ee66..5871dc14bbe9 100644 --- a/news/nn/Makefile +++ b/news/nn/Makefile @@ -15,7 +15,7 @@ EXTRACT_SUFX= .tar.Z MAINTAINER= jooji@nickelkid.com COMMENT= Newsreader -MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS} -s" +MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -Iconf" LDFLAGS="${LDFLAGS} -s" MAN1= nn.1 nncheck.1 nngoback.1 nngrab.1 nngrep.1 nnpost.1 \ nntidy.1 nnview.1 nnacct.1m nnadmin.1m nnstats.1m nnusage.1m @@ -23,10 +23,6 @@ MAN8= nnmaster.8 nnspew.8 .include -.if ${OSVERSION} >= 502126 -BROKEN= "Does not build on FreeBSD >= 5.x" -.endif - pre-patch: @${CP} ${WRKSRC}/config.h-dist ${WRKSRC}/config.h.unparsed diff --git a/news/nn/files/patch-ag b/news/nn/files/patch-ag index 79735ead2cf6..4580e581a65f 100644 --- a/news/nn/files/patch-ag +++ b/news/nn/files/patch-ag @@ -1,14 +1,15 @@ --- Makefile.orig Thu Feb 7 22:14:41 2002 -+++ Makefile Wed Apr 28 17:47:59 2004 -@@ -63,6 +64,7 @@ - -e 's/^ / /' \ ++++ Makefile Mon Nov 29 23:15:59 2004 +@@ -60,7 +60,7 @@ + -DCDEBUG="$(CFLAGS)" -Iconf MF.c | \ + sed -e '1,/MAKE WILL CUT HERE/d' \ + -e '/^#/d' \ +- -e 's/^ / /' \ ++ -e 's/^ / /' \ -e '/^[ \f ]$$/d' \ -e '/^[ \/]*[*]/d' | \ -+ unexpand | \ sed -n -e '/^..*$$/p' > ymakefile - rm -f MF.c - -@@ -97,3 +99,5 @@ +@@ -97,3 +97,5 @@ man/nn.1.D: man/nn.1 sh SPLITNN1 -- cgit v1.2.3