Sync Mk with ports
[dports.git] / net / grive / Makefile
1 # Created by: Key-Teck SIN <ktsin@acm.org>
2 # $FreeBSD$
3
4 PORTNAME=       grive
5 PORTVERSION=    0.3.0
6 PORTREVISION=   10
7 CATEGORIES=     net
8
9 MAINTAINER=     ktsin@acm.org
10 COMMENT=        Open source client for Google Drive
11
12 LICENSE=        GPLv2
13
14 DEPRECATED=     Unmaintained by upstream, use net/grive2 instead
15 EXPIRATION_DATE=        2018-02-16
16
17 LIB_DEPENDS=    libboost_filesystem.so:devel/boost-libs \
18                 libcurl.so:ftp/curl \
19                 libexpat.so:textproc/expat2 \
20                 libgcrypt.so:security/libgcrypt \
21                 libjson-c.so:devel/json-c \
22                 libyajl.so:devel/yajl
23
24 CONFLICTS_INSTALL=      grive2-[0-9]*
25
26 USE_GITHUB=     yes
27 GH_ACCOUNT=     Grive
28 GH_TAGNAME=     27817e8
29
30 USES=           cmake
31 CXXFLAGS+=      -I${LOCALBASE}/include
32
33 PLIST_FILES=    bin/grive man/man1/grive.1.gz
34
35 post-patch:
36         @${REINPLACE_CMD} -e '/FIND_LIBRARY/s,json,&-c,' \
37                 ${WRKSRC}/cmake/Modules/FindJSONC.cmake
38 # Do not build Qt4-based frontend: it's buggy and quite useless anyway
39         @${REINPLACE_CMD} -e '/ bgrive/d' ${WRKSRC}/CMakeLists.txt
40 # Allow to build with GCC 4.2
41         @${REINPLACE_CMD} -e 's,log::,gr::&,g' ${WRKSRC}/grive/src/main.cc
42
43 .include <bsd.port.mk>