Index: www/gohugo/Makefile =================================================================== --- www/gohugo/Makefile +++ www/gohugo/Makefile @@ -106,9 +106,6 @@ -X github.com/gohugoio/hugo/hugolib.CommitHash=${COMMIT_ID}" \ ${BUILD_TAGS} -SOURCE_DATE_EPOCH_CMD= date -r $$(grep TIMESTAMP ${DISTINFO_FILE} | ${SED} -e 's/[^0-9]//g') '+%FT%TZ%z' -COMMIT_ID= 253e5fdc699fe915305c3f685843dcd45f05b3c9 - OPTIONS_DEFINE= MANPAGES EXTENDED OPTIONS_DEFAULT= MANPAGES EXTENDED OPTIONS_SUB= yes @@ -127,6 +124,12 @@ hugo-new-site.1 hugo-new-theme.1 hugo-new.1 hugo-server.1 \ hugo-version.1 hugo.1 +# bsd.port.pre.mk is needed to get DISTINFO_FILE in scope for the shell command evaluation by go.mk +.include + +SOURCE_DATE_EPOCH_CMD= date -r $$(grep TIMESTAMP ${DISTINFO_FILE} | ${SED} -e 's/[^0-9]//g') '+%FT%TZ%z' +COMMIT_ID= 253e5fdc699fe915305c3f685843dcd45f05b3c9 + do-build-MANPAGES-on: @cd ${GO_WRKSRC} && ${GO_WRKDIR_BIN}/${PORTNAME} gen man --dir man/man1/ @@ -135,4 +138,4 @@ ${INSTALL_MAN} ${WRKSRC}/man/man1/$i ${STAGEDIR}/${PREFIX}/man/man1 .endfor -.include +.include