aboutsummaryrefslogtreecommitdiff
path: root/net/rsync
diff options
context:
space:
mode:
authorOliver Braun <obraun@FreeBSD.org>2002-08-31 06:20:26 +0000
committerOliver Braun <obraun@FreeBSD.org>2002-08-31 06:20:26 +0000
commit59e9eb3991228ed391a702af6010ff0bb24ce03f (patch)
tree3388ed95482666a3dbc6127d24603a32f7f72020 /net/rsync
parent8ed01ab91cf51d5eae0adbcf933f137d186a0b20 (diff)
downloadports-59e9eb3991228ed391a702af6010ff0bb24ce03f.tar.gz
ports-59e9eb3991228ed391a702af6010ff0bb24ce03f.zip
* Add knob WITH_POPT_PORT to build rsync with devel/popt.
* Use included popt by default. Reviewed by: alane Approved by: dwcjr (mentor)
Notes
Notes: svn path=/head/; revision=65357
Diffstat (limited to 'net/rsync')
-rw-r--r--net/rsync/Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/net/rsync/Makefile b/net/rsync/Makefile
index 45ddbf5d1eef..f624aded744f 100644
--- a/net/rsync/Makefile
+++ b/net/rsync/Makefile
@@ -17,12 +17,18 @@ MASTER_SITES= ftp://samba.anu.edu.au/pub/rsync/ \
MAINTAINER= obraun@FreeBSD.org
+.if defined(WITH_POPT_PORT)
LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt
+.endif
USE_REINPLACE= yes
GNU_CONFIGURE= yes
+.if defined(WITH_POPT_PORT)
CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
+.else
+CONFIGURE_ARGS= --with-included-popt
+.endif
.include <bsd.port.pre.mk>
@@ -37,13 +43,20 @@ EXTRA_PATCHES= ${FILESDIR}/ssh-patch-*
.endif
.if ${OSVERSION} >= 400014
-CONFIGURE_ARGS= --disable-debug --enable-ipv6
+CONFIGURE_ARGS+= --disable-debug --enable-ipv6
.else
-CONFIGURE_ARGS= --disable-debug --disable-ipv6
+CONFIGURE_ARGS+= --disable-debug --disable-ipv6
.endif
MAN1= rsync.1
MAN5= rsyncd.conf.5
+.if !defined(WITH_POPT_PORT)
+pre-everything::
+ @${ECHO_CMD} "rsync comes with an included version of popt."
+ @${ECHO_CMD} "To build rsync with devel/popt instead,"
+ @${ECHO_CMD} "hit Ctrl-C now and define WITH_POPT_PORT"
+.endif
+
pre-configure:
@${REINPLACE_CMD} -e 's:/etc/:${PREFIX}/etc/:g' \
${WRKSRC}/rsync.h ${WRKSRC}/rsync.1 ${WRKSRC}/rsyncd.conf.5