alternate configuration step with cmake rather than ./configure
Jeremy Lavergne
jeremy at lavergne.gotdns.org
Fri Oct 16 05:17:21 PDT 2009
>> I'm attempting to make a portfile for an application that uses cmake
>> for its configuration step, as opposed to the standard ./configure.
>> I'm running into a confusing error with regards to my alternate
>> configure{} though. My configure stage is this:
>>
>> configure {
>> exec cmake ${worksrcpath} \
>> -DWITH_CFITSIO=OFF \
>> -DWITH_FLI=OFF \
>> -DCMAKE_INSTALL_PREFIX=${destroot}${prefix} \
>> -DNOVA_INCLUDE_DIR=${prefix}/include \
>> -DNOVA_LIBRARIES=${prefix}/lib/libnova.a
>> }
>>
>> (adding the ${worksrcpath} behind cmake shouldn't be necessary, but
>> it
>> delays failure from the configure to the build stage)
>>
>> For whatever reason, my alternate configuration step appears to be
>> running in the directory:
>>
>> /opt/local/var/macports/sources/rsync.macports.org/release/ports/
>> devel/openssl
>> (?!?)
>
> You can set configure.dir explicitly or try an alternative solution
> like the one I adopted in the gis/qgis port.
You might also consider the cmake PortGroup.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4024 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20091016/577ca2b2/attachment.bin>
More information about the macports-dev
mailing list