mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
Use pkg-message.in.
Install Make.* into ${GOROOT}/src so go packages can be used. Submitted by: wen@
This commit is contained in:
parent
6a6e6266e8
commit
0c5bb18988
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=265090
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= go
|
||||
PORTVERSION= 20101027
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= LOCAL/wen
|
||||
DISTNAME= go-${PORTVERSION}
|
||||
@ -19,6 +20,10 @@ BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \
|
||||
|
||||
ONLY_FOR_ARCHS= i386 amd64
|
||||
USE_GMAKE= yes
|
||||
GOMAKEDIR= lib/go/src
|
||||
SUB_FILES= pkg-message
|
||||
SUB_LIST+= GOOBJ=${GOOBJ} \
|
||||
ARCH=${GOARCH}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
@ -36,7 +41,8 @@ MAKE_ENV= GOROOT=${WRKSRC} \
|
||||
GOBIN=${GOBIN} \
|
||||
GOOS=freebsd
|
||||
PLIST_SUB+= ARCH=${GOARCH} \
|
||||
GOOBJ=${GOOBJ}
|
||||
GOOBJ=${GOOBJ} \
|
||||
GOMAKEDIR=${GOMAKEDIR}
|
||||
|
||||
pre-build:
|
||||
@${MKDIR} ${GOBIN}
|
||||
@ -59,24 +65,21 @@ do-build:
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@${CAT} ${PKGMESSAGE} | ${SED} \
|
||||
-e "s|%%PREFIX%%|${PREFIX}|g" \
|
||||
-e "s|%%ARCH%%|${GOARCH}|g" \
|
||||
-e "s|%%GOOBJ%%|${GOOBJ}|g"
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
do-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
${INSTALL} -d -m 0755 ${DOCSDIR}
|
||||
${CP} -R ${WRKSRC}/doc/ ${DOCSDIR}
|
||||
.endif
|
||||
${INSTALL} -d -m 0755 ${DATADIR}
|
||||
${INSTALL} -d -m 0755 ${PREFIX}/${GOMAKEDIR}
|
||||
${INSTALL} -d -m 0755 ${PREFIX}/lib/go/pkg
|
||||
${INSTALL} -m 0644 ${WRKSRC}/src/Make.common ${DATADIR}
|
||||
${INSTALL} -m 0644 ${WRKSRC}/src/Make.pkg ${DATADIR}
|
||||
${INSTALL} -m 0644 ${WRKSRC}/src/Make.cmd ${DATADIR}
|
||||
${INSTALL} -m 0644 ${WRKSRC}/src/Make.ccmd ${DATADIR}
|
||||
${INSTALL} -m 0644 ${WRKSRC}/src/Make.clib ${DATADIR}
|
||||
${INSTALL} -m 0644 ${WRKSRC}/src/Make.inc ${DATADIR}
|
||||
${INSTALL} -m 0644 ${WRKSRC}/src/Make.common ${PREFIX}/${GOMAKEDIR}
|
||||
${INSTALL} -m 0644 ${WRKSRC}/src/Make.pkg ${PREFIX}/${GOMAKEDIR}
|
||||
${INSTALL} -m 0644 ${WRKSRC}/src/Make.cmd ${PREFIX}/${GOMAKEDIR}
|
||||
${INSTALL} -m 0644 ${WRKSRC}/src/Make.ccmd ${PREFIX}/${GOMAKEDIR}
|
||||
${INSTALL} -m 0644 ${WRKSRC}/src/Make.clib ${PREFIX}/${GOMAKEDIR}
|
||||
${INSTALL} -m 0644 ${WRKSRC}/src/Make.inc ${PREFIX}/${GOMAKEDIR}
|
||||
${CP} -R ${WRKSRC}/pkg/* ${PREFIX}/lib/go/pkg/
|
||||
${CP} -R ${WRKDIR}/bin/* ${PREFIX}/bin/
|
||||
|
||||
|
@ -7,10 +7,6 @@
|
||||
GOARCH=%%ARCH%%
|
||||
GOROOT=%%PREFIX%%/lib/go
|
||||
|
||||
To build Go programs, you may include %%PREFIX%%/share/go/Make.pkg
|
||||
or %%PREFIX%%/share/go/Make.cmd in your build infrastructure
|
||||
(note: this requires gmake).
|
||||
|
||||
Your compiler is %%GOOBJ%%g and your linker is %%GOOBJ%%l.
|
||||
|
||||
For more information on programming in Go and for more
|
@ -246,13 +246,13 @@ lib/go/pkg/freebsd_%%ARCH%%/xml.a
|
||||
%%PORTDOCS%%%%DOCSDIR%%/video-001.png
|
||||
%%PORTDOCS%%%%DOCSDIR%%/video-002.png
|
||||
%%PORTDOCS%%%%DOCSDIR%%/video-003.png
|
||||
%%DATADIR%%/Make.cmd
|
||||
%%DATADIR%%/Make.pkg
|
||||
%%DATADIR%%/Make.common
|
||||
%%DATADIR%%/Make.ccmd
|
||||
%%DATADIR%%/Make.clib
|
||||
%%DATADIR%%/Make.inc
|
||||
@dirrm %%DATADIR%%
|
||||
%%GOMAKEDIR%%/Make.cmd
|
||||
%%GOMAKEDIR%%/Make.pkg
|
||||
%%GOMAKEDIR%%/Make.common
|
||||
%%GOMAKEDIR%%/Make.ccmd
|
||||
%%GOMAKEDIR%%/Make.clib
|
||||
%%GOMAKEDIR%%/Make.inc
|
||||
@dirrm %%GOMAKEDIR%%
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/talks/io2010
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/talks
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/progs
|
||||
|
Loading…
Reference in New Issue
Block a user