On Tue, May 20, 2008 at 09:29:11PM +0200, Martin Costabel wrote: > James Mckenzie wrote: > [] > > I still have the question on how to apply changes only when building for > > Leopard vice building for Tiger. > > Many packages have separate info files, foo.info (or foo-10.4.info) > containing "Distribution: 10.4" and foo-10.5.info containing > "Distribution: 10.5". > > If you want to avoid this, you can use a construction like > > case `uname -r` in > 8.*) > Tiger stuff > ;; > 9.*) > Leopard stuff > ;; > *) > Neither here nor there > ;; > esac > > I see one example like this in emacs22-carbon.info.
Have to be careful though...if the underlying function is actually different (incompatible ABI) on 10.5 vs 10.4, then the thing patched and compiled for 10.4 will be incorrect *at runtime* on 10.5. In that case, really need two separate .info (with Distribution, and with a "much higher" Revision in the 10.5 pkg). dan -- Daniel Macks [EMAIL PROTECTED] http://www.netspace.org/~dmacks ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users