Index | Thread | Search

From:
yaydn@protonmail.com
Subject:
Re: new(ish) devel/sdl3
To:
Stuart Henderson <stu@spacehopper.org>, "op@omarpolo.com" <op@omarpolo.com>
Cc:
"ports@openbsd.org" <ports@openbsd.org>, "thfr@openbsd.org" <thfr@openbsd.org>
Date:
Fri, 01 Aug 2025 06:00:03 +0000

Download raw body.

Thread
  • Omar Polo:

    new(ish) devel/sdl3

  • På fredag 1. august 2025 kl. 05:14, Stuart Henderson
    <stu@spacehopper.org> skrev:
    
    > Things need to be simpler with libraries, flavours are a problem there.
    > If you have people using ones of two versions of a library, when they
    > write pets for things depending on that library, they'll end up with
    > wrong WANTLIB.
    >
    > --
    >   Sent from a phone, apologies for poor formatting.
    >
    >
    
    
    Thank you I was not aware of such. In this case, and if it is not too
    contentious (I need not be that person), can we have wayland, x11, and
    (by extension of wayland) arcan support by default please?
    
    Besides upstream having it as the default, more packages will depend on
    this and going back to enable wayland in the future will be more
    laborious as each package is added or transitioned.
    
    Better to do small upkeep by package and manage any deficient support on
    case by case basis. Whether that is dropped upstream X support or
    bugs/limitations in wayland or associated libinput/libevdev in OpenBSD.
    
    I know out of ports there is at least the emulator pcsx2 and probably a
    few more sdl3 based applications. But less than current sdl2 or
    sdl1{,-compat} packages. This could also potentially lift sdl2-compat to
    bridge sdl2 to sdl3 maintenance and features like some other OS's are
    utilizing.
    
    I am not advocating for either camp on this. I want to ensure
    portability of ports and all the associated work as much as possible.
    
    
    Relevant link:
    https://pcsx2.net/blog/2025/pcsx2-2.4_2.2/
    
    
    Something like this as the Makefile maybe:
    
    COMMENT =	cross-platform multimedia library
    
    V =			3.2.18
    DISTNAME =		SDL3-${V}
    PKGNAME =		${DISTNAME:L}
    
    SHARED_LIBS +=  SDL3                      0.0 # 3.2.18
    
    CATEGORIES =		devel
    HOMEPAGE =		https://libsdl.org/
    MAINTAINER =		Thomas Frohwein <thfr@openbsd.org>
    
    # zlib
    PERMIT_PACKAGE =	Yes
    
    WANTLIB += X11 Xcursor Xext Xfixes Xi Xrandr Xrender Xss iconv m pthread
    WANTLIB += sndio wayland-client wayland-cursor xkbcommon
    
    SITES =			https://github.com/libsdl-org/SDL/releases/download/release-${V}/
    
    MODULES =		devel/cmake
    MODCMAKE_LDFLAGS =	-L${LOCALBASE}/lib -L${X11BASE}/lib -liconv
    
    BUILD_DEPENDS =		wayland/libinput-openbsd \
    			wayland/wayland-protocols
    
    LIB_DEPENDS =		converters/libiconv \
    			wayland/wayland \
    			x11/xkbcommon
    
    CONFIGURE_ARGS =	-DSDL_ALSA=OFF \
    			-DSDL_DBUS=OFF \
    			-DSDL_HIDAPI=OFF \
    			-DSDL_INSTALL=ON \
    			-DSDL_JACK=OFF \
    			-DSDL_LIBUDEV=OFF \
    			-DSDL_PIPEWIRE=OFF \
    			-DSDL_PULSEAUDIO=OFF \
    			-DSDL_SNDIO_SHARED=OFF \
    			-DSDL_TESTS=ON \
    			-DSDL_VULKAN=ON \
    			-DSDL_WAYLAND_SHARED=OFF \
    			-DSDL_X11_SHARED=OFF
    
    CFLAGS +=		-I${LOCALBASE}/include -I${X11BASE}/include
    
    .include <bsd.port.mk>
    
    --
    
    Not 100% sure on all depends.
    
    If it is possible without stepping on any toes then please.
    
    In the end, ports and the maintainer decide. Thanks for your time.
    
    
  • Omar Polo:

    new(ish) devel/sdl3