How to descend into the extract to build in a subdir

Olli Hauer ohauer at FreeBSD.org
Tue Nov 27 20:40:20 UTC 2012


On 2012-11-27 21:24, Paul Schmehl wrote:
> I'm working on a port that requires a separate ./configure and ./make to build libraries before you build the main source.  How is this done in ports?
> 
> I figure you have to do something in pre-build:, but I'm not sure exactly what.
> (cd ${WRKSRC}/subdir && ${MAKE}) causes make to fail entirely.  I'm having trouble finding a comparable example in ports and there doesn't seem to be anything about it in the porters handbook (that I have found.)
> 

Hi Paul,

you can overwrite also the whole build part with a do-build: target

For example the devel/apr1 port has to build apr before apr-util.

Maybe you can show your current Makefile

--
Regards,
olli


More information about the freebsd-ports mailing list