# Created by: Alexander Logvinov <ports@logvinov.com>
# $FreeBSD: branches/RELEASE_8_4_0/deskutils/msynctool-devel/Makefile 315289 2013-03-26 12:59:13Z makc $

PORTNAME=	msynctool
PORTVERSION=	0.36
PORTREVISION=	1
CATEGORIES=	deskutils
MASTER_SITES=	http://www.opensync.org/download/releases/${PORTVERSION}/
PKGNAMESUFFIX=	-devel

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Command line client for the OpenSync framework

LIB_DEPENDS=	opensync.1:${PORTSDIR}/devel/libopensync

CONFLICTS=	msynctool-0.2*

USE_BZIP2=	yes
USES=		cmake:outsource
USE_PKGCONFIG=	build

PLIST_FILES=	bin/${PORTNAME}

BROKEN=		fails to build with recent libopensync

post-patch:
# Help find opensync, which is apparently renamed in ports
	${REINPLACE_CMD} -e "s,opensync-1.0,libopensync,g" \
		${WRKSRC}/cmake/modules/FindOpenSync.cmake

.include <bsd.port.mk>
