Hi,

The diff below fixes running games/witchblast for me. Before the patch:

$ witchblast
[ALSOFT] (EE) Cannot set priority level for thread
Witch_Blast:/usr/local/lib/libsfml-window.so.2.0: undefined symbol 
'XRRGetScreenInfo'
ld.so: Witch_Blast: lazy binding failed!
Killed 
$

After the patch, the game runs as expected.

ok?

Index: Makefile
===================================================================
RCS file: /cvs/ports/multimedia/sfml/Makefile,v
retrieving revision 1.16
diff -u -p -r1.16 Makefile
--- Makefile    11 Mar 2022 19:39:26 -0000      1.16
+++ Makefile    13 Jun 2022 01:27:33 -0000
@@ -3,7 +3,7 @@ COMMENT =               simple and fast multimedia li
 V =                    2.5.1
 DISTNAME =             SFML-${V}-sources
 PKGNAME =              sfml-${V}
-REVISION =             0
+REVISION =             1
 EXTRACT_SUFX =         .zip
 
 SHARED_LIBS +=  sfml-audio                2.0 # 2.1
@@ -21,7 +21,7 @@ MAINTAINER =          Pascal Stumpf <pascal@stum
 # zlib/libpng
 PERMIT_PACKAGE =       Yes
 
-WANTLIB += ${COMPILER_LIBCXX} FLAC GL GLU freetype m ogg openal
+WANTLIB += ${COMPILER_LIBCXX} FLAC GL GLU Xrandr freetype m ogg openal
 WANTLIB += vorbis vorbisenc vorbisfile
 
 MASTER_SITES =         https://www.sfml-dev.org/files/
@@ -35,6 +35,7 @@ LIB_DEPENDS =         audio/openal \
                        audio/flac
 
 CONFIGURE_ARGS +=      -DSFML_INSTALL_PKGCONFIG_FILES=BOOL:TRUE
+CONFIGURE_ENV +=       LDFLAGS="${LDFLAGS}"
 
 FAKE_FLAGS =           DESTDIR=${DESTDIR} PREFIX=${PREFIX}
 .for l v in ${SHARED_LIBS}
@@ -44,6 +45,7 @@ MAKE_FLAGS +=         LIB${l}_VERSION=${v}
 
 NO_TEST =              Yes
 
+LDFLAGS +=             -L${X11BASE}/lib -lXrandr
 WRKDIST =              ${WRKDIR}/SFML-${V}
 
 post-patch:

Reply via email to