freebsd-ports/net/csync2/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00

58 lines
1.4 KiB
Makefile

# New ports collection makefile for: net/csync2
# Date created: 16 May 2007
# Whom: Aaron Dalton <aaron@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= csync2
PORTVERSION= 1.34
PORTREVISION= 11
CATEGORIES= net
MASTER_SITES= http://oss.linbit.com/csync2/ \
http://people.freebsd.org/~aaron/distfiles/
MAINTAINER= alexey@renatasystems.org
COMMENT= A cluster synchronization tool
LIB_DEPENDS= rsync.1:${PORTSDIR}/net/librsync \
tasn1.4:${PORTSDIR}/security/libtasn1 \
gnutls.47:${PORTSDIR}/security/gnutls \
sqlite.2:${PORTSDIR}/databases/sqlite2 \
gcrypt.18:${PORTSDIR}/security/libgcrypt \
gpg-error.0:${PORTSDIR}/security/libgpg-error
OPTIONS= CSYNC2_COMPARE "Install csync2-compare script" off
.include <bsd.port.pre.mk>
MAN1= csync2.1
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc
CONFIGURE_ENV= LIBGNUTLS_CONFIG="${LOCALBASE}/bin/pkg-config gnutls"
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USE_RC_SUBR= csync2
PLIST_FILES= etc/csync2.cfg-dist \
sbin/csync2
.if defined(WITH_CSYNC2_COMPARE)
RUN_DEPENDS+= bash>=0:${PORTSDIR}/shells/bash
PLIST_FILES+= sbin/csync2-compare
CSYNC2_COMPARE= csync2-compare
.else
CSYNC2_COMPARE=
.endif
SUB_FILES= pkg-install
post-patch:
${REINPLACE_CMD} -E "s#%%CSYNC2_COMPARE%%#${CSYNC2_COMPARE}#" ${WRKSRC}/Makefile.in
post-install:
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>