diff options
author | obraun <obraun@FreeBSD.org> | 2002-08-31 14:20:26 +0800 |
---|---|---|
committer | obraun <obraun@FreeBSD.org> | 2002-08-31 14:20:26 +0800 |
commit | 6d1c81ca55bb95e509a447e794a4161d91c48d17 (patch) | |
tree | cae3d74f72ea8e8ebc7bf2bcb18415a165599f10 | |
parent | e2959462dc5a118f1aeffbab2c85a34d7d6259bf (diff) | |
download | freebsd-ports-gnome-6d1c81ca55bb95e509a447e794a4161d91c48d17.tar.gz freebsd-ports-gnome-6d1c81ca55bb95e509a447e794a4161d91c48d17.tar.zst freebsd-ports-gnome-6d1c81ca55bb95e509a447e794a4161d91c48d17.zip |
* Add knob WITH_POPT_PORT to build rsync with devel/popt.
* Use included popt by default.
Reviewed by: alane
Approved by: dwcjr (mentor)
-rw-r--r-- | net/rsync/Makefile | 17 |
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 |