Biuilding ports without Makefiles using different lang compiler

Tijl Coosemans tijl at FreeBSD.org
Fri Sep 27 08:05:05 UTC 2013


On Wed, 25 Sep 2013 23:50:41 +0200 Big Lebowski wrote:
> I am working on a new port, that's a software written in Go, which doesnt
> have a Makefile in sources, and I am wondering that's the right way to
> write it: I could use NO_BUILD and in pre-install cdw to relevant directory
> and invoke compiler libary and its target, like 'go build' (using variables
> of course from port Makefile) that would do the job, but somehow I feel
> there should be a better way.
> 
> I wonder should I write a Makefile for it and patch the sources to place it
> there, so I could just use ports mechanisms, or is there another way, or
> perhaps what I am describing above is the correct way of handling that?

If there's no makefile you can put build and install instructions in
a do-build and do-install target in the port makefile.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20130927/9e47b86b/attachment.sig>


More information about the freebsd-ports mailing list