diff options
author | adamw <adamw@FreeBSD.org> | 2014-06-28 11:10:52 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2014-06-28 11:10:52 +0800 |
commit | a4da554aeb45e27964eed882c98fa5bc37915663 (patch) | |
tree | 29b2d556c141c5b28670fe4a41a8e44899703663 /net/rsync | |
parent | 0b0b486820dca317a9092ea3390b1de5eaf07a09 (diff) | |
download | freebsd-ports-gnome-a4da554aeb45e27964eed882c98fa5bc37915663.tar.gz freebsd-ports-gnome-a4da554aeb45e27964eed882c98fa5bc37915663.tar.zst freebsd-ports-gnome-a4da554aeb45e27964eed882c98fa5bc37915663.zip |
Use OPTIONS helpers.
Diffstat (limited to 'net/rsync')
-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) |