blob: ba6f8f3548e3cddd0cacbd571f60901f1dd6fb74 (
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
50
51
52
53
54
55
56
57
58
|
# Created by: Mathieu Arnold
# $FreeBSD$
PORTNAME= owncloudclient
PORTVERSION= 2.0.2
CATEGORIES= deskutils
MASTER_SITES= http://download.owncloud.com/desktop/stable/
MAINTAINER= yonas@fizk.net
COMMENT= OwnCloud Desktop Syncing Client
LICENSE= GPLv2
LIB_DEPENDS= libinotify.so:${PORTSDIR}/devel/libinotify \
libqt5keychain.so:${PORTSDIR}/security/qtkeychain-qt5
USES= cmake:outsource compiler:c++11-lib gmake iconv pkgconfig tar:xz
USE_QT5= buildtools_build concurrent core dbus gui linguist_build network \
qmake_build webkit xml
USE_OPENSSL= yes
USE_SQLITE= 3
CMAKE_ARGS= -DBUILD_WITH_QT4:BOOL=OFF \
-DCMAKE_INSTALL_MANDIR:STRING=man \
-DWITH_STACK_PROTECTOR:BOOL=OFF
USE_LDCONFIG= yes
INSTALLS_ICONS= yes
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= DEBUG DOCS
DOCS_BUILD_DEPENDS= sphinx-build:${PORTSDIR}/textproc/py-sphinx
DOCS_USE= tex=dvipsk:build,latex:build
DOCS_CMAKE_ON= -DWITH_DOC:BOOL=ON
DEBUG_CMAKE_ON= -DCMAKE_BUILD_TYPE:STRING=Debug
PLIST_SUB= VERSION=${PORTVERSION}
.include <bsd.port.options.mk>
.if ${OPSYS} != FreeBSD || ${OSVERSION} < 1000015
WITH_OPENSSL_PORT= yes
# CMake 3.3.x will use $PATH when looking for headers and libraries by default,
# and OpenSSL from base will end up being used. Make sure ${LOCALBASE} is
# preferred over $PATH.
CMAKE_ARGS+= -DCMAKE_PREFIX_PATH=${LOCALBASE}
.endif
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>
|