patching a build dependency

Ion-Mihai Tetcu itetcu at people.tecnik93.com
Thu Oct 13 03:51:12 PDT 2005


On Thu, 13 Oct 2005 17:16:37 +0800
"Mars G. Miro" <marsgmiro at gmail.com> wrote:

> Hi porters!
> 
>  I'm working on a port that has another port as its build dependency.
> Let's say this is port X and the dependency is port Z. When I'm
> building port X, I need to patch something in port Z, however I don't
> need to patch port Z if i'm only building port Z. Is this at all
> possible to set this in port X's Makefile? or should I do this in port
> Z, then perhaps define a variable somewhere to patch it if i'm
> building port X?

You could do it both ways (with some work) but the second one is the
right one IMO; if the patch changes something significant you should
probably do a slave port for the X(Z) case and change the PKGNAMESUFFIX



-- 
IOnut
Unregistered ;) FreeBSD "user"




More information about the freebsd-ports mailing list