summaryrefslogtreecommitdiff
path: root/net/owncloud-csync/Makefile
blob: ee670ac45ff6bbeea3bff4442d88a0703b62cf5f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Created by: arrowdodger <6yearold@gmail.com>
# $FreeBSD$

PORTNAME=	owncloud-csync
PORTVERSION=	0.91.4
PORTREVISION=	1
CATEGORIES=	net kde
MASTER_SITES=	http://download.owncloud.com/desktop/stable/
DISTNAME=	ocsync-${PORTVERSION}

MAINTAINER=	6yearold@gmail.com
COMMENT=	Csync fork for Owncloud

LICENSE=	GPLv2

LIB_DEPENDS=	libiniparser.so:${PORTSDIR}/devel/iniparser \
		libsmbclient.so:${PORTSDIR}/net/samba-libsmbclient \
		libssh.so.4:${PORTSDIR}/security/libssh \
		libneon.so:${PORTSDIR}/www/neon29

USES=		cmake:outsource iconv pkgconfig
USE_BZIP2=	yes
USE_SQLITE=	yes
CMAKE_ARGS+=	-DUNIT_TESTING=NO \
		-DMAN_INSTALL_DIR=${MANPREFIX}/man

USE_LDCONFIG=	yes

DOCSDIR=	${PREFIX}/share/doc/ocsync
ETCDIR=		${PREFIX}/etc/ocsync

OPTIONS_DEFINE=	DOCS

.include <bsd.port.options.mk>

.if ! ${PORT_OPTIONS:MDOCS}
BUILD_DEPENDS+=	asciidoc:${PORTSDIR}/textproc/asciidoc

post-patch:
	@${REINPLACE_CMD} -e 's/^add_subdirectory(doc)//' ${WRKSRC}/CMakeLists.txt
.endif

post-install:
.for i in ocsync.conf ocsync_exclude.conf
	@${MV} ${STAGEDIR}${ETCDIR}/$i ${STAGEDIR}${ETCDIR}/$i.sample
.endfor

.include <bsd.port.mk>