Fix a compilation error when CFLAGS are set in /etc/make.conf.

PR:		116631
Submitted by:	Beat Gaetzi <beat@chruetertee.ch>
This commit is contained in:
Emanuel Haupt 2007-09-25 22:01:43 +00:00
parent c817481dbd
commit a33ff46559
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=200111
2 changed files with 13 additions and 5 deletions

View file

@ -19,11 +19,6 @@ COMMENT= A ping-like tool for HTTP requests
MAN1= httping.1
PLIST_FILES= bin/httping
CFLAGS+= -DVERSION=\\\"${PORTVERSION}\\\"
post-patch:
@${REINPLACE_CMD} -E '/^(DEBUG|CFLAGS)/d' ${WRKSRC}/${MAKEFILE}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MANPREFIX}/man/man1

View file

@ -0,0 +1,13 @@
--- Makefile.ori Thu Jul 26 10:00:31 2007
+++ Makefile Tue Sep 25 18:36:53 2007
@@ -14,9 +14,8 @@
include version
-DEBUG=-g # -D_DEBUG
LDFLAGS+=-lssl -lcrypto $(DEBUG)
-CFLAGS+=-O2 -Wall -DVERSION=\"$(VERSION)\" $(DEBUG)
+CFLAGS+=-DVERSION=\"$(VERSION)\"
OBJS=mem.o http.o io.o str.o error.o utils.o main.o tcp.o mssl.o res.o