#54488 closed request (wontfix)
Request: libsdl2-framework
Reported by: | mf2k (Frank Schima) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | jmroot (Joshua Root) | |
Port: | libsdl2-framework |
Description
I am requesting a new port that installs the Framework build of SDL2. The SDL2 homepage briefly mentions it without specifying how to build it that way. I will try to investigate soon. Hopefully it is just a configure switch.
With the exception of the docs, it should not conflict with the existing libsdl2 port. I am thinking that adding a non-default docs variant to libsdl2-framework should allow both to co-exist peacefully.
I am attempting to create a Portfile for Mame, which appears to need the Framework version of SDL2.
Cc'ing the maintainer of libsdl2 for possible comment.
Change History (7)
comment:1 follow-up: 2 Changed 7 years ago by jmroot (Joshua Root)
comment:2 Changed 7 years ago by mf2k (Frank Schima)
Replying to jmroot:
Mame appears to have a USE_LIBSDL option which will make it use a non-framework version of SDL.
I have so far not managed to get that to work and use the Macports libsdl2 installation. I have set it to 1 (the default) and 0 but it keeps not finding SDL.H. I have also tried setting:
# SDL_INSTALL_ROOT = /opt/local/include/SDL2
comment:3 follow-up: 5 Changed 7 years ago by jmroot (Joshua Root)
If you set SDL_INSTALL_ROOT then it should be set to ${prefix}. But if you don't set that it's supposed to use pkgconfig to find sdl2. Can you share your Portfile?
comment:4 Changed 7 years ago by jmroot (Joshua Root)
There appears to be a bug in their build script: https://github.com/mamedev/mame/blob/master/scripts/src/osd/sdl_cfg.lua#L89
That seems to be trying to change e.g. -I/opt/local/include/SDL2
to -I/opt/local/include
, but it's only removing /SDL
and leaving the 2
.
comment:5 Changed 7 years ago by mf2k (Frank Schima)
Replying to jmroot:
If you set SDL_INSTALL_ROOT then it should be set to ${prefix}. But if you don't set that it's supposed to use pkgconfig to find sdl2. Can you share your Portfile?
So far, I have only been manually modifying the makefile and building by hand. I have not started an actual Portfile yet.
comment:7 Changed 7 years ago by mf2k (Frank Schima)
Resolution: | → wontfix |
---|---|
Status: | new → closed |
This is no longer needed - by me anyway.
Mame appears to have a USE_LIBSDL option which will make it use a non-framework version of SDL.
In general a framework build of SDL2 may not be that useful, since you'll likely have to patch in a
-F${frameworks_dir}
somewhere to make anything use it, and if you're doing that, you might as well change-framework SDL2
to-L${prefix}/lib -lSDL2
instead.