Take a look at the Makefile for the sysutils/cpuid port, which has just one
C file included in the ports source tree itself.

Philip Guenther


On Wed, Jun 29, 2022 at 3:53 PM Lyndon Nerenberg (VE7TFX/VE6BBM) <
lyn...@orthanc.ca> 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*?
>
> --lyndon
>
>

Reply via email to