[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fink-devel
Subject:    Re: [Fink-devel] Shlibs: install_name and compatibility version
From:       Benjamin Reed <rangerrick () befunk ! com>
Date:       2010-09-22 17:28:38
Message-ID: 4C9A3CC6.3050204 () befunk ! com
[Download RAW message or body]

  On 9/22/10 10:06 AM, Ebrahim Mayat wrote:
> To recap the build and install scripts and the SplitOff field are:
>
> CompileScript:<<
>    #!/bin/sh -ev
>    /bin/mkdir build
>    cd build
>    %p/bin/cmake \
>    -DCMAKE_INSTALL_PREFIX=%i \
>    ..
> <<
> InstallScript:<<
>    #!/bin/sh -ev
>    cd build
>    /usr/bin/make install
> <<
>
> SplitOff:<<
>    Package: %N-shlibs
>    Depends: readline5-shlibs (>= 5.0-1006), libsndfile1-shlibs (>=
> 1.0.20-1), libflac8
>    Files: lib/*.*.dylib
>    Shlibs: %p/lib/libfluidsynth.1.dylib 1.0.0 %n (>= 1.1.1-280)
>    DocFiles: COPYING README
> <<
>
>
> I tried changing the install script to "	make install DESTDIR=%p " but
> this did not make much of a difference.

%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"
<<

-- 
Benjamin Reed a.k.a. Ranger Rick a.k.a. Raccoon Fink
Fink, KDE, and Mac OS X development

Blog: http://www.raccoonfink.com/
Music: http://music.raccoonfink.com/



------------------------------------------------------------------------------
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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic