aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authoranders <anders@FreeBSD.org>2002-04-21 04:19:47 +0800
committeranders <anders@FreeBSD.org>2002-04-21 04:19:47 +0800
commit88812da30a6f4b7b8f210257c0e0e67d39970a09 (patch)
tree39e4ce9d313c44daaacfec29910d82b1bc113397 /net
parent827968b51bc45d455607d54f8e8100981abd5c1b (diff)
downloadfreebsd-ports-gnome-88812da30a6f4b7b8f210257c0e0e67d39970a09.tar.gz
freebsd-ports-gnome-88812da30a6f4b7b8f210257c0e0e67d39970a09.tar.zst
freebsd-ports-gnome-88812da30a6f4b7b8f210257c0e0e67d39970a09.zip
Make port set -O2 in CFLAGS. Necessary for -z (compress) option to work
properly. PR: 36998 Submitted by: maintainer
Diffstat (limited to 'net')
-rw-r--r--net/rsync/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/rsync/Makefile b/net/rsync/Makefile
index b373b1feb482..2802acb92327 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