git: a48d80871555 - main - emulators/rpcs3: convert to USES=elfctl after 74c02f1ec9c9

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Fri, 01 Apr 2022 18:40:01 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a48d808715552e51a43aaea3266d05fa1a232563

commit a48d808715552e51a43aaea3266d05fa1a232563
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-04-01 16:10:05 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-04-01 18:39:29 +0000

    emulators/rpcs3: convert to USES=elfctl after 74c02f1ec9c9
---
 emulators/rpcs3/Makefile | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/emulators/rpcs3/Makefile b/emulators/rpcs3/Makefile
index 0a07a87ce2bd..13a273bf4eb5 100644
--- a/emulators/rpcs3/Makefile
+++ b/emulators/rpcs3/Makefile
@@ -35,7 +35,7 @@ GH_TUPLE=	RPCS3:hidapi:hidapi-0.11.2-4-g6cf1336:hidapi/3rdparty/hidapi/hidapi \
 		kinetiknz:cubeb:cubeb-0.2-1350-gf79e0cf:cubeb/3rdparty/cubeb/cubeb \
 		wolfSSL:wolfssl:v5.2.0-stable-245-gdcaa218ed:wolfssl/3rdparty/wolfssl/wolfssl
 
-USES=		cmake compiler:c++17-lang gl iconv:wchar_t localbase:ldflags \
+USES=		cmake compiler:c++17-lang elfctl gl iconv:wchar_t localbase:ldflags \
 		openal:soft pkgconfig python:3.4+,build qt:5 xorg
 USE_GL=		gl glew
 USE_QT=		qmake_build buildtools_build core concurrent dbus gui multimedia svg widgets
@@ -44,6 +44,7 @@ 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=	+noaslr:bin/${PORTNAME}
 
 OPTIONS_DEFINE=	ALSA EVDEV FAUDIO PULSEAUDIO JACK SNDIO VULKAN
 OPTIONS_DEFAULT=EVDEV FAUDIO PULSEAUDIO JACK SNDIO VULKAN
@@ -80,11 +81,6 @@ 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 +noaslr ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
-.endif
-
 .include <bsd.port.pre.mk>
 
 # Ignore Mk/bsd.default-versions.mk but respect make.conf(5)