alternate configuration step with cmake rather than ./configure
vincent habchi
vince at macports.org
Fri Oct 16 05:10:04 PDT 2009
Jonathan,
> 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.
Cheers,
Vincent
More information about the macports-dev
mailing list