alternate configuration step with cmake rather than ./configure
Jonathan Tomshine
jtomshine at gmail.com
Fri Oct 16 07:49:30 PDT 2009
Thanks to all who replied. I knew that this must have been addressed
before, and you pointed me in the right direction. The port now
configures, builds, and dest-roots okay. It is still having some
strange problem activating, but that's a different issue that I'll
deal with later.
-Jon
On Fri, Oct 16, 2009 at 5:04 AM, Jonathan Tomshine <jtomshine at gmail.com> wrote:
> 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
> (?!?)
>
> Based on the macports manual:
> http://guide.macports.org/#reference.phases , it appears that it
> should be running in ${worksrcpath}, which it certainly isn't. Since
> "cd" seems to have been specifically disabled, I'm at a loss as to how
> to fix this problem. Do I just need to copy all of the resulting
> configure files to ${worksrcpath} manually? Surely I can't be the
> first person to use cmake to write a Makefile, so this must have been
> addressed before...
>
> Any advice will be appreciated,
> -Jon
>
--
Jonathan Tomshine, PhD
Postdoctoral Scientist
University of California, San Francisco
Genentech Hall
600 16th St.
San Francisco, CA 94158-2140
jtomshine at gmail.com
More information about the macports-dev
mailing list