Lines 1-23
Link Here
|
1 |
# $FreeBSD: head/sysutils/ipfs-go/Makefile 420796 2016-08-24 14:50:17Z mat $ |
1 |
# $FreeBSD$ |
2 |
|
2 |
|
3 |
PORTNAME= ipfs-go |
3 |
PORTNAME= ipfs-go |
4 |
PORTVERSION= 0.3.10 |
4 |
PORTVERSION= 0.4.7 |
5 |
DISTVERSIONPREFIX= v |
5 |
DISTVERSIONPREFIX= v |
6 |
CATEGORIES= sysutils |
6 |
CATEGORIES= sysutils |
7 |
|
7 |
|
8 |
MAINTAINER= wg@FreeBSD.org |
8 |
MAINTAINER= jhixson@gmail.com |
9 |
COMMENT= IPFS implementation in Go |
9 |
COMMENT= IPFS implementation in Go |
10 |
|
10 |
|
11 |
BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go |
11 |
LICENSE= MIT |
12 |
|
12 |
|
13 |
BROKEN_i386= does not build |
13 |
BUILD_DEPENDS= go>=1.7:lang/go |
14 |
|
14 |
|
15 |
USES= gmake |
15 |
ONLY_FOR_ARCHS= amd64 |
|
|
16 |
|
17 |
USES= compiler go |
16 |
|
18 |
|
17 |
USE_GITHUB= yes |
19 |
USE_GITHUB= yes |
18 |
GH_ACCOUNT= ipfs |
20 |
GH_ACCOUNT= jhixson74 |
19 |
GH_PROJECT= go-ipfs |
|
|
20 |
GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${GH_PROJECT} |
21 |
|
21 |
|
22 |
MAKE_ENV+= GOPATH=${WRKSRC} |
22 |
MAKE_ENV+= GOPATH=${WRKSRC} |
23 |
|
23 |
|
Lines 27-46
Link Here
|
27 |
|
27 |
|
28 |
STRIP= # stripping can break go binaries |
28 |
STRIP= # stripping can break go binaries |
29 |
|
29 |
|
30 |
.include <bsd.port.pre.mk> |
|
|
31 |
|
32 |
.if ${ARCH} == i386 |
33 |
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-32bit |
34 |
.endif |
35 |
|
36 |
post-patch: |
37 |
${GREP} -lR github.com/ipfs/go-ipfs/vendor/QmQg1J6vikuXF9oDvm4wpdeAUvvkVEKW1EYDw9HhTMnP2b/go-log ${WRKSRC} 2>/dev/null | \ |
38 |
while read gosrc; do sed -i.bak 's#github.com/ipfs/go-ipfs/vendor/##g' $$gosrc; done |
39 |
|
40 |
do-build: |
30 |
do-build: |
41 |
cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} build |
31 |
cd ${WRKSRC}/src/github.com/ipfs/go-ipfs/cmd/ipfs; \ |
|
|
32 |
${SETENV} ${BUILD_ENV} ${MAKE_ENV} go build -v -x \ |
33 |
-ldflags "-X main.GitDescribe=${DISTVERSIONFULL}" -o bin/${PORTNAME} |
42 |
|
34 |
|
43 |
do-install: |
35 |
do-install: |
44 |
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/cmd/ipfs/ipfs ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
36 |
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/ipfs/go-ipfs/cmd/ipfs/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
|
|
37 |
|
38 |
.include <bsd.port.pre.mk> |
39 |
|
40 |
.if ${COMPILER_TYPE} == clang |
41 |
BUILD_ENV= CC=clang |
42 |
.endif |
45 |
|
43 |
|
46 |
.include <bsd.port.post.mk> |
44 |
.include <bsd.port.post.mk> |