2013-07-30 07:42:03 +00:00
|
|
|
# Created by: Key-Teck SIN <ktsin@acm.org>
|
2013-05-24 10:16:58 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= grive
|
2013-11-29 14:19:08 +00:00
|
|
|
PORTVERSION= 0.3.0
|
2014-02-07 11:44:08 +00:00
|
|
|
PORTREVISION= 1
|
2013-05-24 10:16:58 +00:00
|
|
|
CATEGORIES= net
|
|
|
|
|
|
|
|
MAINTAINER= ktsin@acm.org
|
|
|
|
COMMENT= Open source client for Google Drive
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-10-21 12:34:44 +00:00
|
|
|
LIB_DEPENDS= libboost_filesystem.so:${PORTSDIR}/devel/boost-libs \
|
|
|
|
libcurl.so:${PORTSDIR}/ftp/curl \
|
|
|
|
libexpat.so:${PORTSDIR}/textproc/expat2 \
|
|
|
|
libgcrypt.so:${PORTSDIR}/security/libgcrypt \
|
2013-11-29 14:19:08 +00:00
|
|
|
libjson.so:${PORTSDIR}/devel/json-c \
|
|
|
|
libyajl.so:${PORTSDIR}/devel/yajl
|
2013-05-24 10:16:58 +00:00
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= Grive
|
|
|
|
GH_PROJECT= ${PORTNAME}
|
2013-11-29 14:19:08 +00:00
|
|
|
GH_COMMIT= 27817e8
|
|
|
|
GH_TAGNAME= ${GH_COMMIT}
|
2013-05-24 10:16:58 +00:00
|
|
|
|
|
|
|
USES= cmake
|
|
|
|
CXXFLAGS+= -I${LOCALBASE}/include
|
|
|
|
|
2013-10-21 12:34:44 +00:00
|
|
|
PLIST_FILES= bin/grive man/man1/grive.1.gz
|
2013-05-24 10:16:58 +00:00
|
|
|
|
2013-07-30 07:42:03 +00:00
|
|
|
post-patch:
|
2013-11-29 14:19:08 +00:00
|
|
|
@${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
|
2013-07-30 07:42:03 +00:00
|
|
|
@${REINPLACE_CMD} -e 's,log::,gr::&,g' ${WRKSRC}/grive/src/main.cc
|
2013-05-24 10:16:58 +00:00
|
|
|
|
2013-07-30 07:42:03 +00:00
|
|
|
.include <bsd.port.mk>
|