# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim: fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup github 1.0 PortGroup qt5 1.0 name proxmark3-iceman github.setup RfidResearchGroup proxmark3 4.18218 v github.tarball_from archive checksums sha256 535ace3d2395d745aab82b77f7bf83ac08ab9ffb328c07ee2e4ddf340d09536a \ rmd160 1eea0890e73a19e732aedcad7634084fb40b8fe7 \ size 31530182 revision 0 license GPL-3+ categories science comms platforms darwin description RRG/Iceman version of proxmark3 RFID Instrument Client/FW long_description ${description}. By default, the repository is built for PM3RDV4. \ To build for older hardware releases, please install the package \ with the \"pm3generic\" variant. maintainers {@linuxgemini linuxgemini.space:proxmark3packaging} openmaintainer depends_lib-append port:readline \ port:jansson \ port:lua52 \ port:python311 \ port:bzip2 \ port:openssl11 \ port:gd2 # Although port:pkgconfig is required (see comments below), because the qt5 PortGroup # includes it, its not listed here. depends_build-append \ port:arm-none-eabi-gcc \ port:arm-none-eabi-binutils \ port:coreutils # although the upstream repository does not have a ./configure script, # the buildsystem itself does rely on things usually found in ./configure # like for instance, pkg-config. # # this is why i (@linuxgemini) has decided to set variables related to # configure phase instead of making new ones before passing them # to build and destroot envs. set python_version 3.11 set python_prefix ${frameworks_dir}/Python.framework/Versions/${python_version} configure.python ${prefix}/bin/python${python_version} configure.pkg_config \ ${prefix}/bin/pkg-config configure.pkg_config_path-append \ ${python_prefix}/lib/pkgconfig # pm3 does not have a ./configure script use_configure no # PKG_CONFIG_ENV is used by the upstream buildsystem, # which basically is a variable to point out PKG_CONFIG_PATH # to shell calls inside Makefiles. build.env-append USE_BREW=0 \ USE_MACPORTS=1 \ PREFIX=${prefix} \ SKIPWHEREAMISYSTEM=1 \ MACPORTS_PREFIX=${prefix} \ PATH=${prefix}/libexec/gnubin:$env(PATH) \ PKG_CONFIG_PATH=${configure.pkg_config_path} build.args-append CC=${configure.cc} \ CXX=${configure.cxx} \ CPP=${configure.cpp} \ LD=${configure.cxx} \ PKG_CONFIG_ENV=PKG_CONFIG_PATH=${configure.pkg_config_path} variant pm3generic description {Build firmware for PM3GENERIC instead of PM3RDV4} { build.args-append PLATFORM=PM3GENERIC destroot.args-append \ PLATFORM=PM3GENERIC } # buildsystem quirk: "make install" calls "make all" as well destroot.args {*}${build.args} destroot.env {*}${build.env}