From nobody Mon May 16 08:40:32 2022 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 23C001AD756F for ; Mon, 16 May 2022 08:40:49 +0000 (UTC) (envelope-from freebsd-ports@dino.sk) Received: from mailhost.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4L1t4c0DkFz3k5Y for ; Mon, 16 May 2022 08:40:47 +0000 (UTC) (envelope-from freebsd-ports@dino.sk) Received: from gpdm.dino.sk (fw3.dino.sk [84.245.95.254]) (AUTH: LOGIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by mailhost.netlabit.sk with ESMTPSA; Mon, 16 May 2022 10:40:40 +0200 id 00DC4C5E.62820E08.000170ED Date: Mon, 16 May 2022 10:40:32 +0200 From: Milan Obuch To: "Pat Maddox" Cc: "Tatsuki Makino" , freebsd-ports@freebsd.org Subject: Re: How to override port Makefile to point to local directory? Message-ID: <20220516104032.6aac9448@gpdm.dino.sk> In-Reply-To: <0037487A-4778-4D37-9A12-BBE0E58F9CB4@patmaddox.com> References: <24d0482cd89dd98aa75fc9c89aa00201@bsdforge.com> <0037487A-4778-4D37-9A12-BBE0E58F9CB4@patmaddox.com> X-Mailer: Claws Mail 3.18.0git345 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4L1t4c0DkFz3k5Y X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd-ports@dino.sk designates 84.245.65.72 as permitted sender) smtp.mailfrom=freebsd-ports@dino.sk X-Spamd-Result: default: False [1.07 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[dino.sk]; NEURAL_HAM_LONG(-1.00)[-0.998]; NEURAL_SPAM_MEDIUM(0.89)[0.891]; NEURAL_SPAM_SHORT(0.48)[0.477]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; MLMMJ_DEST(0.00)[freebsd-ports]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:5578, ipnet:84.245.64.0/18, country:SK]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; FREEMAIL_CC(0.00)[hotmail.com,freebsd.org] X-ThisMailContainsUnwantedMimeParts: N On Sun, 15 May 2022 23:55:43 -0700 "Pat Maddox" wrote: > On 15 May 2022, at 23:25, Tatsuki Makino wrote: >=20 > > Hello. > > > > Pat Maddox wrote on 2022/05/16 15:08: =20 > >> I figure there=E2=80=99s gotta be some sort of `make SRCDIR=3D. instal= l` to=20 > >> bypass fetch & extract, but this will do for now. > >> =20 > > > > Is it a variable DISTDIR or PACKAGES? > > > > If you write the following in /etc/make.conf, you can use a > > different location only for certain port. > > > > .if !empty(.CURDIR:tA:M/home/you/DEV//port-im-developing) > > DISTDIR=3D /home/you/dir_for_src > > PACKAGES=3D /home/you/dir_for_put_pkg > > WRKDIRPREFIX=3D /tmp/wrkdir > > .endif > > > > Regards. =20 >=20 > That still downloads the zip file, but to a different directory. >=20 > The code for my application is in ~/dev/ports-mgmt/disport. >=20 > So instead of make trying to download a zip and extract it, I want to=20 > tell it to get the code from ~/dev/ports-mgmt/disport. >=20 > Pat >=20 Hi, maybe Pat wants Makefile targets do-fetch and do-extract, these are- *replacing* standard fetch and extract actions. I am using it for fetching some branch to test from local repository: do-fetch: @echo nada do-extract: @git -C ${GIT_DIR} worktree add -d ${WRKSRC} ${GIT_BRANCH} In this case, NO_CHECKSUM=3DYES is probably needed as well. Similarly, instead of git, you could use cp, tar or anything you like. Hope this helps... Regards, Milan