aboutsummaryrefslogtreecommitdiff
path: root/deskutils/owncloudclient/Makefile
blob: 15a033c33f44f68c448262b8934866a4f430d000 (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
49
PORTNAME=	owncloudclient
DISTVERSION=	2.8.2
DISTVERSIONSUFFIX=	.4246
PORTREVISION=	4
CATEGORIES=	deskutils
MASTER_SITES=	https://download.owncloud.com/desktop/ownCloud/stable/${DISTVERSION}${DISTVERSIONSUFFIX}/source/
DISTNAME=	ownCloud-${DISTVERSION}${DISTVERSIONSUFFIX}

PATCH_SITES=	https://github.com/owncloud/client/commit/
PATCHFILES=	ff43c9394b45dd78106069ba89ae92f25abba158.patch:-p1

MAINTAINER=	daniel@morante.net
COMMENT=	OwnCloud Desktop Syncing Client
WWW=		https://github.com/owncloud/client

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libinotify.so:devel/libinotify \
		libqt5keychain.so:security/qtkeychain@qt5

USES=		cmake:noninja compiler:c++11-lib desktop-file-utils gmake \
		iconv kde:5 localbase:ldflags pkgconfig qt:5 shared-mime-info \
		sqlite tar:xz
USE_KDE=	completion config coreaddons jobwidgets kio service \
		widgetsaddons windowsystem \
		ecm:build
USE_LDCONFIG=	yes
USE_QT=		concurrent core dbus gui network sql widgets xml \
		buildtools:build linguist:build qmake:build

CMAKE_ARGS=	-DCMAKE_INSTALL_MANDIR:STRING=man \
		-DSYSCONF_INSTALL_DIR="${PREFIX}/etc"
CMAKE_OFF=	BUILD_WITH_QT4 WITH_DOC WITH_STACK_PROTECTOR

PLIST_SUB=	VERSION=${PORTVERSION}

OPTIONS_DEFINE=		DEBUG

DEBUG_CMAKE_ON=		-DCMAKE_BUILD_TYPE:STRING=Debug

post-patch:
	@${REINPLACE_CMD} -e \
		's|.lst |.lst.sample |' ${WRKSRC}/CMakeLists.txt

pre-configure:
	@cd ${WRKSRC} && ${CP} -f sync-exclude.lst sync-exclude.lst.sample

.include <bsd.port.mk>