diff options
author | danfe <danfe@FreeBSD.org> | 2013-07-30 15:42:03 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2013-07-30 15:42:03 +0800 |
commit | 3681def0055536c5dca73439f54165b857dea9f1 (patch) | |
tree | fe8124313205d3118f1b39e2cfe189b2f296838e /net/grive | |
parent | d4a5d4fc6a40fb2ad768e980d558c6ccee4af486 (diff) | |
download | freebsd-ports-gnome-3681def0055536c5dca73439f54165b857dea9f1.tar.gz freebsd-ports-gnome-3681def0055536c5dca73439f54165b857dea9f1.tar.zst freebsd-ports-gnome-3681def0055536c5dca73439f54165b857dea9f1.zip |
- Contrary to what comment says, we do not need clang or GCC 4.6+ to build,
we just need to patch one source file a bit
- Remove opportunistic MAKE_JOBS_UNSAFE, let us see the failure log first
- Miscellaneous cleanups (fix header, drop MASTER_SITES and FETCH_ARGS)
Diffstat (limited to 'net/grive')
-rw-r--r-- | net/grive/Makefile | 32 |
1 files changed, 5 insertions, 27 deletions
diff --git a/net/grive/Makefile b/net/grive/Makefile index ac5b11af2e73..001a2c0bebb2 100644 --- a/net/grive/Makefile +++ b/net/grive/Makefile @@ -1,10 +1,9 @@ -# Created by: ktsin@acm.org +# Created by: Key-Teck SIN <ktsin@acm.org> # $FreeBSD$ PORTNAME= grive PORTVERSION= 0.2.0 CATEGORIES= net -MASTER_SITES= GH MAINTAINER= ktsin@acm.org COMMENT= Open source client for Google Drive @@ -27,35 +26,14 @@ GH_TAGNAME= v${PORTVERSION} USES= cmake CXXFLAGS+= -I${LOCALBASE}/include -MAKE_JOBS_UNSAFE= yes - -FETCH_ARGS= -pRr - PLIST_FILES= bin/grive MAN1= grive.1 -.include <bsd.port.pre.mk> - -# We need clang or GCC 4.6+ to build -# Piece of code copied from bsd.gecko.mk -.if ${CC} == "cc" && (exists(/usr/bin/clang) && ${OSVERSION} >= 900014) -CC= /usr/bin/clang -.endif -.if ${CXX} == "c++" && (exists(/usr/bin/clang++) && ${OSVERSION} >= 900014) -CXX= /usr/bin/clang++ -.endif -.if ${CPP} == "cpp" && (exists(/usr/bin/clang-cpp) && ${OSVERSION} >= 900045) -CPP= /usr/bin/clang-cpp -.endif -.if ${CC} != "cc" && ${CPP} == "cpp" -CPP= ${CC} -E -.endif -# fallback to gcc otherwise -.if ${CC} == "cc" || ${CXX} == "c++" -USE_GCC= 4.6+ -.endif +# Allow to build with GCC 4.2 +post-patch: + @${REINPLACE_CMD} -e 's,log::,gr::&,g' ${WRKSRC}/grive/src/main.cc post-install: @${STRIP_CMD} ${PREFIX}/bin/grive -.include <bsd.port.post.mk> +.include <bsd.port.mk> |