diff --git a/net-wireless/proxmark3/Manifest b/net-wireless/proxmark3/Manifest
index b1f01c6db..a9749ea43 100644
--- a/net-wireless/proxmark3/Manifest
+++ b/net-wireless/proxmark3/Manifest
@@ -1,2 +1,3 @@
DIST proxmark3-4.17511.tar.gz 30829541 BLAKE2B b018b5556256e1792bb39e563b80c46bf1c1c63a25a6bd311feba5c80ee2812549238d1ee5ff7d2a7179fc14a4b2428e7b39d37becaf8fafdc00318bec0a75c8 SHA512 01c78915c4479ec44d2e58a20e20b02da548be48b0e92e072a4e81057ae6139afa843904e9006751d3fcc6476bc208a2e699aab25931ac20a3edf0cc68b151da
DIST proxmark3-4.17768.tar.gz 31357649 BLAKE2B 820077c9b779d853f93bc518f77002a8a61d3523ef70bc8927b14ca469ca2ae3c2a6ddde2f72c2033a6fdbfc7879de1c267c053e7d9dfc49d1d78d92d9c67f86 SHA512 31528823a75a495927929daa5e22b3b917a19c28cacccb8e91b1b173ad7efe3ca59624b2fce60f2a317ec9338eaabdd5b7ab9fecbfdbc87c33eccaf3964e0404
+DIST proxmark3-4.18218.tar.gz 31530182 BLAKE2B c26f82d468deace11b7cc0048269a7f17ca54005631bfddf55cd1d0ad957c684735ffd3e24a73fd1f5ef7de35e1a0609916d34bf0d2525053fec8b1fcb5a18db SHA512 8c89089674e349629cfa156bbf85366e28962dde7c48a9e6941c63df05417a9a8c8a06f018614e4129e4a08b954216a5e29349abceea24bf6e6fc9b498c68ecb
diff --git a/net-wireless/proxmark3/metadata.xml b/net-wireless/proxmark3/metadata.xml
index 5792238a2..589f392f8 100644
--- a/net-wireless/proxmark3/metadata.xml
+++ b/net-wireless/proxmark3/metadata.xml
@@ -6,9 +6,11 @@
Rick Farina
RfidResearchGroup/proxmark3
diff --git a/net-wireless/proxmark3/proxmark3-9999.ebuild b/net-wireless/proxmark3/proxmark3-9999.ebuild
index e5b87ff86..af315dddf 100644
--- a/net-wireless/proxmark3/proxmark3-9999.ebuild
+++ b/net-wireless/proxmark3/proxmark3-9999.ebuild
@@ -24,7 +24,8 @@ HOMEPAGE="https://github.com/RfidResearchGroup/proxmark3"
LICENSE="GPL-3+"
SLOT="0"
-STANDALONE="standalone-lf-em4100emul standalone-lf-em4100rswb standalone-lf-em4100rwc standalone-lf-hidbrute standalone-lf-hidfcbrute standalone-lf-icehid standalone-lf-nexid standalone-lf-proxbrute standalone-lf-samyrun standalone-lf-tharexde standalone-hf-14asniff standalone-hf-15sniff standalone-hf-aveful standalone-hf-bog standalone-hf-cardhopper standalone-hf-colin standalone-hf-craftbyte standalone-hf-iceclass standalone-hf-legic standalone-hf-mattyrun standalone-hf-mfcsim standalone-hf-msdsal standalone-hf-reblay standalone-hf-tcprst standalone-hf-tmudford standalone-hf-unisniff standalone-hf-young standalone-dankarmulti"
+# https://github.com/RfidResearchGroup/proxmark3/wiki/Standalone-mode
+STANDALONE="standalone-lf-em4100emul standalone-lf-em4100rswb standalone-lf-em4100rwc standalone-lf-hidbrute standalone-lf-hidfcbrute standalone-lf-icehid standalone-lf-nexid standalone-lf-proxbrute standalone-lf-samyrun standalone-lf-tharexde standalone-hf-14asniff standalone-hf-15sniff standalone-hf-aveful standalone-hf-bog standalone-hf-cardhopper standalone-hf-colin standalone-hf-craftbyte standalone-hf-iceclass standalone-hf-legic standalone-hf-legicsim standalone-hf-mattyrun standalone-hf-mfcsim standalone-hf-msdsal standalone-hf-reblay standalone-hf-tcprst standalone-hf-tmudford standalone-hf-unisniff standalone-hf-young standalone-dankarmulti"
IUSE="+bluez deprecated +firmware +pm3rdv4 +qt ${STANDALONE}"
REQUIRED_USE="?? ( ${STANDALONE/+/} )
standalone-lf-hidfcbrute? ( pm3rdv4 )
@@ -37,8 +38,8 @@ REQUIRED_USE="?? ( ${STANDALONE/+/} )
standalone-hf-cardhopper? ( pm3rdv4 )
standalone-hf-colin? ( pm3rdv4 )
standalone-hf-iceclass? ( pm3rdv4 )
+ standalone-hf-legicsim ( pm3rdv4 )
standalone-hf-mfcsim? ( pm3rdv4 )
- standalone-hf-reblay? ( pm3rdv4 )
"
DEPEND="
@@ -47,6 +48,7 @@ DEPEND="
dev-libs/jansson:=
dev-libs/openssl:=
sys-libs/readline:=
+ media-libs/gd:2=
bluez? ( net-wireless/bluez:= )
qt? ( dev-qt/qtcore:5
dev-qt/qtwidgets:5
@@ -109,6 +111,8 @@ src_prepare(){
echo 'STANDALONE=HF_ICECLASS' >> Makefile.platform
elif use standalone-hf-legic; then
echo 'STANDALONE=HF_LEGIC' >> Makefile.platform
+ elif use standalone-hf-legicsim; then
+ echo 'STANDALONE=HF_LEGICSIM' >> Makefile.platform
elif use standalone-hf-mattyrun; then
echo 'STANDALONE=HF_MATTYRUN' >> Makefile.platform
elif use standalone-hf-msdsal; then
@@ -135,7 +139,8 @@ src_compile(){
#verbose
export V=1
#common flags
- EMAKE_COMMON=CC="$(tc-getCC)" DEFCFLAGS="${CFLAGS}" MYCFLAGS="${CFLAGS}" MYCXXFLAGS="${CXXFLAGS}" MYLDFLAGS="${LDFLAGS}"
+ EMAKE_COMMON=CC="$(tc-getCC)" DEFCFLAGS="${CFLAGS}" MYCFLAGS="${CFLAGS}"
+ EMAKE_COMMON+= MYCXXFLAGS="${CXXFLAGS}" MYLDFLAGS="${LDFLAGS}"
use qt || export SKIPQT=1
use bluez || export SKIPBT=1
if use firmware; then