Portfile redaction question
Toby Peterson
toby at macports.org
Thu Sep 24 10:34:15 PDT 2009
On Thu, Sep 24, 2009 at 09:51, vincent habchi <vince at macports.org> wrote:
> Hi there,
>
> for an upcoming port (qgis), I need to tweak the build process. The building
> process unfolds this way: extract, create a build directory at the base of
> the extract tree, cd into it and call "cmake ..".
>
> So I wrote this:
>
> post-extract {
> system "cd ${worksrcpath} && mkdir build"
> worksrcdir ${worksrcdir}/build
> }
>
> It works like a charm for a standard monolithic install (port install). But
> if I do it in two phases (e.g. port configure then port build), it fails,
> because the post-extract block is not executed twice, so ${worksrcdir} value
> is wrong during port build.
>
> Is there any elegant way to solve this?
Probably want to do something like:
configure.dir ${worksrcpath}/build
instead of setting worksrcdir
- Toby
More information about the macports-dev
mailing list