freebsd-ports/net/grive/Makefile
Mathieu Arnold 9d4e763ba0 Update ports in the n* categories to not use GH_COMMIT.
With minor cleanups to make things simpler.

With hat:	portmgr
Sponsored by:	Absolight
2015-05-07 17:26:05 +00:00

38 lines
992 B
Makefile

# Created by: Key-Teck SIN <ktsin@acm.org>
# $FreeBSD$
PORTNAME= grive
PORTVERSION= 0.3.0
PORTREVISION= 3
CATEGORIES= net
MAINTAINER= ktsin@acm.org
COMMENT= Open source client for Google Drive
LICENSE= GPLv2
LIB_DEPENDS= libboost_filesystem.so:${PORTSDIR}/devel/boost-libs \
libcurl.so:${PORTSDIR}/ftp/curl \
libexpat.so:${PORTSDIR}/textproc/expat2 \
libgcrypt.so:${PORTSDIR}/security/libgcrypt \
libjson-c.so:${PORTSDIR}/devel/json-c \
libyajl.so:${PORTSDIR}/devel/yajl
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>