Lines 16-24
Link Here
|
16 |
GH_ACCOUNT= ipfs |
16 |
GH_ACCOUNT= ipfs |
17 |
GH_PROJECT= go-ipfs |
17 |
GH_PROJECT= go-ipfs |
18 |
|
18 |
|
19 |
ONLY_FOR_ARCHS= amd64 |
|
|
20 |
ONLY_FOR_ARCHS_REASON= Does not build on i386 due to a dependency |
21 |
|
22 |
MAKE_ENV+= GOPATH=${WRKSRC} |
19 |
MAKE_ENV+= GOPATH=${WRKSRC} |
23 |
|
20 |
|
24 |
PLIST_FILES= bin/${PORTNAME} |
21 |
PLIST_FILES= bin/${PORTNAME} |
Lines 27-32
Link Here
|
27 |
|
24 |
|
28 |
STRIP= # stripping can break go binaries |
25 |
STRIP= # stripping can break go binaries |
29 |
|
26 |
|
|
|
27 |
.include <bsd.port.pre.mk> |
28 |
|
29 |
.if ${ARCH} == i386 |
30 |
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-32bit |
31 |
.endif |
32 |
|
30 |
# Prepare for possible extra modules in future |
33 |
# Prepare for possible extra modules in future |
31 |
post-extract: |
34 |
post-extract: |
32 |
@${MKDIR} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT} |
35 |
@${MKDIR} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT} |
Lines 41-44
Link Here
|
41 |
do-install: |
44 |
do-install: |
42 |
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/cmd/ipfs/ipfs ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
45 |
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/cmd/ipfs/ipfs ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
43 |
|
46 |
|
44 |
.include <bsd.port.mk> |
47 |
.include <bsd.port.post.mk> |