On Wed, Jun 29, 2022 at 04:51:49PM -0700, Lyndon Nerenberg (VE7TFX/VE6BBM) 
wrote:
> We have a number of in-house utilities that we push out as packages.
> Right now these are built using the standard make framework, with
> a bunch of hand-crafted glue to build and sign the packages before
> pushing them to our internal distribution server.
> 
> I would really like to take advantage of <bsd.port.mk> to automate
> as much of the packing process as I can.  The problem is that port
> builds assume you're obtaining the program source from external
> distribution files, whereas I want to build right out of the port
> directory itself, i.e. have the program source live under
> /usr/ports/foo/bar/src/.
> 
> Has anyone come up with an idiomatic solution to this that doesn't
> involve surgery on /usr/share/mk/*port*?

have DISTFILES be empty, put your sources under FILESDIR
and a bit of glue to ln/mv them into WRKDIR since you got to have a WRKDIR
for ports.

Reply via email to