From owner-freebsd-ports@freebsd.org Sun Mar 14 11:40:57 2021 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B427657C7E5 for ; Sun, 14 Mar 2021 11:40:57 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DyyL14g0Tz3Qks for ; Sun, 14 Mar 2021 11:40:57 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 8E127E199 for ; Sun, 14 Mar 2021 11:40:57 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-ej1-f53.google.com with SMTP id r17so61563908ejy.13 for ; Sun, 14 Mar 2021 04:40:57 -0700 (PDT) X-Gm-Message-State: AOAM531wiRSC+xJfoQ0cEdFdfc570znI+hjpSuAq/4G7rqFUu89enVIN 8PDKG3XoojieK9tctMBkK7tQLRtrzLAHGrYG80c= X-Google-Smtp-Source: ABdhPJzQNNaLjJITXE6LJ1Jmqax0Jn8dDKqrLbWf4FGI4qONYq0V48l7jMlsfDSGeOSTusG9HyiNofB7Ya0XfJUQivU= X-Received: by 2002:a17:906:6044:: with SMTP id p4mr18421647ejj.82.1615722056601; Sun, 14 Mar 2021 04:40:56 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Nuno Teixeira Date: Sun, 14 Mar 2021 11:40:45 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: passing Makefile targets to a go port To: FreeBSD Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2021 11:40:57 -0000 It seams that GO_BUILDFLAGS is the way to go to add additional targets but I couldn't found any examples and I don't know the correct syntax to use Nuno Teixeira escreveu no dia domingo, 14/03/2021 =C3=A0(s) 11:37: > GO_BUILDFLAGS > > Additional build arguments to be passed to go build. > > Nuno Teixeira escreveu no dia domingo, 14/03/2021 > =C3=A0(s) 11:30: > >> Hello, >> >> I'm working on updating security/gopass. >> >> New version added a gopass.1 man file but it is needed to run "gmake man= " >> in WRKSRC. >> How do I pass "gmake man" to go port Makefile? >> >> In the other hand, this port uses a: >> --- >> post-build: >> .for SHELL in bash fish zsh >> ${GO_WRKDIR_BIN}/${PORTNAME} completion ${SHELL} > >> ${WRKSRC}/${SHELL} >> .endfor >> --- >> to create completion files, and it can be accomplished with "gmake >> completion" at WRKSRC. >> >> It was cool that it is a way to add "completion" and "man" targets to >> gopass port. >> >> gopass Makefile >> >> Cheers, >> Nuno Teixeira >> >