From nobody Sat Oct 29 05:40:07 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 4MzpCc53bdz4h2Vq for ; Sat, 29 Oct 2022 05:40:12 +0000 (UTC) (envelope-from pat@patmaddox.com) Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) (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 4MzpCb63Mjz40Rs for ; Sat, 29 Oct 2022 05:40:11 +0000 (UTC) (envelope-from pat@patmaddox.com) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 253B73200907; Sat, 29 Oct 2022 01:40:10 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 29 Oct 2022 01:40:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=patmaddox.com; h=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=fm2; t=1667022009; x= 1667108409; bh=Rx267fz8LwPRsbdXCjo7gEddSf/bCNqaN/GCojCNznQ=; b=R AdEe0E9gqgQ2j1Lhvhr1Ut1lNNVRnIakKG/XyjSzXKXjh/GVueq+Be8FED95M26I PZk6/3VLKb/cCpGKUgR+VfQvfE89TMfD1fWH8FH/bHgrkvYyVhdfgWCTD8CP6zg/ gekyBZ7B8/wTR8vadThOGTVc0qgdk1AJnfpBEJtSPiV28gwFJ3++qrbj9sqsIDWa 9Db3jfAnKVSqNC/OHRDlViAqajdlknImaZmwwaT6UFF+fFLmuP8+YO7kptFQKH5b YOWnj3/6JxnRAF9qaNg72rj9Y+9s7+UY6+g/J7cWjH7HwmpfYJM4AJLjOwml/zDX OsAgn+n0ilv3deysU6cyg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id: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=fm3; t=1667022009; x=1667108409; bh=R x267fz8LwPRsbdXCjo7gEddSf/bCNqaN/GCojCNznQ=; b=OQNCeypw+/2OtAhI4 IkwolR+w/6Rsln4RXS9DgIzlrEit65aaQt1EURmvFEugExbGBPohOR8uw2swI+Z3 qF9d3sC6caBRHBVhZ/mXSAQx1OWwQnEFcP7iri7ATmaxKPQ0ggDkavYRaTddXz2U Ru403kNqHIvdgbnYtdKuxJfY5vKZgtJVOG+5Fe/crr/ycj/kk54B74qIrJThFwVJ X/klSrkzZeMO/eJTe6gGbalgM0sieLpO7evzZ5r6OZRvDJTFfyf0rjo03S+whK7M e0iw027hzx2zunwdm4NuC0RBdfx9UkiDfhLKjEvRZuZJqzhbxjAfITJ01HP6N/gq XuDsg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrtdejgdellecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffoffkjghfgggtgfesthekmh dtredtjeenucfhrhhomhepfdfrrghtucforgguughogidfuceophgrthesphgrthhmrggu ughogidrtghomheqnecuggftrfgrthhtvghrnhepffdufffgteeftdehvefggeduffduff fgteehffekleeufeefgffggefhieetueevnecuffhomhgrihhnpehgihhthhhusgdrtgho mhdpphhorhhtrdhmkhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehprghtsehprghtmhgrugguohigrdgtohhm X-ME-Proxy: Feedback-ID: i8b6c40f9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 29 Oct 2022 01:40:08 -0400 (EDT) From: "Pat Maddox" To: freebsd-ports@freebsd.org Subject: Re: How to override port Makefile to point to local directory? Date: Fri, 28 Oct 2022 22:40:07 -0700 X-Mailer: MailMate (1.13.2r5673) Message-ID: <951EBD83-484F-425E-821A-EFFACA2AD3B3@patmaddox.com> In-Reply-To: References: 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: 8bit X-Rspamd-Queue-Id: 4MzpCb63Mjz40Rs X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=patmaddox.com header.s=fm2 header.b="R AdEe0E"; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=OQNCeypw; dmarc=none; spf=pass (mx1.freebsd.org: domain of pat@patmaddox.com designates 64.147.123.20 as permitted sender) smtp.mailfrom=pat@patmaddox.com X-Spamd-Result: default: False [-3.52 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.92)[-0.922]; R_DKIM_ALLOW(-0.20)[patmaddox.com:s=fm2,messagingengine.com:s=fm3]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.20]; RCVD_IN_DNSWL_LOW(-0.10)[64.147.123.20:from]; MIME_GOOD(-0.10)[text/plain]; FREEFALL_USER(0.00)[pat]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[patmaddox.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[patmaddox.com:+,messagingengine.com:+]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_NONE(0.00)[]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:29838, ipnet:64.147.123.0/24, country:US]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N On 15 May 2022, at 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. > > Pat For anyone else interested in this, I finally came up with a really clean solution: make WRKSRC=$(pwd) USE_GITHUB=no DISTFILES="" -C port It assumes a really simple USE_GITHUB Makefile (e.g. below). Here’s the example repo: https://github.com/patmaddox/simple_port_example Pat PORTNAME= simple-port-example CATEGORIES= devel DISTVERSION= 1.0.0 DISTVERSIONPREFIX= v MAINTAINER= pat@patmaddox.com USE_GITHUB= yes GH_ACCOUNT= patmaddox GH_PROJECT= simple_port_example .include