From de6e67695ec4c7e6a12d8c5c4b32c83b3ff3f4c3 Mon Sep 17 00:00:00 2001 From: jolan Date: Fri, 23 Dec 2005 17:33:42 +0000 Subject: [PATCH] honor CC/CFLAGS, prodding by naddy --- net/tftp-proxy/Makefile | 5 ++++- net/tftp-proxy/patches/patch-Makefile | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 net/tftp-proxy/patches/patch-Makefile diff --git a/net/tftp-proxy/Makefile b/net/tftp-proxy/Makefile index 3d6008505fb..676ff15b63a 100644 --- a/net/tftp-proxy/Makefile +++ b/net/tftp-proxy/Makefile @@ -1,7 +1,8 @@ -# $OpenBSD: Makefile,v 1.1.1.1 2005/12/21 04:00:28 jolan Exp $ +# $OpenBSD: Makefile,v 1.2 2005/12/23 17:33:42 jolan Exp $ COMMENT= "tftp proxy for pf" DISTNAME= tftp-proxy-1.6 +PKGNAME= ${DISTNAME}p0 CATEGORIES= net MASTER_SITES= http://jcs.org/code/ @@ -15,4 +16,6 @@ NO_REGRESS= Yes WANTLIB= c +MAKE_ENV+= CC="${CC}" + .include diff --git a/net/tftp-proxy/patches/patch-Makefile b/net/tftp-proxy/patches/patch-Makefile new file mode 100644 index 00000000000..5fa1657160f --- /dev/null +++ b/net/tftp-proxy/patches/patch-Makefile @@ -0,0 +1,14 @@ +$OpenBSD: patch-Makefile,v 1.1 2005/12/23 17:33:42 jolan Exp $ +--- Makefile.orig Fri Dec 16 11:50:27 2005 ++++ Makefile Fri Dec 23 11:30:32 2005 +@@ -4,8 +4,8 @@ + PROG = tftp-proxy + OBJS = tftp-proxy.o filter.o + +-CC = cc +-CFLAGS = -O2 -Wall -Wunused -Wmissing-prototypes -Wstrict-prototypes ++#CC = cc ++CFLAGS += -Wall -Wunused -Wmissing-prototypes -Wstrict-prototypes + + PREFIX = /usr/local + LEDIR = $(DESTDIR)$(PREFIX)/libexec