1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00
freebsd-ports/sysutils/ipfs-go/Makefile
2017-10-12 09:06:17 +00:00

45 lines
921 B
Makefile

# $FreeBSD$
PORTNAME= ipfs-go
PORTVERSION= 0.4.7
DISTVERSIONPREFIX= v
CATEGORIES= sysutils
MAINTAINER= jhixson@gmail.com
COMMENT= IPFS implementation in Go
LICENSE= MIT
BUILD_DEPENDS= go>=1.7:lang/go
ONLY_FOR_ARCHS= amd64
USES= compiler go
USE_GITHUB= yes
GH_ACCOUNT= jhixson74
MAKE_ENV+= GOPATH=${WRKSRC}
PLIST_FILES= bin/${PORTNAME}
USE_RC_SUBR= ${PORTNAME}
do-build:
cd ${WRKSRC}/src/github.com/ipfs/go-ipfs/cmd/ipfs; \
${SETENV} ${BUILD_ENV} ${MAKE_ENV} go build -v -x \
-ldflags "-X main.GitDescribe=${DISTVERSIONFULL}" -o bin/${PORTNAME}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/ipfs/go-ipfs/cmd/ipfs/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.pre.mk>
# golang assumes that if clang is in use, it is called "clang" and not "cc". If
# it's called "cc", go fails.
.if ${COMPILER_TYPE} == clang
BUILD_ENV= CC=clang
.endif
.include <bsd.port.post.mk>