summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2025-01-04 02:28:47 +0100
committerJan Beich <jbeich@FreeBSD.org>2025-01-04 03:26:34 +0100
commitfb4c16ee0f141edc110224bf43efe8c295f3b8b9 (patch)
tree5df430294fa9d5b278351a9f9a146548200781da
parentmath/pari: update 2.15.5 → 2.17.1 (diff)
emulators/{ppsspp,rpcs3,yuzu}: temporarily expand USES=elfctl
After a CMake upgrade some ports spuriously rebuild binaries. Unfortunately, USES=elfctl relies on BUILD_WRKSRC being immutable after build phase ends. PR: 283836
-rw-r--r--emulators/ppsspp/Makefile12
-rw-r--r--emulators/rpcs3/Makefile9
-rw-r--r--emulators/yuzu/Makefile10
3 files changed, 22 insertions, 9 deletions
diff --git a/emulators/ppsspp/Makefile b/emulators/ppsspp/Makefile
index 34daafeb57ff..a7b6168210be 100644
--- a/emulators/ppsspp/Makefile
+++ b/emulators/ppsspp/Makefile
@@ -1,6 +1,7 @@
PORTNAME= ppsspp
DISTVERSIONPREFIX= v
DISTVERSION?= 1.18.1
+PORTREVISION?= 1
CATEGORIES= emulators
# XXX Get from Debian once #697821 lands
MASTER_SITES= https://bazaar.launchpad.net/~sergio-br2/${PORTNAME}/debian-sdl/download/5/${PORTNAME}.1-20140802045408-dd26dik367ztj5xg-8/:manpage
@@ -69,16 +70,16 @@ LIBRETRO_CMAKE_BOOL= LIBRETRO
LIBRETRO_PLIST_FILES= lib/libretro/${PORTNAME}_libretro.so
LIBRETRO_VARS= CONFLICTS_INSTALL= DESKTOP_ENTRIES= PLIST= PORTDATA= PKGMESSAGE= SUB_FILES=
QT5_LIB_DEPENDS= libpng.so:graphics/png
-QT5_USES= desktop-file-utils elfctl qt:5 shared-mime-info sdl
+QT5_USES= desktop-file-utils qt:5 shared-mime-info sdl
QT5_USE= QT=qmake:build,buildtools:build,linguisttools:build,core,gui,multimedia,opengl,widgets
QT5_USE+= SDL=sdl2 # audio, joystick
QT5_CMAKE_BOOL= USING_QT_UI
-QT5_VARS= EXENAME=PPSSPPQt ELF_FEATURES=+wxneeded:PPSSPPQt
+QT5_VARS= EXENAME=PPSSPPQt
SDL_CATEGORIES= wayland
SDL_LIB_DEPENDS= libpng.so:graphics/png
-SDL_USES= elfctl shared-mime-info sdl
+SDL_USES= shared-mime-info sdl
SDL_USE= SDL=sdl2
-SDL_VARS= EXENAME=PPSSPPSDL ELF_FEATURES=+wxneeded:PPSSPPSDL
+SDL_VARS= EXENAME=PPSSPPSDL
VULKAN_RUN_DEPENDS= ${LOCALBASE}/lib/libvulkan.so:graphics/vulkan-loader
post-patch:
@@ -97,6 +98,9 @@ do-install-LIBRETRO-on:
.endif
do-install-QT5-on do-install-SDL-on:
+.if exists(/usr/bin/elfctl)
+ ${ELFCTL} -e +wxneeded ${STAGEDIR}${PREFIX}/bin/*
+.endif
${MV} ${STAGEDIR}${PREFIX}/bin/${EXENAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_MAN} ${_DISTDIR}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/share/man/man1
diff --git a/emulators/rpcs3/Makefile b/emulators/rpcs3/Makefile
index d243801673af..2945252e753c 100644
--- a/emulators/rpcs3/Makefile
+++ b/emulators/rpcs3/Makefile
@@ -2,6 +2,7 @@ PORTNAME= rpcs3
DISTVERSIONPREFIX= v
DISTVERSION= 0.0.34-17299 # git rev-list --count HEAD
DISTVERSIONSUFFIX= -g8ea27b0aca
+PORTREVISION= 1
CATEGORIES= emulators wayland
MAINTAINER= jbeich@FreeBSD.org
@@ -38,7 +39,7 @@ GH_TUPLE= RPCS3:hidapi:hidapi-0.14.0-2-g8b43a97:hidapi/3rdparty/hidapi/hidapi \
wolfSSL:wolfssl:v5.7.6-stable:wolfssl/3rdparty/wolfssl/wolfssl \
xioTechnologies:Fusion:v1.2.7:fusion/3rdparty/fusion/fusion
-USES= cmake elfctl gl iconv:wchar_t llvm:min=16,lib localbase:ldflags \
+USES= cmake gl iconv:wchar_t llvm:min=16,lib localbase:ldflags \
openal:soft pkgconfig python:build qt:6 xorg
USE_GL= gl glew
USE_QT= base multimedia svg
@@ -47,7 +48,6 @@ CMAKE_ON= CMAKE_SKIP_RPATH ${CURL FFMPEG FLATBUFFERS LIBPNG PUGIXML XXHASH:L:S/^
CMAKE_ON+= BUNDLE_SPEEX # only used by cubeb tests
CMAKE_OFF= USE_NATIVE_INSTRUCTIONS USE_PRECOMPILED_HEADERS
LDFLAGS+= -Wl,--as-needed # GLU
-ELF_FEATURES= +wxneeded:bin/${PORTNAME}
OPTIONS_DEFINE= ALSA EVDEV FAUDIO OPENCV PULSEAUDIO JACK SDL SNDIO VULKAN
OPTIONS_DEFAULT=EVDEV FAUDIO OPENCV PULSEAUDIO JACK SDL SNDIO VULKAN
@@ -99,4 +99,9 @@ post-patch:
-e '/GIT_VERSION/s/local_build/${GH_TAGNAME:C/[^-]*-//}/' \
${WRKSRC}/${PORTNAME}/git-version.cmake
+post-install:
+.if exists(/usr/bin/elfctl)
+ ${ELFCTL} -e +wxneeded ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+.endif
+
.include <bsd.port.mk>
diff --git a/emulators/yuzu/Makefile b/emulators/yuzu/Makefile
index 48da3f999321..44961a14c1ea 100644
--- a/emulators/yuzu/Makefile
+++ b/emulators/yuzu/Makefile
@@ -1,6 +1,6 @@
PORTNAME= yuzu
PORTVERSION= s20240301
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= emulators wayland
.if make(makesum)
MASTER_SITES= https://api.yuzu-emu.org/gamedb/?dummy=/:gamedb
@@ -66,7 +66,7 @@ GH_TUPLE= yuzu-mirror:mbedtls:v2.16.9-115-g8c88150ca:mbedtls/externals/mbedtls \
lat9nq:tzdb_to_nx:221202-15-g9792969:tzdb_to_nx/externals/nx_tzdb/tzdb_to_nx \
yhirose:cpp-httplib:v0.14.1:cpp_httplib/externals/cpp-httplib
-USES= cmake:testing elfctl localbase:ldflags pkgconfig sdl ssl
+USES= cmake:testing localbase:ldflags pkgconfig sdl ssl
USE_SDL= sdl2
WRKSRC= ${WRKDIR}/${PORTNAME}
CMAKE_ON= Boost_USE_STATIC_LIBS
@@ -79,7 +79,6 @@ CMAKE_OFF+= ${ARCH:Maarch64:C/.+/YUZU_USE_PRECOMPILED_HEADERS DYNARMIC_USE_PRECO
CMAKE_OFF+= ${CMAKE_TESTING_ON}
CMAKE_TESTING_ON= YUZU_TESTS
LDFLAGS+= -Wl,--as-needed # Qt5Network
-ELF_FEATURES= ${PLIST_FILES:Mbin/*:S/^/+wxneeded:/}
PLIST_FILES= bin/${PORTNAME}-cmd \
bin/${PORTNAME}-room
@@ -160,4 +159,9 @@ post-patch-VAAPI-off:
@${REINPLACE_CMD} -i .nova '/pkg_check.*libva/d' \
${WRKSRC}/CMakeLists.txt
+post-install:
+.if exists(/usr/bin/elfctl)
+ ${ELFCTL} -e +wxneeded ${STAGEDIR}${PREFIX}/bin/*
+.endif
+
.include <bsd.port.mk>