aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/mirall/Makefile
blob: d2178173b389c67662be954bc007d86ca94f3caa (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
# Created by: Mathieu Arnold
# $FreeBSD$

PORTNAME=   mirall
PORTVERSION=    1.6.2
PORTREVISION=   1
CATEGORIES= deskutils
MASTER_SITES=   http://download.owncloud.com/desktop/stable/

MAINTAINER= ports@FreeBSD.org
COMMENT=    The ownCloud Desktop Syncing Client

LICENSE=    GPLv2

LIB_DEPENDS=    libinotify.so:${PORTSDIR}/devel/libinotify \
        libqtkeychain.so:${PORTSDIR}/security/qtkeychain \
        libneon.so:${PORTSDIR}/www/neon29

USES=       cmake:outsource compiler:c++11-lang gmake pkgconfig tar:bzip2
USE_QT4=    corelib dbus gui network qtestlib sql-sqlite3 webkit xml \
        linguist_build moc_build qmake_build rcc_build uic_build
CMAKE_ENV=  INOTIFY_LIB="${LOCALBASE}/lib"
CMAKE_ARGS= -DCMAKE_INSTALL_MANDIR:STRING=${MANPREFIX}/man/ \
        -DBUILD_WITH_QT4:BOOL=ON
USE_LDCONFIG=   yes
INSTALLS_ICONS= yes

CONFLICTS=  owncloud-csync-[0-9]*

OPTIONS_DEFINE= DOCS

DOCS_BUILD_DEPENDS= sphinx-build:${PORTSDIR}/textproc/py-sphinx
DOCS_USE=       TEX=dvipsk:build,latex:build
DOCS_CMAKE_ON=      WITH_DOC=true
DOCS_ALL_TARGET=    all doc-html doc-pdf

.include <bsd.port.options.mk>

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

post-build:
    @(cd ${WRKSRC} && ${CP} -f sync-exclude.lst sync-exclude.lst.sample)

post-install:
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    (cd ${INSTALL_WRKSRC}/doc/latex && ${INSTALL_DATA} *.pdf \
        ${STAGEDIR}${DOCSDIR})
    @${MKDIR} ${STAGEDIR}${DOCSDIR}/html
    @(cd ${INSTALL_WRKSRC}/doc/html/unthemed && ${COPYTREE_SHARE} . \
        ${STAGEDIR}${DOCSDIR}/html)
.endif

.include <bsd.port.mk>