From nobody Mon May 16 06:08:31 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 D18831AE1830 for ; Mon, 16 May 2022 06:08:34 +0000 (UTC) (envelope-from pat@patmaddox.com) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4L1phy25Bvz4rq9 for ; Mon, 16 May 2022 06:08:34 +0000 (UTC) (envelope-from pat@patmaddox.com) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 392E75C00E2; Mon, 16 May 2022 02:08:34 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 16 May 2022 02:08:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=patmaddox.com; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1652681314; x= 1652767714; bh=HvkpuerIPA7lnVJ2thTSL9ezk2faEheEWH42YL3HA0g=; b=l gEQnsHQ5T+dHpZoIXaBuIqKLAhsAPxUdqLxCqzg1gRIe1w9IXnE99jRsR+ElP3Yf gxGkkMMp+iCZ5wsjdgkufO8brR8JcLA8xuqVnvp/5zK6Wfp7PbRBp781WRBzHnjq KIvPOHJ5UNl9Q869kK8JGjCOAsRC4UELN5eXPt6S4mMa01CGwJKWDBMojjbN6WF+ 8nURho+n6hC0faD5h1XTwaaYl28PFOS5aYRAYo2KSUEKRKqgH6LLEEkB05jY2x7V VRlLRN1cbzC5PQxak+MUiZsbbEKA+rMXCtuxs1ggVe+miPCCgfHZO3XSaqExJK2W D+dQ9Yu+jfvbpqMywHn1g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1652681314; x=1652767714; bh=HvkpuerIPA7ln VJ2thTSL9ezk2faEheEWH42YL3HA0g=; b=jJrO3B0etlTZgPj4MYw68l4CRdhNj mqSOImkLDWv3kzegWX0fTNDvtxuQOGSzNT1kvKvpY4aULhcnkvslPLojSKciQMgi tiZ8M/j188KqHcuat6xEsi6NiSlJz8hkUH3Pb2zo1NQAOvoVol2zGRaWiW9LAZO8 xf4bs0mK4tWXsj5Br0hho8HP+84WNX/3fhArMazpMESihIYOjq6ff0sqheKvcuH8 oBQIRwt7gD61V1+PqqZKrcUs0yHZUrZJTSeS5Je4CQ745SulD/aweDXtbrAaKgs6 TwyOwJ+9qXVE5n7uLgn+ebDDnP0mzXVTaBeqcBVmv3aYa1kBJNFtv0PHg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrheeggddutdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffoffkjghfgggtgfesth hqmhdtredtjeenucfhrhhomhepfdfrrghtucforgguughogidfuceophgrthesphgrthhm rgguughogidrtghomheqnecuggftrfgrthhtvghrnhepffeigfduffeuffdtffeuieegje eghfevfeekhedtjeevhfeujefghfektdeludejnecuffhomhgrihhnpehgihhthhhusgdr tghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hprghtsehprghtmhgrugguohigrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 16 May 2022 02:08:33 -0400 (EDT) From: "Pat Maddox" To: Chris Cc: freebsd-ports@freebsd.org Subject: Re: How to override port Makefile to point to local directory? Date: Sun, 15 May 2022 23:08:31 -0700 X-Mailer: MailMate (1.13.2r5673) Message-ID: In-Reply-To: References: <24d0482cd89dd98aa75fc9c89aa00201@bsdforge.com> 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"; format=flowed Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4L1phy25Bvz4rq9 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=patmaddox.com header.s=fm3 header.b="l gEQnsH"; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=jJrO3B0e; dmarc=none; spf=pass (mx1.freebsd.org: domain of pat@patmaddox.com designates 66.111.4.27 as permitted sender) smtp.mailfrom=pat@patmaddox.com X-Spamd-Result: default: False [-3.60 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[patmaddox.com:s=fm3,messagingengine.com:s=fm1]; FREEFALL_USER(0.00)[pat]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.27:c]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[patmaddox.com]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[patmaddox.com:+,messagingengine.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-ports]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.27:from] X-ThisMailContainsUnwantedMimeParts: N On 15 May 2022, at 22:28, Pat Maddox wrote: > On 15 May 2022, at 20:49, Chris wrote: > >> On 2022-05-15 20:29, Pat Maddox wrote: >>> I am writing software that I would eventually like to install on = >>> FreeBSD. I'm >>> currently stuck trying to write a Makefile that will point to my = >>> local git dir, so >>> I can build and install it while I'm developing. All of the finished = >>> Makefiles >>> reference tar packages, which makes sense. But when I'm actively = >>> developing, I >>> don't want to commit the code, push it, have it built, update the = >>> makefile with >>> the commit, and make. >>> >>> Does anyone know of a way to override options to a port's Makefile = >>> to point to a >>> local directory on disk? I want to run "sudo make install" and "make = >>> package" from >>> my development directory, using the same Makefile that would be in = >>> the ports tree. >> You can perform make out of tree build/installs w/o issue. The ports = >> infrastructure >> will post a couple of warnings. But nothing to stop you from = >> development. I do it out >> of ~/DEV//port-im-developing all the time. >> >> HTH >> >> Chris >>> >>> Pat > > Cool, how do I do that? > > Here=E2=80=99s the Makefile in my project directory: = > https://gist.github.com/patmaddox/d5d8a0e0df656072749bf18f7f634ae9 > > When I run `make install`, it downloads the zip from GitHub. That = > makes sense, because that=E2=80=99s what it=E2=80=99s configured to do,= and I = > haven=E2=80=99t passed in any options to find the source elsewhere. > > I don=E2=80=99t know how to tell make not to fetch & extract, because I= = > already have the source locally. > > Pat Well I wrote a script that generates the folder structure and zip that = make expects, and moves it into place: = https://gist.github.com/patmaddox/d5d8a0e0df656072749bf18f7f634ae9#file-b= uild-sh I figure there=E2=80=99s gotta be some sort of `make SRCDIR=3D. install` = to = bypass fetch & extract, but this will do for now. Pat