aboutsummaryrefslogtreecommitdiffstats
path: root/net/grive/Makefile
blob: 51459351a4027c020f0eed8ea428857570c17249 (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
# Created by: Key-Teck SIN <ktsin@acm.org>
# $FreeBSD$

PORTNAME=   grive
PORTVERSION=    0.3.0
PORTREVISION=   10
CATEGORIES= net

MAINTAINER= ktsin@acm.org
COMMENT=    Open source client for Google Drive

LICENSE=    GPLv2

LIB_DEPENDS=    libboost_filesystem.so:devel/boost-libs \
        libcurl.so:ftp/curl \
        libexpat.so:textproc/expat2 \
        libgcrypt.so:security/libgcrypt \
        libjson-c.so:devel/json-c \
        libyajl.so:devel/yajl

CONFLICTS_INSTALL=  grive2-[0-9]*

USE_GITHUB= yes
GH_ACCOUNT= Grive
GH_TAGNAME= 27817e8

USES=       cmake
CXXFLAGS+=  -I${LOCALBASE}/include

PLIST_FILES=    bin/grive man/man1/grive.1.gz

post-patch:
    @${REINPLACE_CMD} -e '/FIND_LIBRARY/s,json,&-c,' \
        ${WRKSRC}/cmake/Modules/FindJSONC.cmake
# Do not build Qt4-based frontend: it's buggy and quite useless anyway
    @${REINPLACE_CMD} -e '/ bgrive/d' ${WRKSRC}/CMakeLists.txt
# Allow to build with GCC 4.2
    @${REINPLACE_CMD} -e 's,log::,gr::&,g' ${WRKSRC}/grive/src/main.cc

.include <bsd.port.mk>