From b76a034eadb200112e482b2a676b4e2b064ac590 Mon Sep 17 00:00:00 2001 From: Sergey Matveychuk Date: Tue, 27 Sep 2005 07:55:17 +0000 Subject: [PATCH] - Fix a wrong usage of CFLAGS in last update (the port does not build if CFLAGS defined in /etc/make.conf) PR: ports/86616 Reported by: TANABE Hiroyasu Submitted by: Andrej Zverev Approved by: broken build --- ftp/ftpproxy/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ftp/ftpproxy/Makefile b/ftp/ftpproxy/Makefile index e50576357e94..e724dc989603 100644 --- a/ftp/ftpproxy/Makefile +++ b/ftp/ftpproxy/Makefile @@ -7,6 +7,7 @@ PORTNAME= ftpproxy PORTVERSION= 1.2.3 +PORTREVISION= 1 CATEGORIES= ftp MASTER_SITES= http://www.ftpproxy.org/download/ \ http://www.ftpproxy.org/download/older_releases/ @@ -17,14 +18,14 @@ COMMENT= A ftp proxy USE_REINPLACE= yes USE_GMAKE= yes -CFLAGS +=-DVERSION=\\\"${PORTVERSION}\\\" MAN1= ftp.proxy.1 MANCOMPRESSED= no PLIST_FILES= sbin/ftp.proxy pre-build: - @${REINPLACE_CMD} -e 's|^CFLAGS|#CFLAGS|' ${WRKSRC}/src/Makefile + @${REINPLACE_CMD} -e 's|^CFLAGS.*|CFLAGS=${CFLAGS} \ + -DVERSION=\\"${PORTVERSION}\\"|' ${WRKSRC}/src/Makefile do-install: @${INSTALL_PROGRAM} ${WRKSRC}/src/ftp.proxy ${PREFIX}/sbin