On Fri, Sep 16, 2005 at 03:37:24PM -0400, Alexander K. Hansen wrote:
> On Sep 16, 2005, at 3:29 PM, Philip Lamb wrote:
> >On 16/09/2005, at 6:49 AM, Alexander K. Hansen wrote:
> >>
> >>Here's a couple things that came up:
> >>
> >>1)  Why Depends: macosx | x11 (I didn't notice the | before)?
> >
> >Ah, I think I was trying to smart..
> >lib3ds can use OpenGL and GLUT from either the Mac OS X framework,  
> >OR from x11.
> >
> >But reading the packaging manual, there is no way to specify this  
> >kind of optional dependency, other than making a separate variant  
> >package.

Correct.


> >So perhaps we need something like:
> >lib3ds, which depends on macosx, builddepends macosx, cctools, and  
> >runs configure without extra flags.
> >lib3ds-x11 which depends on x11, glut, builddepends x11-dev, glut- 
> >dev, cctools, and runs configure with environment variables set to  
> >pick up the X11 directiories., e.g. CPPFLAGS=/usr/X11R6/include,  
> >LDFLAGS=/usr/X11R6/lib

Makes sense. Or lib3ds and lib3ds-mac (or -aqua). Fink has
traditionally assumed x11 graphics. But as long as you're clear and
each documents what it is, doesn't really matter. Maybe lib3ds-x11 and
lib3ds-mac (or -aqua), so there's never a question?

> >I see one problem with this approach.. there is no way I can see to  
> >stop the configure script picking up the Mac OS X frameworks if  
> >they are present.

Hack the ./configure script. Find where it detects the framework and
patch so that the test never runs, or the results are never
propagated.  If a simple ac_* flag is set, you can sometimes pass
variable (set to whatever result you want) as either a ConfigureParam
or env var to ./configure and that will think the test has already
been run and just blindly accept your result code (that's what gives
the '(cached)' notation during ./configure sometimes).

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to