Re: New: sdl12-compat - SDL1 reimplentation layered on top of SDL2

[email protected]
Newsgroups gmane.os.openbsd.ports
Message-ID <aMgrSL-SuY3JZqc6tk94pXvq7i6-hZPBDfB1r5PRnSq6qKUEZ83JTBkDlr8Ke7k3UF4zs87xQLGjduI5UoOxEzpgK9sfTnnBsJMoJAaYDRE=@protonmail.com>
På onsdag 19. august 2026 kl. 11:45, skrev Stuart Henderson
<[email protected]>:

> On 2026/08/19 02:56, Anthony J. Bentley wrote:
> > Thomas Frohwein writes:
> > > Please find a tarball of sdl12-compat in the attachment. This is the
> > > upstream-endorsed way of running SDL-1.2 applications at this point,
> > > since SDL 1.2 has been end-of-life for a while and isn't receiving
> > > updates anymore. It reimplements SDL 1.2 on top of SDL2.
> > >
> > > It is supposed to be a full replacement of devel/sdl. ...
> >
> > > To build sdl12-compat, devel/sdl needs to be uninstalled because of the
> > > conflict in library and header files. To build consumers, if they
> > > depend on devel/sdl directly, this needs to be adjusted to
> > > devel/sdl12-compat.
> > >
> > > If I get an ok, would need to update the consumer for the different
> > > dependency, and retire devel/sdl with quirks entry.
> >
> > This feels complicated. Why not just replace devel/sdl with this?
> > The library it provides is named the same, it's intended to be a
> > drop-in replacement, the ports themselves need to be tested but will
> > probably be fine. We won't have to deal with quirks or @conflict
> > markers. Ports that fail to build can be marked broken. As you pointed
> > out, most ports using SDL 1.2 are leaf ports and most of them are pretty
> > old, and most of them work with this anyway, so any breakage will be
> > minor and easily fixed.
> 
> 100% in agreement.
> 
> 

For testing purposes, that would be removing the old devel/sdl folder,
putting this in devel/sdl as oppose to devel/sdl12-compat with a Makefile
something like this?


COMMENT =	compatiblity layer SDL 1.2 on SDL2

V =		1.2.76

DISTNAME =	sdl12-compat-${V}
PKGNAME =	sdl-${V}

SHARED_LIBS +=  SDL	8.1

CATEGORIES =	devel

HOMEPAGE =	https://github.com/libsdl-org/sdl12-compat

MAINTAINER =	Thomas Frohwein <[email protected]>

# zlib
PERMIT_PACKAGE =	Yes

# SDL2 is dlopen(3)'d
WANTLIB += SDL2

SITES =	https://github.com/libsdl-org/sdl12-compat/releases/download/release-${V}/

MODULES =	devel/cmake
MODCMAKE_LDFLAGS =

BUILD_DEPENDS =	converters/libiconv
LIB_DEPENDS =	devel/sdl2

CFLAGS +=	-I${X11BASE}/include -I${LOCALBASE}/include

pre-configure:
	${SUBST_CMD} ${WRKSRC}/CMakeLists.txt

.include <bsd.port.mk>
Makefile (application/octet-stream, 646 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.