How to descend into the extract to build in a subdir

Paul Schmehl pschmehl_lists at tx.rr.com
Tue Nov 27 20:46:27 UTC 2012


--On November 27, 2012 2:24:12 PM -0600 Paul Schmehl 
<pschmehl_lists at tx.rr.com> 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.)

Never mind.  I figured it outl

.if ${PORT_OPTIONS:MBROCCOLI}
pre-configure:
        (cd ${WRKSRC}/aux/broccoli && ./configure)
pre-build:
        (cd ${WRKSRC}/aux/broccoli && ${MAKE})
.endif

-- 
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
*******************************************
"It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead." Thomas Jefferson
"There are some ideas so wrong that only a very
intelligent person could believe in them." George Orwell



More information about the freebsd-ports mailing list