freebsd-ports/news/nn/files/patch-ag
Edwin Groothuis 272efd5d2c Unbreak news/nn on -current. From patch-submission:
news/nn doesn't build on -CURRENT because 'cc -E' now emits
    blanks instead of keeping the tabs when generating the intermediate
    makefile, so some unexpansion is called for. Fix $CC & $MAKE
    while we're at it.  Patch works on -STABLE, too.

PR:		ports/44530
Submitted by:	Volker Stolz <vs@foldr.org>
Approved by:	Jasper O'Malley <jooji@cornflake.nickelkid.com> (maintainer)
2002-10-29 01:36:44 +00:00

37 lines
963 B
Text

--- Makefile.orig Mon Jul 2 06:54:34 2001
+++ Makefile Sun Oct 27 16:54:54 2002
@@ -18,17 +18,16 @@
#
# Use /lib/cpp or /usr/ccs/lib/cpp for CPP on Solaris or SVR4 machines.
-CC = gcc
+CC ?= gcc
CPP = $(CC) -E
#CPP = /lib/cpp
#CFLAGS = -O2 # -g # -I/usr/local/lib/malloc-debug -DMALLOC_FUNC_CHECK
-CFLAGS = -O # -g -Wall -ansi -pedantic
+#CFLAGS = -O # -g -Wall -ansi -pedantic
#-Wall -Wcomment \
#-Wtraditional -Wshadow \
#-Wpointer-arith -Wcast-qual -Wcast-align -Wconversion \
#-Waggregate-return -Wmissing-prototypes -Wnested-externs
-#LDFLAGS = -s # -lmalloc # /usr/local/lib/malloc-debug/libmalloc.a
-MAKE = make
+LDFLAGS = -s # -lmalloc # /usr/local/lib/malloc-debug/libmalloc.a
SHELL = /bin/sh
@@ -63,6 +62,7 @@
-e '/^#/d' \
-e '/^[ \f ]$$/d' \
-e '/^[ \/]*[*]/d' | \
+ unexpand | \
sed -n -e '/^..*$$/p' > ymakefile
rm -f MF.c
@@ -97,3 +97,5 @@
man/nn.1.D: man/nn.1
sh SPLITNN1
+install:
+ ./inst n