summaryrefslogtreecommitdiffstats
path: root/net/rsync/Makefile
diff options
context:
space:
mode:
authoranders <anders@FreeBSD.org>2002-04-20 20:19:47 +0000
committeranders <anders@FreeBSD.org>2002-04-20 20:19:47 +0000
commit88812da30a6f4b7b8f210257c0e0e67d39970a09 (patch)
tree39e4ce9d313c44daaacfec29910d82b1bc113397 /net/rsync/Makefile
parent827968b51bc45d455607d54f8e8100981abd5c1b (diff)
downloadFreeBSD-ports-88812da30a6f4b7b8f210257c0e0e67d39970a09.zip
FreeBSD-ports-88812da30a6f4b7b8f210257c0e0e67d39970a09.tar.gz
Make port set -O2 in CFLAGS. Necessary for -z (compress) option to work
properly. PR: 36998 Submitted by: maintainer
Diffstat (limited to 'net/rsync/Makefile')
-rw-r--r--net/rsync/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/rsync/Makefile b/net/rsync/Makefile
index b373b1f..2802acb 100644
--- a/net/rsync/Makefile
+++ b/net/rsync/Makefile
@@ -8,7 +8,7 @@
PORTNAME= rsync
PORTVERSION= 2.5.5
-PORTREVISION= 0
+PORTREVISION= 1
CATEGORIES= net ipv6
MASTER_SITES= ftp://samba.anu.edu.au/pub/rsync/ \
ftp://sunsite.auc.dk/pub/unix/rsync/ \
@@ -19,6 +19,11 @@ MAINTAINER= obraun@informatik.unibw-muenchen.de
GNU_CONFIGURE= yes
+OPTIMIZATION!= ${ECHO} "${CFLAGS}" | grep '\-O[2-6]' || true
+.if empty(OPTIMIZATION)
+CFLAGS+= -O2
+.endif
+
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 400016
OpenPOWER on IntegriCloud