On 8/1/2012 1:39 PM, Daniel Macks wrote:
> On Wed, 1 Aug 2012 10:33:45 -0700, David Lowe <[email protected]> wrote:
> On 2012 Jul 31, at 4:15 PM, TheSin wrote:
>>
>>> dpkg -S sdl-config
>>> sdl: /sw/bin/sdl-config
>>>> sdl is the dev files for fink installed sdl, I'm not sure what
>> you are trying to build that needs sdl but it likely just does no
>> know about your fink installation.  Check that you have sdl
>> installed, if you do then check whatever you are trying use sdl with
>> to see if configure has an --sdl-prefix type switch to tell it that
>> it's in whatever your fink install is, default /sw
>>
>>   I guess when i titled this as off-topic i didn't make it clear
>> enough that this is not a fink issue.  I have no problem building
>> freeciv-sdl in fink, as that uses *.dylibs that the configure can
>> easily pick up.  As an experiment, i was trying to build an sdl
>> client for freeciv outside of fink.  This is failing, as we can't
>> seem to detect or use SDL.framework provided in binary format by
>> libSDL.  This is definitely beyond my expertise, and it seems to be
>> stumping everyone else as well [Sam Lantinga included].  Sorry for
>> the noise.
>
> Given sdl using sdl-config and sdl.pc as the ways to publish flags,
> which is the problem here: those file(s) not being found by [the
> build-system of whatever you are trying to compile against SDL], or
> that build-system not handling them properly, or the flags not being
> correct for accomplishing that compiling? None of these seem to cry out
> for an .m4 solution IMO.

The official SDL.framework doesn't have sdl-config or sdl.pc, and so 
m4/sdl.m4 that 3rd party programs would use will not work with an 
SDL.framework install because there are no flags to be published by 
pkg/sdl-config.

For sdl.m4 to correctly identify an SDL.framework install, it would need 
to 1) check for the existence of the SDL binary (usually 
/Library/Frameworks/SDL.framework/SDL), 2) compile a test program to 
make sure the framework works, and 3) not get confused if a system has 
both the framework and the 'unixy' installs coexisting.

In order for freeciv-sdl to find the SDL.framework, the sdl.m4 it uses 
needs to be modified to know about frameworks, or the freeciv configure 
script itself needs to be modified to have the option to know about 
frameworks (valknut had --with-osx-framework=DIR to find QT4 frameworks 
vs the default library file layout).

There are existing libraries that have similar issues (find Framework 
location, use that layout to determine -I and -L flags).  Perhaps some 
.m4 file in the pkg "autoconf-archive" can be used to look for a similar 
situation.

Hanspeter


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-devel mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to