diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-06-28 03:10:52 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-06-28 03:10:52 +0000 |
commit | 16c5fc7637f762d17f4ac4d116b6da08e561cc0c (patch) | |
tree | 29b2d556c141c5b28670fe4a41a8e44899703663 /net/rsync/Makefile | |
parent | 4978014ec5b825cf17205ea037d6915eb3454293 (diff) | |
download | ports-16c5fc7637f762d17f4ac4d116b6da08e561cc0c.tar.gz ports-16c5fc7637f762d17f4ac4d116b6da08e561cc0c.zip |
Notes
Diffstat (limited to 'net/rsync/Makefile')
-rw-r--r-- | net/rsync/Makefile | 70 |
1 files changed, 20 insertions, 50 deletions
diff --git a/net/rsync/Makefile b/net/rsync/Makefile index e95553664001..89815db9cd21 100644 --- a/net/rsync/Makefile +++ b/net/rsync/Makefile @@ -19,6 +19,7 @@ COMMENT= Network file distribution/synchronization utility LICENSE= GPLv3 +PATCH_STRIP= -p1 GNU_CONFIGURE= yes USE_RC_SUBR= rsyncd SUB_LIST= NAME=rsyncd @@ -49,64 +50,33 @@ ACL_DESC= Add backward-compatibility for the --acls option # define default options OPTIONS_DEFAULT=SSH FLAGS -.include <bsd.port.options.mk> +ZLIB_BASE_CONFIGURE_ARGS= --with-included-zlib=no +TIMELIMIT_EXTRA_PATCHES= ${WRKSRC}/patches/time-limit.diff +ATIMES_EXTRA_PATCHES= ${WRKSRC}/patches/atimes.diff +FLAGS_EXTRA_PATCHES= ${WRKSRC}/patches/fileflags.diff \ + ${FILESDIR}/extrapatch-main.c +RENAMED_EXTRA_PATCHES= ${WRKSRC}/patches/detect-renamed.diff +ACL_EXTRA_PATCHES= ${WRKSRC}/patches/acls.diff -.if ${PORT_OPTIONS:MZLIB_BASE} -CONFIGURE_ARGS+= --with-included-zlib=no -.endif +ICONV_USES= iconv +ICONV_CPPFLAGS= -I${LOCALBASE}/include +ICONV_LDFLAGS= -L${LOCALBASE}/lib +ICONV_CONFIGURE_ENABLE= iconv iconv-open -.if ${PORT_OPTIONS:MTIMELIMIT} -PATCH_STRIP= -p1 -EXTRA_PATCHES+= ${WRKSRC}/patches/time-limit.diff -.endif +POPT_PORT_LIB_DEPENDS= libopt.so:${PORTSDIR}/devel/popt +POPT_PORT_CPPFLAGS= -I${LOCALBASE}/include +POPT_PORT_LDFLAGS= -L${LOCALBASE}/lib +POPT_CONFIGURE_WITH= included-popt -.if ${PORT_OPTIONS:MATIMES} -PATCH_STRIP= -p1 -EXTRA_PATCHES+= ${WRKSRC}/patches/atimes.diff -.endif +SSH_CONFIGURE_ON= --with-rsh=ssh +SSH_CONFIGURE_OFF= --with-rsh=rsh + +.include <bsd.port.options.mk> .if ${PORT_OPTIONS:MICONV} || ${PORT_OPTIONS:MFLAGS} || ${PORT_OPTIONS:MACL} || make(makesum) || ${PORT_OPTIONS:MTIMELIMIT} || ${PORT_OPTIONS:MATIMES} || ${PORT_OPTIONS:MRENAMED} DISTFILES+= ${PORTNAME}-patches-${PORTVERSION}${EXTRACT_SUFX} .endif -.if ${PORT_OPTIONS:MICONV} -USES+= iconv -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -.else -CONFIGURE_ARGS+=--disable-iconv --disable-iconv-open -.endif - -.if ${PORT_OPTIONS:MFLAGS} -PATCH_STRIP= -p1 -EXTRA_PATCHES+= ${WRKSRC}/patches/fileflags.diff \ - ${FILESDIR}/extrapatch-main.c -.endif - -.if ${PORT_OPTIONS:MRENAMED} -PATCH_STRIP= -p1 -EXTRA_PATCHES+= ${WRKSRC}/patches/detect-renamed.diff -.endif - -.if ${PORT_OPTIONS:MACL} -PATCH_STRIP= -p1 -EXTRA_PATCHES+= ${WRKSRC}/patches/acls.diff -.endif - -.if ${PORT_OPTIONS:MPOPT_PORT} -LIB_DEPENDS+= libpopt.so:${PORTSDIR}/devel/popt -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -.else -CONFIGURE_ARGS+= --with-included-popt -.endif - -.if ${PORT_OPTIONS:MSSH} -CONFIGURE_ARGS+= --with-rsh=ssh -.else -CONFIGURE_ARGS+= --with-rsh=rsh -.endif - .include <bsd.port.pre.mk> .if empty(ICONV_LIB) |