Re: portmaster not replacing %var% in final pkg-msg
On Sun, 30 May 2010, Eitan Adler wrote: $cd lang/go portmaster . -- To build Go programs for FreeBSD, you'll want to set up your environment properly. The following environment variables should be set: ... GOOS=freebsd GOARCH=386 GOROOT=/usr/local/lib/go This works because of the following sed-fu in lang/go/Makefile: post-install: @${CAT} ${PKGMESSAGE} | ${SED} \ -e s|%%PREFIX%%|${PREFIX}|g \ -e s|%%ARCH%%|${GOARCH}|g \ -e s|%%GOOBJ%%|${GOOBJ}|g === pkg-message for go-20100413 [ .. ] GOARCH=%%ARCH%% GOROOT=%%PREFIX%%/lib/go It's probably preferable for lang/go to utilize SUB_FILES and SUB_LIST instead of using ${SED} to manually expand VAR=VALUE pairs in post-install. For context, see: http://www.freebsd.org/doc/en/books/porters-handbook/book.html#USING-SUB-FILES -- Sahil Tandon sa...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
portmaster not replacing %var% in final pkg-msg
$cd lang/go portmaster . -- To build Go programs for FreeBSD, you'll want to set up your environment properly. The following environment variables should be set: ... GOOS=freebsd GOARCH=386 GOROOT=/usr/local/lib/go === Registering installation for go-20100413 === Cleaning for go-20100413 === pkg-message for go-20100413 -- To build Go programs for FreeBSD, you'll want to set up your environment properly. The following environment variables should be set: GOOS=freebsd 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. === Installation of lang/go (go-20100413) complete -- Eitan Adler ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org