On Sep 22, 2010, at 1:28 PM, Benjamin Reed wrote: > %i would be wrong, you tell cmake the *real* install prefix, and > then use DESTDIR to set it to the temporary root (%d). Otherwise, > %i is the build directory: /sw/src/fink.build/package/foo/sw and > then DESTDIR=%p makes it put another /sw at the front: /sw/sw/src/ > fink.build/package/foo/sw > > You want this: > > CompileScript: << > #!/bin/sh -ev > /bin/mkdir build > cd build > %p/bin/cmake -DCMAKE_INSTALL_PREFIX="%p" .. > << > InstallScript: << > #!/bin/sh -ev > cd build > /usr/bin/make install DESTDIR="%d" > <<
Good Day Ranger Rick! Many thanks for the enlightenment! I simplified the above scripts : CompileScript: << #!/bin/sh -ev %p/bin/cmake -DCMAKE_INSTALL_PREFIX=%p . << InstallScript: << make install DESTDIR=%d << ...and after patching CMakeLists.txt as per your precise instructions, IT WORKED!!!! Brilliant!!! Those cmake variables are indeed essential for porting to OS X. Best wishes, Ebrahim "Only when the form is quite clear to you, will the spirit become clear to you." - Robert Schumann ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel