On Jan 13, 2010, at 14:49, Joshua Root wrote:
> On 2010-1-14 06:48 , Cristiano Fontana wrote:
>
>> What I am trying is to execute their configure script through port so I
>> defined the following phases:
>>
>> build {
>> catch { exec /bin/sh -c "cd ${worksrcpath}; ${worksrcpath}/Configure
>> -build -d -f ${worksrcpath}/config.sh" }
>> }
>>
>> destroot {
>> catch { exec /bin/sh -c "cd ${worksrcpath}; ${worksrcpath}/Configure
>> -install" }
>> }
>
> You should use the 'system' procedure to run shell commands. Like so:
>
> build {
> system "cd ${worksrcpath} && ./Configure -build -d -f config.sh"
> }
>
> destroot {
> system "cd ${worksrcpath} && ./Configure -install" }
> }
>
> You could also achieve the same effect by setting build.cmd, build.args,
> build.target, etc. as needed, but this is so different to a standard
> autotools build that that is probably the messier route.
Personally, I would highly recommend trying to use build.cmd, build.args, etc,
instead of overriding the phases.
_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev