summaryrefslogtreecommitdiff
path: root/net/ocsync/Makefile
blob: 3fd3502def1e2f79d1e43bad4e8d1c05ab792203 (plain)
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
# $NetBSD: Makefile,v 1.4 2014/10/07 16:47:13 adam Exp $

DISTNAME=	ocsync-0.90.4
PKGREVISION=	3
CATEGORIES=	net
MASTER_SITES=	http://download.owncloud.com/desktop/stable/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	ryoon@NetBSD.org
HOMEPAGE=	http://owncloud.org/sync-clients/
COMMENT=	File synchronization program for OwnCloud
LICENSE=	gnu-gpl-v2

EXTRACT_USING=	bsdtar

USE_LANGUAGES=	c c++

USE_CMAKE=	yes
OBJDIR=		../build
CONFIGURE_DIRS=	${OBJDIR}
CMAKE_ARG_PATH=	../${DISTNAME}

EGDIR=		${PREFIX}/share/examples/ocsync
CONF_FILES+=	${EGDIR}/ocsync.conf.default ${PKG_SYSCONFDIR}/ocsync.conf
CONF_FILES+=	${EGDIR}/ocsync_exclude.conf.default \
		${PKG_SYSCONFDIR}/ocsync_exclude.conf

pre-configure:
	cd ${WRKSRC} && mkdir ${OBJDIR}
	cd ${WRKSRC}/config && ${CP} ocsync.conf ocsync.conf.default
	cd ${WRKSRC}/config && ${CP} ocsync_exclude.conf \
		ocsync_exclude.conf.default

.include "../../databases/sqlite3/buildlink3.mk"
.include "../../devel/iniparser/buildlink3.mk"
.include "../../security/libssh/buildlink3.mk"
.include "../../www/neon/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"