Cross Compiling of ports Makefiles.

Simon J. Gerraty sjg at juniper.net
Mon Dec 31 17:45:53 UTC 2012


>>One is to have a MAKEOBJDIRPREFIX like option, and redefine every
>>target’s DESTDIR ${makeobjDESTDIR} before running do-install.  Now i’ve
>>yet to complete this stage, but I believe this is the way to do it.
>
>Would it be sufficient to have an INSTALL_PREFIX and/or INSTALL_DESTDIR
>so that DESTDIR can be different during install ?
>[I was recently experimenting with something similar...]
>
>So how would that work?

I was assuming a sub-make involved:

install:
	${MAKE} DESTDIR=${INSTALL_DESTDIR} realinstall



More information about the freebsd-hackers mailing list