summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-09-30 22:44:19 +0200
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-12-31 01:37:05 +0100
commitbbab7f59e9630416397189df70ec133bdd690e38 (patch)
tree2ebb595d5a675fda686781b56ea08f80b933cb61
parentRevert "audio/mythplugin-mythmusic: Remove expired port" (diff)
*/*: Sunset 12.4-RELEASE/12-STABLE from ports tree
- Remove all references to defunct ARCH arm - Remove all references to defunct ARCH sparc64 - Remove x11-drivers/xf86-video-sunffb which requires defunct sparc64 ARCH - Remove sysutils/afbinit requires defunct sparc64 ARCH - Remove all references to bktr driver - Remove all references to defunct FreeBSD_12 - Remove all references to OSVERSION/OSREL corresponding to 12 - Remove conditionals in Mk/Uses/cabal.mk - Remove sparc reference from Mk/Uses/qt-dist.mk - Remove BROKEN_sparc64/NOT_FOR_ARCH=sparc64 - Remove BROKEN_FreeBSD_12* from: - Remove OpenSSL patches from: - Remove conditional flags for OSVERSION >= 1300000 to fixed flags. Also move conditional flags for non sparc64/arm ARCH to fixed flags. Reviewed by: brooks, jbeich, rene, salvadore Differential Revision: https://reviews.freebsd.org/D42068
-rw-r--r--Mk/Uses/cabal.mk6
-rw-r--r--Mk/Uses/qt-dist.mk3
-rw-r--r--Mk/bsd.port.mk4
-rw-r--r--archivers/innoextract/Makefile2
-rw-r--r--archivers/libarchive/Makefile8
-rw-r--r--archivers/libarchive/files/extra-patch-pkgconfig-compat7
-rw-r--r--archivers/py-zstandard/Makefile2
-rw-r--r--astro/libgal/Makefile2
-rw-r--r--astro/oskar/Makefile1
-rw-r--r--audio/cheesecutter/Makefile9
-rw-r--r--audio/fdk-aac/Makefile3
-rw-r--r--audio/mhwaveedit/Makefile1
-rw-r--r--audio/mixertui/Makefile9
-rw-r--r--audio/nas/Makefile10
-rw-r--r--audio/ncpamixer/Makefile11
-rw-r--r--audio/opus/Makefile7
-rw-r--r--audio/rhvoice/Makefile2
-rw-r--r--audio/sfizz/Makefile4
-rw-r--r--benchmarks/sipp/Makefile2
-rw-r--r--biology/avida/Makefile1
-rw-r--r--biology/gatk/Makefile2
-rw-r--r--biology/mafft/Makefile8
-rw-r--r--biology/plink/Makefile2
-rw-r--r--cad/astk-serveur/Makefile5
-rw-r--r--cad/brlcad/Makefile2
-rw-r--r--cad/calculix-ccx/Makefile11
-rw-r--r--cad/calculix/Makefile11
-rw-r--r--cad/klayout/Makefile1
-rw-r--r--cad/libredwg/Makefile2
-rw-r--r--cad/nvc/Makefile3
-rw-r--r--cad/stepcode/Makefile2
-rw-r--r--cad/z88/Makefile2
-rw-r--r--chinese/kcfonts/Makefile1
-rw-r--r--comms/aprsd/Makefile2
-rw-r--r--comms/ebusd/files/patch-src_lib_ebus_datatype.cpp10
-rw-r--r--comms/fldigi/Makefile2
-rw-r--r--comms/flrig/Makefile2
-rw-r--r--comms/linrad/Makefile1
-rw-r--r--comms/obexapp/Makefile8
-rw-r--r--comms/uhd/Makefile3
-rw-r--r--converters/wkhtmltopdf/files/patch-src__3rdparty__webkit__Source__JavaScriptCore__runtime__JSValueInlineMethods.h26
-rw-r--r--databases/firebird30-server/Makefile2
-rw-r--r--databases/firebird40-server/Makefile2
-rw-r--r--databases/gnats4/Makefile1
-rw-r--r--databases/grass7/Makefile2
-rw-r--r--databases/leofs/Makefile2
-rw-r--r--databases/libmemcached/Makefile9
-rw-r--r--databases/libmemcached/files/extra-patch-openssl11
-rw-r--r--databases/memcached/Makefile2
-rw-r--r--databases/mysql80-server/Makefile5
-rw-r--r--databases/mysql80-server/files/extra-patch-scripts_CMakeLists.txt10
-rw-r--r--databases/mysql81-server/Makefile5
-rw-r--r--databases/mysql81-server/files/extra-patch-scripts_CMakeLists.txt10
-rw-r--r--databases/p5-Tie-LevelDB/Makefile1
-rw-r--r--databases/postgresql16-server/Makefile2
-rw-r--r--databases/rocksdb/Makefile1
-rw-r--r--databases/soci/Makefile1
-rw-r--r--deskutils/easystroke/Makefile2
-rw-r--r--deskutils/xdg-desktop-portal/Makefile9
-rw-r--r--devel/9base/Makefile2
-rw-r--r--devel/abi-compliance-checker/Makefile8
-rw-r--r--devel/adacurses/Makefile10
-rw-r--r--devel/android-tools/files/patch-vendor_adb_compression__utils.h28
-rw-r--r--devel/api-sanity-autotest/Makefile8
-rw-r--r--devel/arduino/Makefile2
-rw-r--r--devel/avce00/Makefile2
-rw-r--r--devel/avro-c/Makefile2
-rw-r--r--devel/bazel029/Makefile1
-rw-r--r--devel/bazel5/Makefile1
-rw-r--r--devel/bbparse/Makefile1
-rw-r--r--devel/binutils/Makefile4
-rw-r--r--devel/boost-libs/Makefile2
-rw-r--r--devel/concurrencykit/Makefile2
-rw-r--r--devel/cxxtools/Makefile1
-rw-r--r--devel/distorm/Makefile8
-rw-r--r--devel/efivar/Makefile2
-rw-r--r--devel/electron26/files/patch-third__party_wayland_include_config.h23
-rw-r--r--devel/electron26/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc21
-rw-r--r--devel/electron27/files/patch-third__party_wayland_include_config.h23
-rw-r--r--devel/electron27/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc21
-rw-r--r--devel/elfutils/Makefile13
-rw-r--r--devel/freebsd-gcc12/Makefile2
-rw-r--r--devel/freebsd-gcc13/Makefile2
-rw-r--r--devel/freebsd-gcc9/Makefile2
-rw-r--r--devel/freebsd-gcc9/pkg-plist.sparc648
-rw-r--r--devel/grpc/Makefile9
-rw-r--r--devel/grpc/files/extra-patch-openssl20
-rw-r--r--devel/hare/Makefile8
-rw-r--r--devel/intel-graphics-compiler/Makefile1
-rw-r--r--devel/kf5-kcoreaddons/Makefile11
-rw-r--r--devel/libffcall/files/patch-ffcall-abi.h11
-rw-r--r--devel/libftdi1/Makefile2
-rw-r--r--devel/libhoard/Makefile1
-rw-r--r--devel/libpeak/Makefile2
-rw-r--r--devel/libqsbr/Makefile7
-rw-r--r--devel/lightning/Makefile4
-rw-r--r--devel/linux_libusb/Makefile3
-rw-r--r--devel/llbuild/Makefile1
-rw-r--r--devel/llvm-devel/Makefile8
-rw-r--r--devel/llvm10/Makefile3
-rw-r--r--devel/llvm11/Makefile3
-rw-r--r--devel/llvm12/Makefile8
-rw-r--r--devel/llvm13/Makefile8
-rw-r--r--devel/llvm14/Makefile10
-rw-r--r--devel/llvm15/Makefile10
-rw-r--r--devel/llvm16/Makefile11
-rw-r--r--devel/llvm17/Makefile8
-rw-r--r--devel/love/Makefile2
-rw-r--r--devel/mdb/Makefile10
-rw-r--r--devel/mongo-c-driver/Makefile4
-rw-r--r--devel/msgpack-c/Makefile10
-rw-r--r--devel/ncurses/Makefile2
-rw-r--r--devel/nextpnr/Makefile1
-rw-r--r--devel/p5-Data-MessagePack-Stream/Makefile1
-rw-r--r--devel/pcl/Makefile4
-rw-r--r--devel/pcre/Makefile1
-rw-r--r--devel/pcre2/Makefile2
-rw-r--r--devel/pickle/Makefile1
-rw-r--r--devel/pika/Makefile1
-rw-r--r--devel/protobuf/Makefile2
-rw-r--r--devel/py-hidraw/Makefile8
-rw-r--r--devel/py-keystone-engine/Makefile2
-rw-r--r--devel/qt5-script/files/patch-src__3rdparty__javascriptcore__JavaScriptCore__runtime__JSValue.h26
-rw-r--r--devel/radare2/Makefile2
-rw-r--r--devel/root/Makefile8
-rw-r--r--devel/root/pkg-plist1
-rw-r--r--devel/rubygem-gobject-introspection/Makefile2
-rw-r--r--devel/rubygem-rice/Makefile2
-rw-r--r--devel/sdbus-cpp/Makefile8
-rw-r--r--devel/socket_wrapper/Makefile1
-rw-r--r--devel/stack/Makefile2
-rw-r--r--devel/tex-libtexluajit/Makefile1
-rw-r--r--devel/upp/Makefile1
-rw-r--r--dns/powerdns-recursor/Makefile1
-rw-r--r--dns/powerdns/Makefile1
-rw-r--r--editors/xcoral/Makefile14
-rw-r--r--emulators/cingb/Makefile2
-rw-r--r--emulators/dynamips-community/Makefile1
-rw-r--r--emulators/mednafen/Makefile2
-rw-r--r--emulators/pcsx2/Makefile9
-rw-r--r--emulators/ppsspp/Makefile2
-rw-r--r--emulators/qemu-devel/Makefile4
-rw-r--r--emulators/qemu/Makefile4
-rw-r--r--emulators/qemu7/Makefile4
-rw-r--r--emulators/qmc2/Makefile6
-rw-r--r--emulators/qmc2/files/extra-scripts-sdl-includepaths9
-rw-r--r--emulators/rpcs3/files/patch-libc++1326
-rw-r--r--emulators/vba/Makefile1
-rw-r--r--emulators/virtualbox-ose/Makefile5
-rw-r--r--emulators/virtualbox-ose/files/extrapatch-src_VBox_Devices_PC_DevFwCommon.cpp14
-rw-r--r--emulators/wine-proton/Makefile1
-rw-r--r--finance/ledger/Makefile2
-rw-r--r--french/aster/Makefile4
-rw-r--r--ftp/axel/Makefile4
-rw-r--r--ftp/freebsd-ftpd/Makefile11
-rw-r--r--games/adom/Makefile6
-rw-r--r--games/blinkensisters/Makefile2
-rw-r--r--games/bloodfrontier/Makefile1
-rw-r--r--games/bsdgames/Makefile8
-rw-r--r--games/chessx/Makefile6
-rw-r--r--games/el/Makefile2
-rw-r--r--games/fishsupper/Makefile2
-rw-r--r--games/freeminer/Makefile1
-rw-r--r--games/jaggedalliance2/Makefile2
-rw-r--r--games/lgeneral/Makefile1
-rw-r--r--games/linux-steam-utils/Makefile1
-rw-r--r--games/moonlight-qt/Makefile16
-rw-r--r--games/openglad/Makefile2
-rw-r--r--games/openrct2/Makefile2
-rw-r--r--games/pentobi/Makefile2
-rw-r--r--games/quetoo/Makefile4
-rw-r--r--games/redeclipse/Makefile2
-rw-r--r--games/redeclipse16/Makefile2
-rw-r--r--games/regoth/Makefile1
-rw-r--r--games/retroarch/Makefile1
-rw-r--r--games/rlvm/Makefile2
-rw-r--r--games/sdb/Makefile2
-rw-r--r--games/sdlpop/Makefile2
-rw-r--r--games/spacejunk/Makefile1
-rw-r--r--games/wolfpack/Makefile8
-rw-r--r--graphics/Hermes/Makefile2
-rw-r--r--graphics/aseprite/Makefile1
-rw-r--r--graphics/cbonsai/Makefile1
-rw-r--r--graphics/darktable/Makefile27
-rw-r--r--graphics/drm-510-kmod/Makefile3
-rw-r--r--graphics/gpu-firmware-amd-kmod/Makefile7
-rw-r--r--graphics/gpu-firmware-kmod/Makefile16
-rw-r--r--graphics/igt-gpu-tools/Makefile2
-rw-r--r--graphics/krita/files/patch-cmake_modules_xsimd_xsimdMacros.cmake15
-rw-r--r--graphics/lux/Makefile2
-rw-r--r--graphics/mozjpeg/Makefile1
-rw-r--r--graphics/nvidia-drm-kmod/Makefile9
-rw-r--r--graphics/ogre3d/Makefile4
-rw-r--r--graphics/ogre3d19/Makefile2
-rw-r--r--graphics/opencollada/Makefile2
-rw-r--r--graphics/openshadinglanguage/Makefile1
-rw-r--r--graphics/pixie/Makefile1
-rw-r--r--graphics/qgis-ltr/Makefile7
-rw-r--r--graphics/qgis/Makefile7
-rw-r--r--graphics/qt5-wayland/files/patch-src_client_qwaylandshmbackingstore.cpp4
-rw-r--r--graphics/tesseract-data/Makefile2
-rw-r--r--graphics/vulkan-headers/Makefile7
-rw-r--r--japanese/mozc-server/Makefile2
-rw-r--r--java/netty/Makefile2
-rw-r--r--java/openjdk11/Makefile3
-rw-r--r--java/openjdk11/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp11
-rw-r--r--java/openjdk17/Makefile3
-rw-r--r--java/openjdk17/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp11
-rw-r--r--java/openjdk18/Makefile3
-rw-r--r--java/openjdk18/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp11
-rw-r--r--java/openjdk19/Makefile3
-rw-r--r--java/openjdk19/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp11
-rw-r--r--java/openjdk20/Makefile3
-rw-r--r--java/openjdk20/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp11
-rw-r--r--java/openjdk21/Makefile3
-rw-r--r--java/openjdk21/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp11
-rw-r--r--lang/angelscript/Makefile2
-rw-r--r--lang/cling/Makefile1
-rw-r--r--lang/clisp/Makefile2
-rw-r--r--lang/emilua/Makefile1
-rw-r--r--lang/erlang-runtime21/Makefile2
-rw-r--r--lang/erlang-runtime22/Makefile2
-rw-r--r--lang/erlang-runtime23/Makefile2
-rw-r--r--lang/erlang-runtime24/Makefile2
-rw-r--r--lang/erlang-runtime25/Makefile2
-rw-r--r--lang/erlang-runtime26/Makefile2
-rw-r--r--lang/erlang/Makefile2
-rw-r--r--lang/gauche/Makefile3
-rw-r--r--lang/gcc10/Makefile2
-rw-r--r--lang/gcc11-devel/Makefile2
-rw-r--r--lang/gcc11/Makefile2
-rw-r--r--lang/gcc12-devel/Makefile2
-rw-r--r--lang/gcc12/Makefile2
-rw-r--r--lang/gcc13-devel/Makefile2
-rw-r--r--lang/gcc13/Makefile2
-rw-r--r--lang/gcc14-devel/Makefile2
-rw-r--r--lang/gcc9/Makefile2
-rw-r--r--lang/gforth/Makefile2
-rw-r--r--lang/ghc/Makefile2
-rw-r--r--lang/gnustep-base/Makefile6
-rw-r--r--lang/go-devel/Makefile4
-rw-r--r--lang/lfortran/Makefile3
-rw-r--r--lang/libobjc2/Makefile2
-rw-r--r--lang/mecrisp-stellaris/Makefile1
-rw-r--r--lang/mlton/Makefile12
-rw-r--r--lang/mlton/distinfo4
-rw-r--r--lang/mono6.8/Makefile2
-rw-r--r--lang/newlisp/Makefile2
-rw-r--r--lang/nim/Makefile2
-rw-r--r--lang/ocaml/Makefile1
-rw-r--r--lang/opencoarrays/Makefile2
-rw-r--r--lang/perl5-devel/Makefile4
-rw-r--r--lang/perl5.34/Makefile4
-rw-r--r--lang/perl5.36/Makefile4
-rw-r--r--lang/perl5.38/Makefile4
-rw-r--r--lang/php81/Makefile3
-rw-r--r--lang/php82/Makefile3
-rw-r--r--lang/php83/Makefile3
-rw-r--r--lang/python27/Makefile4
-rw-r--r--lang/python310/Makefile4
-rw-r--r--lang/python311/Makefile4
-rw-r--r--lang/python38/Makefile4
-rw-r--r--lang/python39/Makefile4
-rw-r--r--lang/rust-bootstrap/Makefile3
-rw-r--r--lang/rust/Makefile1
-rw-r--r--lang/scm/Makefile6
-rw-r--r--lang/seed7/Makefile2
-rw-r--r--lang/smalltalk/Makefile1
-rw-r--r--lang/solidity/Makefile2
-rw-r--r--lang/tauthon/Makefile4
-rw-r--r--lang/tcl87/Makefile3
-rw-r--r--mail/fetchmail/Makefile6
-rw-r--r--mail/filtermail/Makefile14
-rw-r--r--mail/rmilter/Makefile2
-rw-r--r--mail/spamilter/Makefile1
-rw-r--r--mail/thunderbird/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc23
-rw-r--r--math/R-cran-igraph/Makefile2
-rw-r--r--math/acalc/Makefile2
-rw-r--r--math/asymptote/Makefile1
-rw-r--r--math/blacs/Makefile2
-rw-r--r--math/cgal/Makefile2
-rw-r--r--math/clasp/Makefile2
-rw-r--r--math/clblas/Makefile2
-rw-r--r--math/dieharder/Makefile1
-rw-r--r--math/elemental/Makefile1
-rw-r--r--math/fenics-basix/Makefile8
-rw-r--r--math/gambit/Makefile2
-rw-r--r--math/kktdirect/Makefile8
-rw-r--r--math/lapack95/Makefile8
-rw-r--r--math/ldouble/Makefile4
-rw-r--r--math/libocas/Makefile12
-rw-r--r--math/metis/Makefile8
-rw-r--r--math/ndiff/Makefile4
-rw-r--r--math/nfft/Makefile12
-rw-r--r--math/octave-forge-ltfat/Makefile2
-rw-r--r--math/parmetis/Makefile2
-rw-r--r--math/qrupdate/Makefile12
-rw-r--r--math/scalapack/Makefile2
-rw-r--r--math/spooles/Makefile8
-rw-r--r--math/taucs/Makefile8
-rw-r--r--math/trlan/Makefile8
-rw-r--r--math/xblas/Makefile8
-rw-r--r--misc/compat5x/Makefile8
-rw-r--r--misc/compat5x/distinfo4
-rw-r--r--misc/compat5x/pkg-plist4
-rw-r--r--misc/compat6x/Makefile2
-rw-r--r--misc/compat6x/distinfo3
-rw-r--r--misc/compat6x/pkg-plist.sparc64109
-rw-r--r--misc/dahdi-kmod26/Makefile2
-rw-r--r--misc/dnetc/Makefile8
-rw-r--r--misc/dnetc/distinfo.sparc642
-rw-r--r--misc/libpri/Makefile2
-rw-r--r--misc/localedata/Makefile2
-rw-r--r--multimedia/dav1d/files/patch-freebsd1219
-rw-r--r--multimedia/helvum/Makefile7
-rw-r--r--multimedia/makemkv/Makefile3
-rw-r--r--multimedia/mkclean/Makefile1
-rw-r--r--multimedia/mkvalidator/Makefile1
-rw-r--r--multimedia/mkvtoolnix/Makefile2
-rw-r--r--multimedia/mlt7/Makefile2
-rw-r--r--multimedia/musikcube/Makefile17
-rw-r--r--multimedia/obs-studio/Makefile2
-rw-r--r--multimedia/pipewire/files/patch-src_modules_module-netjack2_peer.c23
-rw-r--r--multimedia/xawtv/Makefile10
-rw-r--r--multimedia/xawtv/files/patch-Makefile.in11
-rw-r--r--multimedia/xawtv/files/patch-common__vbi-data.c6
-rw-r--r--multimedia/xawtv/files/patch-configure21
-rw-r--r--multimedia/xawtv/files/patch-console__fbtools.c6
-rw-r--r--multimedia/xawtv/files/patch-console__scantv.c6
-rw-r--r--multimedia/xawtv/files/patch-console__showqt.c14
-rw-r--r--multimedia/xawtv/files/patch-console__vbi-tty.c30
-rw-r--r--multimedia/xawtv/files/patch-libng__contrib-plugins__Subdir.mk6
-rw-r--r--multimedia/xawtv/files/patch-libng__plugins__drv0-bsd.c24
-rw-r--r--multimedia/xawtv/files/patch-libng_plugins_Subdir.mk9
-rw-r--r--multimedia/xawtv/files/patch-scripts-subtitles6
-rw-r--r--multimedia/xawtv/files/patch-x11__Subdir.mk8
-rw-r--r--multimedia/xawtv/pkg-plist1
-rw-r--r--net-im/libquotient/files/patch-Quotient_qt__connection__util.h52
-rw-r--r--net-im/telegram-purple/Makefile1
-rw-r--r--net-mgmt/monitoring-plugins/Makefile4
-rw-r--r--net-mgmt/nagios-plugins/Makefile8
-rw-r--r--net-mgmt/nfs-exporter/Makefile6
-rw-r--r--net-p2p/qbittorrent/Makefile2
-rw-r--r--net/asterisk18/Makefile2
-rw-r--r--net/bird2/Makefile3
-rw-r--r--net/bsdrcmds/Makefile9
-rw-r--r--net/freebsd-telnetd/Makefile11
-rw-r--r--net/freeipa-client/Makefile3
-rw-r--r--net/libcmis/Makefile2
-rw-r--r--net/libpcap/Makefile1
-rw-r--r--net/libpfctl/Makefile2
-rw-r--r--net/liveMedia/Makefile2
-rw-r--r--net/samba413/Makefile3
-rw-r--r--net/samba416/Makefile2
-rw-r--r--net/sflowtool/Makefile7
-rw-r--r--net/sflowtool/files/extra-patch-src_sflowtool.c25
-rw-r--r--net/sniffnet/Makefile2
-rw-r--r--net/tcplog_dumper/Makefile1
-rw-r--r--net/tcprtt/Makefile1
-rw-r--r--net/widentd/Makefile8
-rw-r--r--net/wifibox-core/Makefile3
-rw-r--r--net/yate/Makefile2
-rw-r--r--net/zerotier/Makefile5
-rw-r--r--ports-mgmt/synth/Makefile8
-rw-r--r--print/pdf-tools/Makefile2
-rw-r--r--science/agrum/Makefile2
-rw-r--r--science/cantera/Makefile2
-rw-r--r--science/cdo/Makefile9
-rw-r--r--science/dftbplus/Makefile2
-rw-r--r--science/libctl/Makefile2
-rw-r--r--science/libtensorflow1/Makefile5
-rw-r--r--science/libtensorflow1/files/extra-patch-third_party_repo.bzl25
-rw-r--r--science/siesta/Makefile2
-rw-r--r--science/simlib/Makefile2
-rw-r--r--science/step/Makefile1
-rw-r--r--science/zotero/Makefile1
-rw-r--r--security/hashcat/Makefile2
-rw-r--r--security/isal-kmod/Makefile1
-rw-r--r--security/libfido2/Makefile9
-rw-r--r--security/libfido2/files/extra-patch-openssl26
-rw-r--r--security/nettle/Makefile4
-rw-r--r--security/openssl-quictls/Makefile11
-rw-r--r--security/openssl/Makefile11
-rw-r--r--security/openssl111/Makefile11
-rw-r--r--security/openssl31-quictls/Makefile8
-rw-r--r--security/openssl31/Makefile11
-rw-r--r--security/openssl32/Makefile11
-rw-r--r--security/openvpn-devel/Makefile1
-rw-r--r--security/openvpn/Makefile1
-rw-r--r--security/opie/Makefile1
-rw-r--r--security/p5-Crypt-Curve25519/Makefile1
-rw-r--r--security/p5-PGP/Makefile2
-rw-r--r--security/pam_ssh_agent_auth/Makefile1
-rw-r--r--security/pam_u2f/Makefile4
-rw-r--r--security/picocrypt/Makefile2
-rw-r--r--security/pkcs11-tools/Makefile13
-rw-r--r--security/rcracki_mt/Makefile2
-rw-r--r--security/snort3/Makefile6
-rw-r--r--security/sssd-devel/Makefile10
-rw-r--r--security/tor/Makefile1
-rw-r--r--security/wazuh-manager/Makefile6
-rw-r--r--security/zeek/Makefile2
-rw-r--r--shells/ksh-devel/Makefile2
-rw-r--r--shells/v7sh/files/Makefile4
-rw-r--r--sysutils/acpica-tools/Makefile2
-rw-r--r--sysutils/arcconf/Makefile8
-rw-r--r--sysutils/bhyve+/Makefile4
-rw-r--r--sysutils/bhyve+/files/freebsd-12/3/patch-virtio-9p31
-rw-r--r--sysutils/bhyve+/files/freebsd-12/patch-libvmmapi33
-rw-r--r--sysutils/bhyve+/files/freebsd-12/patch-msi-x-mappings132
-rw-r--r--sysutils/bhyve+/files/freebsd-12/patch-virtio-9p385
-rw-r--r--sysutils/dynamic_motd/Makefile2
-rw-r--r--sysutils/egress-monitor/Makefile2
-rw-r--r--sysutils/hammer2/Makefile2
-rw-r--r--sysutils/hid-tools/Makefile1
-rw-r--r--sysutils/mbgtools/Makefile1
-rw-r--r--sysutils/mtm/Makefile13
-rw-r--r--sysutils/ocijail/Makefile2
-rw-r--r--sysutils/openzfs-kmod/Makefile5
-rw-r--r--sysutils/plasma5-powerdevil/files/patch-daemon_backends_upower_freebsdbacklighthelper.cpp17
-rw-r--r--sysutils/syslog-ng/Makefile2
-rw-r--r--sysutils/vector/Makefile1
-rw-r--r--sysutils/xen-tools/Makefile4
-rw-r--r--sysutils/xnvme/Makefile1
-rw-r--r--sysutils/zidrav/Makefile2
-rw-r--r--textproc/apertium/Makefile2
-rw-r--r--textproc/p5-CSS-Sass/Makefile2
-rw-r--r--textproc/py-ufal.udpipe/Makefile2
-rw-r--r--textproc/senna/Makefile1
-rw-r--r--textproc/source-highlight/Makefile2
-rw-r--r--textproc/turboxsl/Makefile2
-rw-r--r--textproc/uim/Makefile2
-rw-r--r--textproc/xmlwrapp/Makefile2
-rw-r--r--www/chromium/files/patch-third__party_wayland_include_config.h23
-rw-r--r--www/chromium/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc21
-rw-r--r--www/edbrowse/Makefile7
-rw-r--r--www/edbrowse/files/extra-patch-openssl11
-rw-r--r--www/firefox-esr/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc23
-rw-r--r--www/firefox/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc23
-rw-r--r--www/h2o-devel/Makefile1
-rw-r--r--www/h2o/Makefile1
-rw-r--r--www/iridium/files/patch-third__party_wayland_include_config.h23
-rw-r--r--www/iridium/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc21
-rw-r--r--www/ladybird/Makefile1
-rw-r--r--www/librewolf/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc23
-rw-r--r--www/luakit-devel/Makefile3
-rw-r--r--www/luakit/Makefile3
-rw-r--r--www/nginx-devel/Makefile7
-rw-r--r--www/nginx/Makefile7
-rw-r--r--www/osrm-backend/Makefile10
-rw-r--r--www/qt5-webengine/Makefile4
-rw-r--r--www/tor-browser/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc23
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_wayland_include_config.h23
-rw-r--r--www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc21
-rw-r--r--www/webkit2-gtk4/files/patch-Source_WTF_wtf_PlatformCPU.h28
-rw-r--r--www/webkit2-gtk4/files/patch-Source_WTF_wtf_dtoa_utils.h12
-rw-r--r--x11-servers/xorg-server/Makefile6
-rw-r--r--x11-servers/xorg-server/files/patch-hw_xfree86_os-support_bsd_bsd__init.c22
-rw-r--r--x11-servers/xorg-server/pkg-plist1
-rw-r--r--x11-toolkits/kf5-kirigami2/Makefile10
-rw-r--r--x11-toolkits/movingmotif/Makefile2
-rw-r--r--x11-toolkits/scintilla/Makefile8
-rw-r--r--x11-toolkits/vte3/Makefile16
-rw-r--r--x11-toolkits/wlroots/Makefile8
-rw-r--r--x11-wm/hyprland/Makefile2
-rw-r--r--x11-wm/wmii/Makefile2
-rw-r--r--x11/foot/Makefile1
-rw-r--r--x11/kitty/Makefile5
-rw-r--r--x11/kitty/files/extra-patch-kitty_data-types.h13
-rw-r--r--x11/nvidia-driver/Makefile2
-rw-r--r--x11/sandbar/Makefile2
-rw-r--r--x11/squeekboard/Makefile1
-rw-r--r--x11/wl-mirror/Makefile2
-rw-r--r--x11/xdg-desktop-portal-hyprland/Makefile2
-rw-r--r--x11/xdg-desktop-portal-luminous/Makefile2
475 files changed, 312 insertions, 3031 deletions
diff --git a/Mk/Uses/cabal.mk b/Mk/Uses/cabal.mk
index 92dbec7a9553..e91e4522e8f7 100644
--- a/Mk/Uses/cabal.mk
+++ b/Mk/Uses/cabal.mk
@@ -81,12 +81,6 @@ IGNORE= CABAL_PROJECT: invalid value: ${CABAL_PROJECT}
BROKEN= ${USE_CABAL:Mbasement-0.0.1[4-5]} package doesn't compile on i386
. endif
-. if ${OSVERSION} < 1302000 && defined(USE_CABAL) && ${USE_CABAL:Mtext-2.*}
-# Band-aids for a Clang bug that is shipped with FreeBSD < 13.2
-BUILD_DEPENDS+= clang15:devel/llvm15
-BUILD_ARGS+= --ghc-options='-pgmc clang++15'
-. endif
-
PKGNAMEPREFIX?= hs-
CABAL_EXECUTABLES?= ${PORTNAME}
diff --git a/Mk/Uses/qt-dist.mk b/Mk/Uses/qt-dist.mk
index 60e88885f958..1d16f2f5371f 100644
--- a/Mk/Uses/qt-dist.mk
+++ b/Mk/Uses/qt-dist.mk
@@ -261,7 +261,7 @@ _EXTRA_PATCHES_QT5= ${PORTSDIR}/devel/${_QT_RELNAME}/files/extrapatch-mkspecs_fe
${PORTSDIR}/devel/${_QT_RELNAME}/files/extrapatch-mkspecs_features_qt__module.prf \
${PORTSDIR}/devel/${_QT_RELNAME}/files/extrapatch-mkspecs_common_bsd_bsd.conf \
${PORTSDIR}/devel/${_QT_RELNAME}/files/extrapatch-mkspecs_freebsd-clang_qmake.conf
-. if ${ARCH:Mmips*} || (${ARCH:Mpowerpc*} && !exists(/usr/bin/clang)) || ${ARCH} == sparc64
+. if ${ARCH:Mmips*} || (${ARCH:Mpowerpc*} && !exists(/usr/bin/clang))
_EXTRA_PATCHES_QT5+= ${PORTSDIR}/devel/${_QT_RELNAME}/files/extra-patch-mkspecs_common_g++-base.conf \
${PORTSDIR}/devel/${_QT_RELNAME}/files/extra-patch-mkspecs_common_gcc-base.conf \
${PORTSDIR}/devel/${_QT_RELNAME}/files/extrapatch-mkspecs_freebsd-g++_qmake.conf
@@ -548,4 +548,3 @@ qt-create-kde-distfile:
${_KDE_${_QT_DIST}_BRANCH}
.endif # defined(_QT_DIST_MK_INCLUDED)
-
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index dae7b5772f40..c6593af4f8cf 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -42,7 +42,7 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
# OSREL - The release version of the operating system as a text
# string (e.g., "12.4").
# OSVERSION - The operating system version as a comparable integer;
-# the value of __FreeBSD_version (e.g., 1204000).
+# the value of __FreeBSD_version (e.g., 1302000).
#
# This is the beginning of the list of all variables that need to be
# defined in a port, listed in order that they should be included
@@ -1184,7 +1184,7 @@ OSVERSION!= ${AWK} '/^\#define[[:blank:]]__FreeBSD_version/ {print $$3}' < ${SRC
. endif
_EXPORTED_VARS+= OSVERSION
-. if ${OPSYS} == FreeBSD && (${OSVERSION} < 1204000 || (${OSVERSION} >= 1300000 && ${OSVERSION} < 1302000))
+. if ${OPSYS} == FreeBSD && (${OSVERSION} < 1302000 )
_UNSUPPORTED_SYSTEM_MESSAGE= Ports Collection support for your ${OPSYS} version has ended, and no ports\
are guaranteed to build on this system. Please upgrade to a supported release.
. if defined(ALLOW_UNSUPPORTED_SYSTEM)
diff --git a/archivers/innoextract/Makefile b/archivers/innoextract/Makefile
index 9d46ae4ad944..7f4aa7e623e4 100644
--- a/archivers/innoextract/Makefile
+++ b/archivers/innoextract/Makefile
@@ -11,8 +11,6 @@ WWW= https://constexpr.org/innoextract/
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN_sparc64= does not build: undefined reference to std::ctype<char>::_M_widen_init()
-
BUILD_DEPENDS= boost-libs>0:devel/boost-libs
USES= cmake compiler:c++11-lang iconv
diff --git a/archivers/libarchive/Makefile b/archivers/libarchive/Makefile
index 65418bd2daa9..9833b7d85161 100644
--- a/archivers/libarchive/Makefile
+++ b/archivers/libarchive/Makefile
@@ -63,12 +63,4 @@ CONFIGURE_ENV+= ac_cv_header_localcharset_h=no \
ac_cv_lib_charset_locale_charset=no
.endif
-# Prior to 1301508 we didn't ship openssl.pc which libarchive now expects
-# so we need to use the old approach on older versions of FreeBSD
-# which is not to define Requires.private in libarchive.pc
-
-.if ${PORT_OPTIONS:MOPENSSL} && ${OPSYS} == FreeBSD && ${OSVERSION} < 1301508
-EXTRA_PATCHES= ${PATCHDIR}/extra-patch-pkgconfig-compat
-.endif
-
.include <bsd.port.post.mk>
diff --git a/archivers/libarchive/files/extra-patch-pkgconfig-compat b/archivers/libarchive/files/extra-patch-pkgconfig-compat
deleted file mode 100644
index f51609d6d0e9..000000000000
--- a/archivers/libarchive/files/extra-patch-pkgconfig-compat
+++ /dev/null
@@ -1,7 +0,0 @@
---- build/pkgconfig/libarchive.pc.in.orig 2022-12-09 13:38:31 UTC
-+++ build/pkgconfig/libarchive.pc.in
-@@ -10,4 +10,3 @@ Cflags: -I${includedir}
- Cflags.private: -DLIBARCHIVE_STATIC
- Libs: -L${libdir} -larchive
- Libs.private: @LIBS@
--Requires.private: @LIBSREQUIRED@
diff --git a/archivers/py-zstandard/Makefile b/archivers/py-zstandard/Makefile
index 0e808dcc1650..a90639e6dcb2 100644
--- a/archivers/py-zstandard/Makefile
+++ b/archivers/py-zstandard/Makefile
@@ -10,8 +10,6 @@ WWW= https://github.com/indygreg/python-zstandard
LICENSE= BSD2CLAUSE
-BROKEN_FreeBSD_12_powerpc64= fails to build: cffi.error.CDefError: parse error
-
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.8.0:devel/py-cffi@${PY_FLAVOR}
#LIB_DEPENDS= libzstd.so:archivers/zstd
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hypothesis>0:devel/py-hypothesis@${PY_FLAVOR}
diff --git a/astro/libgal/Makefile b/astro/libgal/Makefile
index a830a5d1acaf..8b0d74b3f86b 100644
--- a/astro/libgal/Makefile
+++ b/astro/libgal/Makefile
@@ -14,6 +14,4 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} --sysconfdir=${PREFIX} --enable-shared=yes
USE_LDCONFIG= yes
-BROKEN_sparc64= Does not compile on sparc64: gcc coredump
-
.include <bsd.port.mk>
diff --git a/astro/oskar/Makefile b/astro/oskar/Makefile
index b3daff360116..9583d9efd6a6 100644
--- a/astro/oskar/Makefile
+++ b/astro/oskar/Makefile
@@ -12,7 +12,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64 powerpc64le
ONLY_FOR_ARCHS_REASON= gccfeatures.h:54:4: This code has only been tested on x86 and powerpc platforms
-BROKEN_FreeBSD_12_powerpc64= fails to compile: oskar_convert_cirs_relative_directions_to_enu_directions.c:67:29: 'csinl' undeclared (first use in this function)
LIB_DEPENDS= libcfitsio.so:astro/cfitsio \
libhdf5.so:science/hdf5 \
diff --git a/audio/cheesecutter/Makefile b/audio/cheesecutter/Makefile
index 065f178cbabf..add12ff50145 100644
--- a/audio/cheesecutter/Makefile
+++ b/audio/cheesecutter/Makefile
@@ -22,6 +22,7 @@ GH_ACCOUNT= ehaupt
GH_PROJECT= CheeseCutter
MAKEFILE= Makefile.ldc
+MAKE_ARGS= DLDFLAGS=-L=-Wl,-z,nostart-stop-gc
MAKE_ENV+= EXAMPLESDIR=${EXAMPLESDIR}
OPTIONS_DEFINE= EXAMPLES
@@ -35,10 +36,4 @@ post-install:
${INSTALL_MAN} ${WRKSRC}/doc/${f}.fr.1 ${STAGEDIR}${MANPREFIX}/share/man/fr/man1
.endfor
-.include <bsd.port.pre.mk>
-
-.if (${OSVERSION} >= 1301000)
-MAKE_ARGS= DLDFLAGS=-L=-Wl,-z,nostart-stop-gc
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/audio/fdk-aac/Makefile b/audio/fdk-aac/Makefile
index b79dbc42c985..23a0f666818d 100644
--- a/audio/fdk-aac/Makefile
+++ b/audio/fdk-aac/Makefile
@@ -12,9 +12,6 @@ LICENSE_NAME= Software License for The Fraunhofer FDK AAC Codec Library for Andr
LICENSE_FILE= ${WRKSRC}/NOTICE
LICENSE_PERMS= dist-mirror pkg-mirror auto-accept
-NOT_FOR_ARCHS= sparc64
-NOT_FOR_ARCHS_REASON= not yet ported to this architecture
-
USES= cmake
USE_LDCONFIG= yes
diff --git a/audio/mhwaveedit/Makefile b/audio/mhwaveedit/Makefile
index 48fb601199ed..e301557e69db 100644
--- a/audio/mhwaveedit/Makefile
+++ b/audio/mhwaveedit/Makefile
@@ -24,7 +24,6 @@ CONFIGURE_ARGS= --without-alsalib \
--with-build-time="-"
BROKEN_powerpc64= fails to compile on powerpc64: convert_inc.c: conflicting types for 'C_FLOAT_PCM32SBEPM'
-BROKEN_sparc64= fails to compile on sparc64
OPTIONS_DEFINE= DOUBLE_SAMPLES JACK LADSPA OSS PORTAUDIO \
PULSEAUDIO SAMPLERATE SDL SNDFILE NLS
diff --git a/audio/mixertui/Makefile b/audio/mixertui/Makefile
index 013703c8cc7c..023a1d6ad061 100644
--- a/audio/mixertui/Makefile
+++ b/audio/mixertui/Makefile
@@ -12,6 +12,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libsysctlmibinfo2.so:devel/libsysctlmibinfo2
+USES= ncurses
USE_GITLAB= yes
GL_ACCOUNT= alfix
@@ -24,12 +25,4 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MAN8PREFIX}/share/man/man8
-.include <bsd.port.options.mk>
-
-.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1300079
-USES+= ncurses
-.else
-USES+= ncurses:port
-.endif
-
.include <bsd.port.mk>
diff --git a/audio/nas/Makefile b/audio/nas/Makefile
index 38197cb04e4d..ebab2d4da15a 100644
--- a/audio/nas/Makefile
+++ b/audio/nas/Makefile
@@ -18,7 +18,7 @@ USE_LDCONFIG= yes
MAKE_ENV+= COMPRESS_CMD="${COMPRESS_CMD:S/c//}"
MAKE_JOBS_UNSAFE= yes
-.include <bsd.port.pre.mk>
+FPIC= -fpic
post-configure:
# Work around shortcomings of the Imake.rules et. al:
@@ -27,13 +27,7 @@ post-configure:
-e 's,\(\$$(AR) \$$@ \$$\)(OBJS),\1(OBJS:S|^|unshared/|),' \
${WRKSRC}/lib/audio/Makefile
-.if ${ARCH} == "sparc64"
-FPIC= -fPIC
-.else
-FPIC= -fpic
-.endif
-
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libaudio.so.2
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/audio/ncpamixer/Makefile b/audio/ncpamixer/Makefile
index 033bf81f161e..650b7c0a52cd 100644
--- a/audio/ncpamixer/Makefile
+++ b/audio/ncpamixer/Makefile
@@ -12,7 +12,7 @@ LICENSE_FILE= ${WRKSRC}/../LICENSE
LIB_DEPENDS= libpulse.so:audio/pulseaudio
-USES= cmake compiler:c++17-lang
+USES= cmake compiler:c++17-lang ncurses
USE_GITHUB= yes
GH_ACCOUNT= fulhax
@@ -21,13 +21,4 @@ WRKSRC_SUBDIR= src
PLIST_FILES= bin/${PORTNAME}
-.include <bsd.port.options.mk>
-
-.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1300079
-USES+= ncurses
-.else
-USES+= ncurses:port
-CFLAGS+= -I${LOCALBASE}/include/ncurses
-.endif
-
.include <bsd.port.mk>
diff --git a/audio/opus/Makefile b/audio/opus/Makefile
index ff12a9325b3d..70abf5edd7b0 100644
--- a/audio/opus/Makefile
+++ b/audio/opus/Makefile
@@ -21,11 +21,4 @@ CONFIGURE_ARGS= --enable-custom-modes \
INSTALL_TARGET= install-strip
TEST_TARGET= check
-.include <bsd.port.options.mk>
-
-# drop after FreeBSD 12 EOL
-.if ${ARCH} == "arm"
-CONFIGURE_ARGS+=--enable-fixed-point
-.endif
-
.include <bsd.port.mk>
diff --git a/audio/rhvoice/Makefile b/audio/rhvoice/Makefile
index aec0128857cb..d5c529dc0f79 100644
--- a/audio/rhvoice/Makefile
+++ b/audio/rhvoice/Makefile
@@ -12,8 +12,6 @@ LICENSE_COMB= multi
LICENSE_FILE_LGPL21+ = ${WRKSRC}/licenses/lgpl-2.1.txt
LICENSE_FILE_GPLv3+ = ${WRKSRC}/licenses/gpl-3.0.txt
-BROKEN_FreeBSD_12_powerpc64= fails to configure: The C++ compiler is not working
-
USES= compiler:c++0x pkgconfig scons
USE_LDCONFIG= yes
diff --git a/audio/sfizz/Makefile b/audio/sfizz/Makefile
index 1d7c40b0fc3f..bf6b20b8827d 100644
--- a/audio/sfizz/Makefile
+++ b/audio/sfizz/Makefile
@@ -69,10 +69,6 @@ VST_CMAKE_BOOL= SFIZZ_VST
.include <bsd.port.pre.mk>
-.if (${OSVERSION} < 1301505) # 20d21e43514502c0a346f3c2cdb1d8cd8c7cc6b0 commit in 13 fixed booleans in stdatomic.h that were causing breakage
-BROKEN= fails to compile: unknown type name '_Bool'
-.endif
-
post-install-LV2-on:
@${STRIP_CMD} \
${STAGEDIR}${PREFIX}/lib/lv2/sfizz.lv2/Contents/Binary/sfizz.so \
diff --git a/benchmarks/sipp/Makefile b/benchmarks/sipp/Makefile
index fb1984c80f24..9de5a3988df8 100644
--- a/benchmarks/sipp/Makefile
+++ b/benchmarks/sipp/Makefile
@@ -10,8 +10,6 @@ WWW= https://sipp.sourceforge.net/
LICENSE= GPLv2
-BROKEN_FreeBSD_12_powerpc64= fails to compile: /usr/local/lib/gcc9/include/c++/cstddef:52:8: expected unqualified-id before string constant
-
BUILD_DEPENDS= help2man:misc/help2man
USES= autoreconf compiler:c++11-lang gmake ncurses pkgconfig
diff --git a/biology/avida/Makefile b/biology/avida/Makefile
index 1c44a5fd5b52..a933fe8d50d1 100644
--- a/biology/avida/Makefile
+++ b/biology/avida/Makefile
@@ -16,7 +16,6 @@ BROKEN_armv7= invokes x86 assembler
BROKEN_mips= invokes x86 assembler
BROKEN_mips64= invokes x86 assembler
BROKEN_riscv64= invokes x86 assembler
-BROKEN_sparc64= missing atomics implementation
USES= compiler:c11 cmake ncurses
USE_CXXSTD= gnu++98
diff --git a/biology/gatk/Makefile b/biology/gatk/Makefile
index 4449c3005f90..672e53c1d812 100644
--- a/biology/gatk/Makefile
+++ b/biology/gatk/Makefile
@@ -10,8 +10,6 @@ WWW= https://gatk.broadinstitute.org/hc/en-us
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.TXT
-BROKEN_FreeBSD_12_powerpc64= fails to build: String index out of range: -1
-
BUILD_DEPENDS= gradle:devel/gradle
USES= gettext-runtime
diff --git a/biology/mafft/Makefile b/biology/mafft/Makefile
index 61f225828684..f65f210abb13 100644
--- a/biology/mafft/Makefile
+++ b/biology/mafft/Makefile
@@ -28,14 +28,6 @@ MAKE_ENV= INSTALL_LIB="${INSTALL_LIB}" \
MKDIR="${MKDIR}" \
LN="${LN}"
-.include <bsd.port.options.mk>
-
-post-patch:
-.if ${ARCH} == sparc64
- @${REINPLACE_CMD} -e 's|ENABLE_MULTITHREAD = -Denablemultithread||' \
- ${BUILD_WRKSRC}/Makefile
-.endif
-
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
diff --git a/biology/plink/Makefile b/biology/plink/Makefile
index 3eb1d24acf4c..0d0fddcbcc1e 100644
--- a/biology/plink/Makefile
+++ b/biology/plink/Makefile
@@ -11,7 +11,7 @@ WWW= https://www.cog-genomics.org/plink/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
-NOT_FOR_ARCHS= aarch64 mips64 powerpc64 powerpc64le sparc64
+NOT_FOR_ARCHS= aarch64 mips64 powerpc64 powerpc64le
NOT_FOR_ARCHS_REASON= 64bit code requires SSE2 instructions
USES= gmake fortran
diff --git a/cad/astk-serveur/Makefile b/cad/astk-serveur/Makefile
index 8d8bcec671be..764089e04c21 100644
--- a/cad/astk-serveur/Makefile
+++ b/cad/astk-serveur/Makefile
@@ -60,11 +60,6 @@ conf_dir= ${WRKSRC}/etc/astkrc
.include <bsd.port.pre.mk>
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300068
-# ASTK is not useful without french/aster
-IGNORE= a larger value of ARG_MAX is needed for Code_Aster, please upgrade your system
-.endif
-
WRKCONF= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}/configuration
.if !defined(CLIENT_SEUL)
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}/ASTK_SERV
diff --git a/cad/brlcad/Makefile b/cad/brlcad/Makefile
index f364a0a4490a..a911eb72a0d5 100644
--- a/cad/brlcad/Makefile
+++ b/cad/brlcad/Makefile
@@ -10,8 +10,6 @@ WWW= https://brlcad.org/
LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/COPYING
-BROKEN_sparc64= does not compile: invokes i386 assembler
-
BUILD_DEPENDS= xsltproc:textproc/libxslt
LIB_DEPENDS= liblz4.so:archivers/liblz4 \
libdrm.so:graphics/libdrm \
diff --git a/cad/calculix-ccx/Makefile b/cad/calculix-ccx/Makefile
index 7534ceac5692..031a7a842320 100644
--- a/cad/calculix-ccx/Makefile
+++ b/cad/calculix-ccx/Makefile
@@ -32,6 +32,9 @@ WRKSRC= ${WRKDIR}/CalculiX/${CCX_VER}/src
OPTIONS_DEFINE= DOCS EXAMPLES
+CFLAGS+= -fpic
+FFLAGS+= -fpic
+
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
@@ -44,14 +47,6 @@ DISTFILES+= ${DIST_EXAMPLES}
EXTRACT_ONLY+= ${DIST_EXAMPLES}
.endif
-.if ${ARCH} == "sparc64"
-CFLAGS+= -fPIC
-FFLAGS+= -fPIC
-.else
-CFLAGS+= -fpic
-FFLAGS+= -fpic
-.endif
-
.if ${GCC_DEFAULT} >= 10
# workaround for Missing actual argument for argument '_formal_15' at (1)
FFLAGS+= -fallow-argument-mismatch
diff --git a/cad/calculix/Makefile b/cad/calculix/Makefile
index 10668d98944a..5b7c849793d6 100644
--- a/cad/calculix/Makefile
+++ b/cad/calculix/Makefile
@@ -45,20 +45,15 @@ PSVIEWER?= gv
USES+= llvm:max=15
.endif
+CFLAGS+= -fpic
+FFLAGS+= -fpic
+
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
CPPFLAGS+= -Wno-error=int-conversion
.endif
-.if ${ARCH} == "sparc64"
-CFLAGS+= -fPIC
-FFLAGS+= -fPIC
-.else
-CFLAGS+= -fpic
-FFLAGS+= -fpic
-.endif
-
pre-build:
@${REINPLACE_CMD} -e 's!c++!${CXX}!g;' \
${WRKSRC}/libSNL/src/makefile
diff --git a/cad/klayout/Makefile b/cad/klayout/Makefile
index 63b5542e49cc..756749bcff01 100644
--- a/cad/klayout/Makefile
+++ b/cad/klayout/Makefile
@@ -11,7 +11,6 @@ LICENSE= GPLv2
BROKEN_i386= type 'hash<long long>' does not provide a call operator
BROKEN_powerpc= type 'hash<long long>' does not provide a call operator
-BROKEN_sparc64= does not compile on sparc64: gcc bug
USES= compiler:c++0x gmake gl python ruby qt:5
USE_GITHUB= yes
diff --git a/cad/libredwg/Makefile b/cad/libredwg/Makefile
index 859211a25810..1d4160974691 100644
--- a/cad/libredwg/Makefile
+++ b/cad/libredwg/Makefile
@@ -42,7 +42,7 @@ PYTHON_PORTEXAMPLES= load_dwg.py
PYTHON_VARS= SHEBANG_FILES+=examples/load_dwg.py
post-patch:
-# XXX: switch the order of #include's to unbreak on powerpc/sparc64
+# XXX: switch the order of #include's to unbreak on powerpc
# which are still based on gcc-4.2.1 (should be no-op elsewhere)
@${REINPLACE_CMD} -e '/#include "com/ { x; s/^/#include <stdlib.h>/; \
G; }; 24d' ${WRKSRC}/src/common.c
diff --git a/cad/nvc/Makefile b/cad/nvc/Makefile
index 8dbe9ef3f10c..fc49002dc3f4 100644
--- a/cad/nvc/Makefile
+++ b/cad/nvc/Makefile
@@ -21,9 +21,6 @@ LIB_DEPENDS= libelf.so:devel/elfutils \
RUN_DEPENDS= llvm${LLVM_VERSION}>0:devel/llvm${LLVM_VERSION} \
bash:shells/bash
TEST_DEPENDS= check>0:devel/check
-.if !exists(/usr/include/unwind.h)
-LIB_DEPENDS+= libunwind.so:devel/libunwind
-.endif
USES= autoreconf compiler:c++14-lang localbase pkgconfig shebangfix
diff --git a/cad/stepcode/Makefile b/cad/stepcode/Makefile
index 142f16a0081a..32cb745a8431 100644
--- a/cad/stepcode/Makefile
+++ b/cad/stepcode/Makefile
@@ -10,8 +10,6 @@ WWW= https://github.com/stepcode/stepcode/wiki
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
-BROKEN_FreeBSD_12_powerpc64= fails to configure: Schema scan for 15926-0002-lifecycle_integration.exp exited with error code 1
-
USES= cmake compiler:c++11-lang
USE_GITHUB= yes
USE_LDCONFIG= yes
diff --git a/cad/z88/Makefile b/cad/z88/Makefile
index 7dde7deb3d09..484be8f64773 100644
--- a/cad/z88/Makefile
+++ b/cad/z88/Makefile
@@ -11,8 +11,6 @@ WWW= https://en.z88.de/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN_FreeBSD_12_powerpc64= fails to link: /usr/bin/ld: : No such file: No such file or directory
-
LIB_DEPENDS= libgtkglext-x11-1.0.so:x11-toolkits/gtkglext \
libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2
diff --git a/chinese/kcfonts/Makefile b/chinese/kcfonts/Makefile
index 7ae336a23f70..cd5a9df03813 100644
--- a/chinese/kcfonts/Makefile
+++ b/chinese/kcfonts/Makefile
@@ -12,7 +12,6 @@ BUILD_DEPENDS= bdftopcf:x11-fonts/bdftopcf
MAKE_ARGS= CFONTDIR=${FONTSDIR} EFONTDIR=${FONTSDIR}
MAKE_JOBS_UNSAFE=yes
-BROKEN_sparc64= Does not build on sparc64
NO_WRKSUBDIR= yes
diff --git a/comms/aprsd/Makefile b/comms/aprsd/Makefile
index 61a67f4fb3f3..8b7e952c32ac 100644
--- a/comms/aprsd/Makefile
+++ b/comms/aprsd/Makefile
@@ -11,8 +11,6 @@ WWW= https://sourceforge.net/projects/aprsd/
LICENSE= GPLv2
-BROKEN_FreeBSD_12_powerpc64= fails to link on powerpc64 elfv1: httpserver.o:(.text+0x1074): undefined reference to `convertUpTime(int)'
-
USE_CXXSTD= c++14
USE_RC_SUBR= aprsd
diff --git a/comms/ebusd/files/patch-src_lib_ebus_datatype.cpp b/comms/ebusd/files/patch-src_lib_ebus_datatype.cpp
deleted file mode 100644
index d64b593b3f9a..000000000000
--- a/comms/ebusd/files/patch-src_lib_ebus_datatype.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/lib/ebus/datatype.cpp.orig 2023-07-08 13:54:20 UTC
-+++ src/lib/ebus/datatype.cpp
-@@ -22,6 +22,7 @@
-
- #include "lib/ebus/datatype.h"
- #include <math.h>
-+#include <cmath> # for FreeBSD 12.4
- #include <iostream>
- #include <sstream>
- #include <iomanip>
diff --git a/comms/fldigi/Makefile b/comms/fldigi/Makefile
index 945dbe72e897..f11bed5dbb4b 100644
--- a/comms/fldigi/Makefile
+++ b/comms/fldigi/Makefile
@@ -8,8 +8,6 @@ MAINTAINER= hamradio@FreeBSD.org
COMMENT= Digital decoder for psk, cw, psk31, olivia
WWW= http://www.w1hkj.com
-BROKEN_FreeBSD_12= no hid support
-
LICENSE= GPLv3
BUILD_DEPENDS= asciidoc:textproc/asciidoc \
diff --git a/comms/flrig/Makefile b/comms/flrig/Makefile
index 5aed045a55fe..41cd61f1a188 100644
--- a/comms/flrig/Makefile
+++ b/comms/flrig/Makefile
@@ -8,8 +8,6 @@ MAINTAINER= hamradio@FreeBSD.org
COMMENT= Ham Radio rig control program, cooperates with fldigi
WWW= http://www.w1hkj.com/flrig-help/index.html
-BROKEN_FreeBSD_12= no hid support
-
LICENSE= GPLv2
LIB_DEPENDS= libfltk.so:x11-toolkits/fltk \
diff --git a/comms/linrad/Makefile b/comms/linrad/Makefile
index 5230e079c6b2..2ee71c42b51a 100644
--- a/comms/linrad/Makefile
+++ b/comms/linrad/Makefile
@@ -19,7 +19,6 @@ BROKEN_armv7= fails to configure: cannot find /nxb-bin/usr/bin/cc
BROKEN_powerpc64= fails to compile: implicit declaration of function outb
BROKEN_powerpc64le= fails to compile: implicit declaration of function outb
BROKEN_riscv64= fails to build: gmake: No rule to make target 'Makefile'
-BROKEN_sparc64= fails to compile: implicit declaration of function outb
LIB_DEPENDS= librtlsdr.so:comms/rtl-sdr \
libportaudio.so:audio/portaudio \
diff --git a/comms/obexapp/Makefile b/comms/obexapp/Makefile
index 9e0627704645..c46d9eafdc11 100644
--- a/comms/obexapp/Makefile
+++ b/comms/obexapp/Makefile
@@ -15,15 +15,9 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
USES= iconv readline uidfix
PLIST_FILES= bin/obexapp man/man1/obexapp.1.gz
-.include <bsd.port.pre.mk>
-
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300134
-MAKE_ENV+= NO_WERROR=yes
-.else
MAKE_ENV+= MK_WERROR=no
-.endif
post-patch:
@${REINPLACE_CMD} -e 's/-liconv/${ICONV_LIB}/' ${WRKSRC}/Makefile
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/comms/uhd/Makefile b/comms/uhd/Makefile
index 42f65ff7afe8..55c5592138e3 100644
--- a/comms/uhd/Makefile
+++ b/comms/uhd/Makefile
@@ -32,9 +32,6 @@ GH_ACCOUNT= EttusResearch
CONFLICTS= usrp
-BROKEN_FreeBSD_12_aarch64= fails to configure: Could not find standard set_new_handler function
-BROKEN_FreeBSD_12_armv6= fails to configure: Could not find standard set_new_handler function
-BROKEN_FreeBSD_12_armv7= fails to configure: Could not find standard set_new_handler function
BROKEN_FreeBSD_13_aarch64= fails to configure: Could not find standard set_new_handler function
BROKEN_FreeBSD_13_armv6= fails to configure: Could not find standard set_new_handler function
BROKEN_FreeBSD_13_armv7= fails to configure: Could not find standard set_new_handler function
diff --git a/converters/wkhtmltopdf/files/patch-src__3rdparty__webkit__Source__JavaScriptCore__runtime__JSValueInlineMethods.h b/converters/wkhtmltopdf/files/patch-src__3rdparty__webkit__Source__JavaScriptCore__runtime__JSValueInlineMethods.h
deleted file mode 100644
index b902a924444b..000000000000
--- a/converters/wkhtmltopdf/files/patch-src__3rdparty__webkit__Source__JavaScriptCore__runtime__JSValueInlineMethods.h
+++ /dev/null
@@ -1,26 +0,0 @@
---- src/3rdparty/webkit/Source/JavaScriptCore/runtime/JSValueInlineMethods.h.orig 2018-05-29 06:56:52 UTC
-+++ src/3rdparty/webkit/Source/JavaScriptCore/runtime/JSValueInlineMethods.h
-@@ -227,7 +227,11 @@ namespace JSC {
- u.asBits.tag = CellTag;
- else
- u.asBits.tag = EmptyValueTag;
-+#if defined(__sparc64__)
-+ u.asBits.payload = reinterpret_cast<int64_t>(ptr);
-+#else
- u.asBits.payload = reinterpret_cast<int32_t>(ptr);
-+#endif
- #if ENABLE(JSC_ZOMBIES)
- ASSERT(!isZombie());
- #endif
-@@ -239,7 +243,11 @@ namespace JSC {
- u.asBits.tag = CellTag;
- else
- u.asBits.tag = EmptyValueTag;
-+#if defined(__sparc64__)
-+ u.asBits.payload = reinterpret_cast<int64_t>(const_cast<JSCell*>(ptr));
-+#else
- u.asBits.payload = reinterpret_cast<int32_t>(const_cast<JSCell*>(ptr));
-+#endif
- #if ENABLE(JSC_ZOMBIES)
- ASSERT(!isZombie());
- #endif
diff --git a/databases/firebird30-server/Makefile b/databases/firebird30-server/Makefile
index 1aa032d3fea8..fb82512de929 100644
--- a/databases/firebird30-server/Makefile
+++ b/databases/firebird30-server/Makefile
@@ -64,8 +64,6 @@ LD= ${CC}
STRIP=
ONLY_FOR_ARCHS= i386 amd64
-# sparc64 fails due to lack of valid AtomicCounter implementation in
-# src/common/classes/fb_atomic.h; presumably other tier-2s would as well
INSTALL_FB= ${INSTALL} ${COPY}
diff --git a/databases/firebird40-server/Makefile b/databases/firebird40-server/Makefile
index 2c9667ea8edb..cd06c6ab3257 100644
--- a/databases/firebird40-server/Makefile
+++ b/databases/firebird40-server/Makefile
@@ -65,8 +65,6 @@ LD= ${CC}
STRIP=
ONLY_FOR_ARCHS= i386 amd64 powerpc64le
-# sparc64 fails due to lack of valid AtomicCounter implementation in
-# src/common/classes/fb_atomic.h; presumably other tier-2s would as well
INSTALL_FB= ${INSTALL} ${COPY}
diff --git a/databases/gnats4/Makefile b/databases/gnats4/Makefile
index 50943293c96c..62b6f1c0c377 100644
--- a/databases/gnats4/Makefile
+++ b/databases/gnats4/Makefile
@@ -14,7 +14,6 @@ LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_mips= Does not build: error: conflicting types for yy_scan_string
BROKEN_mips64= Does not build: error: conflicting types for yy_scan_string
-BROKEN_FreeBSD_12_powerpc64= fails to build on powerpc64 elfv1: conflicting types for yy_scan_string
USES= cpe gettext-runtime gmake
CPE_VENDOR= gnu
diff --git a/databases/grass7/Makefile b/databases/grass7/Makefile
index 01707ab0ce47..c3c881e7a75f 100644
--- a/databases/grass7/Makefile
+++ b/databases/grass7/Makefile
@@ -23,8 +23,6 @@ WWW= https://grass.osgeo.org/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/GPL.TXT
-BROKEN_sparc64= Does not configure on sparc64
-
BUILD_DEPENDS= ${PY_NUMPY} \
${PYTHON_SITELIBDIR}/six.py:devel/py-six@${PY_FLAVOR}
LIB_DEPENDS= libgdal.so:graphics/gdal \
diff --git a/databases/leofs/Makefile b/databases/leofs/Makefile
index 87969c2295fb..00ff718ee162 100644
--- a/databases/leofs/Makefile
+++ b/databases/leofs/Makefile
@@ -10,7 +10,7 @@ WWW= https://leo-project.net/
LICENSE= APACHE20
-NOT_FOR_ARCHS= riscv64 sparc64
+NOT_FOR_ARCHS= riscv64
NOT_FOR_ARCHS_REASON= does not build: error Please implement AtomicPointer for this platform
BUILD_DEPENDS= ${LOCALBASE}/lib/erlang21/bin/erlc:lang/erlang-runtime21 \
diff --git a/databases/libmemcached/Makefile b/databases/libmemcached/Makefile
index 71f031d3014f..9d24a3914075 100644
--- a/databases/libmemcached/Makefile
+++ b/databases/libmemcached/Makefile
@@ -45,11 +45,4 @@ MURMUR_CMAKE_BOOL= ENABLE_HASH_MURMUR
SASL_CMAKE_BOOL= ENABLE_SASL
SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
-.include <bsd.port.pre.mk>
-
-# Skip libcrypto.pc while using OpenSSL from base system on older FreeBSD versions which does not skip this file
-.if ${SSL_DEFAULT} == base && !exists(/usr/libdata/pkgconfig/libcrypto.pc)
-EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-openssl
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/databases/libmemcached/files/extra-patch-openssl b/databases/libmemcached/files/extra-patch-openssl
deleted file mode 100644
index bf65fa7f4ece..000000000000
--- a/databases/libmemcached/files/extra-patch-openssl
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/libhashkit/CMakeLists.txt.orig 2023-03-06 08:47:30 UTC
-+++ src/libhashkit/CMakeLists.txt
-@@ -45,7 +45,7 @@ if(ENABLE_OPENSSL_CRYPTO)
- if(OPENSSL_CRYPTO_LIBRARY)
- target_compile_definitions(libhashkit PRIVATE HAVE_OPENSSL_CRYPTO)
- target_link_libraries(libhashkit PUBLIC OpenSSL::Crypto)
-- pkgconfig_export(REQUIRES_PRIVATE libcrypto)
-+ pkgconfig_export(REQUIRES_PRIVATE "")
- else()
- message(WARNING "Could not find OpenSSL::Crypto")
- endif()
diff --git a/databases/memcached/Makefile b/databases/memcached/Makefile
index d84ba206b995..0f9d6dab5992 100644
--- a/databases/memcached/Makefile
+++ b/databases/memcached/Makefile
@@ -37,8 +37,6 @@ OPTIONS_DEFAULT= SASL
OPTIONS_DEFAULT_amd64= DTRACE
OPTIONS_DEFAULT_powerpc64= DTRACE
OPTIONS_DEFAULT_powerpc64le= DTRACE
-OPTIONS_EXCLUDE_powerpc64= ${OPTIONS_EXCLUDE_${ARCH}_${OSREL:R}}
-OPTIONS_EXCLUDE_powerpc64_12= DTRACE
DTRACE_DESC= Enable dtrace probes
SASL_DESC= Enable SASL Authentication
diff --git a/databases/mysql80-server/Makefile b/databases/mysql80-server/Makefile
index f8b441f89ffd..e4bd7f2a9758 100644
--- a/databases/mysql80-server/Makefile
+++ b/databases/mysql80-server/Makefile
@@ -198,11 +198,6 @@ USES+= compiler:c++17-lang
post-extract:
@${RM} -rv ${WRKSRC}/sql/sql_hints.yy.cc ${WRKSRC}/sql/sql_hints.yy.h
-# This can be removed after FreeBSD 12.4 and 13.1 EoL
-.if defined(CLIENT_ONLY) && !exists(${OPENSSLBASE}/libdata/pkgconfig/openssl.pc)
-EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-scripts_CMakeLists.txt
-.endif
-
# XXX MBi alignment issue
.if ${ARCH} == i386
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-boost-boost_1_77_0-boost-move-detail-type_traits.hpp
diff --git a/databases/mysql80-server/files/extra-patch-scripts_CMakeLists.txt b/databases/mysql80-server/files/extra-patch-scripts_CMakeLists.txt
deleted file mode 100644
index df891b025ccd..000000000000
--- a/databases/mysql80-server/files/extra-patch-scripts_CMakeLists.txt
+++ /dev/null
@@ -1,10 +0,0 @@
---- scripts/CMakeLists.txt.orig 2022-12-16 15:34:44 UTC
-+++ scripts/CMakeLists.txt
-@@ -362,7 +362,6 @@ IF (WITH_SSL STREQUAL "system")
- # We have implemented "system" for other platforms as well, but those
- # are non-native packages.
- IF(LINUX OR SOLARIS OR FREEBSD)
-- SET(CONFIG_REQUIRES_PRIVATE "openssl")
- STRING(REPLACE "-lssl" "" CONFIG_LIBS_PRIVATE "${CONFIG_LIBS_PRIVATE}")
- STRING(REPLACE "-lcrypto" "" CONFIG_LIBS_PRIVATE "${CONFIG_LIBS_PRIVATE}")
- STRING(REGEX REPLACE "[ ]+" " " CONFIG_LIBS_PRIVATE
diff --git a/databases/mysql81-server/Makefile b/databases/mysql81-server/Makefile
index 6e1f76506644..dc321e3067ea 100644
--- a/databases/mysql81-server/Makefile
+++ b/databases/mysql81-server/Makefile
@@ -198,11 +198,6 @@ USES+= compiler:c++17-lang
post-extract:
@${RM} -rv ${WRKSRC}/sql/sql_hints.yy.cc ${WRKSRC}/sql/sql_hints.yy.h
-# This can be removed after FreeBSD 12.4 and 13.1 EoL
-.if defined(CLIENT_ONLY) && !exists(${OPENSSLBASE}/libdata/pkgconfig/openssl.pc)
-EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-scripts_CMakeLists.txt
-.endif
-
# XXX MBi alignment issue
.if ${ARCH} == i386
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-boost_boost__1__77__0_boost_move_detail_type__traits.hpp \
diff --git a/databases/mysql81-server/files/extra-patch-scripts_CMakeLists.txt b/databases/mysql81-server/files/extra-patch-scripts_CMakeLists.txt
deleted file mode 100644
index df891b025ccd..000000000000
--- a/databases/mysql81-server/files/extra-patch-scripts_CMakeLists.txt
+++ /dev/null
@@ -1,10 +0,0 @@
---- scripts/CMakeLists.txt.orig 2022-12-16 15:34:44 UTC
-+++ scripts/CMakeLists.txt
-@@ -362,7 +362,6 @@ IF (WITH_SSL STREQUAL "system")
- # We have implemented "system" for other platforms as well, but those
- # are non-native packages.
- IF(LINUX OR SOLARIS OR FREEBSD)
-- SET(CONFIG_REQUIRES_PRIVATE "openssl")
- STRING(REPLACE "-lssl" "" CONFIG_LIBS_PRIVATE "${CONFIG_LIBS_PRIVATE}")
- STRING(REPLACE "-lcrypto" "" CONFIG_LIBS_PRIVATE "${CONFIG_LIBS_PRIVATE}")
- STRING(REGEX REPLACE "[ ]+" " " CONFIG_LIBS_PRIVATE
diff --git a/databases/p5-Tie-LevelDB/Makefile b/databases/p5-Tie-LevelDB/Makefile
index 1bef50a7ea42..a2fae8b2943f 100644
--- a/databases/p5-Tie-LevelDB/Makefile
+++ b/databases/p5-Tie-LevelDB/Makefile
@@ -14,7 +14,6 @@ LICENSE_COMB= dual
NOT_FOR_ARCHS= aarch64 riscv64
NOT_FOR_ARCHS_REASON= does not build: Please implement AtomicPointer for this platform
-BROKEN_sparc64= does not build: unrecognized command line options
LIB_DEPENDS= libleveldb.so:databases/leveldb
diff --git a/databases/postgresql16-server/Makefile b/databases/postgresql16-server/Makefile
index e9905887a39e..b33f71a47525 100644
--- a/databases/postgresql16-server/Makefile
+++ b/databases/postgresql16-server/Makefile
@@ -108,8 +108,6 @@ ZSTD_LIB_DEPENDS+= libzstd.so:archivers/zstd
OPTIONS_DEFINE+= LLVM
OPTIONS_DEFAULT+= LLVM
LLVM_DESC= Build with support for JIT-compiling expressions
-OPTIONS_EXCLUDE+= ${OPTIONS_EXCLUDE_${ARCH}_${OSREL:R}}
-OPTIONS_EXCLUDE_powerpc64_12= LLVM
LLVM_CONFIGURE_WITH= llvm
LLVM_CONFIGURE_ENV= LLVM_CONFIG=${LLVM_CONFIG} \
CLANG=${LOCALBASE}/bin/clang${LLVM_VERSION}
diff --git a/databases/rocksdb/Makefile b/databases/rocksdb/Makefile
index 88273692e9f8..9efdd9f7944e 100644
--- a/databases/rocksdb/Makefile
+++ b/databases/rocksdb/Makefile
@@ -17,7 +17,6 @@ LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING
BROKEN_DragonFly= does not build on DragonFly BSD using GCC with -Werror
BROKEN_armv6= does not build: db/c.cc:2281:44: implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'size_t' (aka 'unsigned int')
BROKEN_armv7= does not build: /nxb-bin/usr/bin/ld: undefined reference to symbol `__gnu_Unwind_Find_exidx@@FBSD_1.4' (try adding -lc) #'`
-BROKEN_FreeBSD_12_powerpc64= does not build: util/crc32c.cc:435:22: 'arch_ppc_probe' was not declared in this scope
BUILD_DEPENDS= bash:shells/bash
LIB_DEPENDS= libgflags.so:devel/gflags \
diff --git a/databases/soci/Makefile b/databases/soci/Makefile
index 5a6e6cb72660..216e2bc3c79a 100644
--- a/databases/soci/Makefile
+++ b/databases/soci/Makefile
@@ -35,7 +35,6 @@ OPTIONS_EXCLUDE_powerpc= FIREBIRD
OPTIONS_EXCLUDE_powerpc64= FIREBIRD
OPTIONS_EXCLUDE_powerpc64le= FIREBIRD
OPTIONS_EXCLUDE_riscv64= FIREBIRD
-OPTIONS_EXCLUDE_sparc64= FIREBIRD
OPTIONS_SUB= yes
diff --git a/deskutils/easystroke/Makefile b/deskutils/easystroke/Makefile
index b83020628e3b..447a99f34503 100644
--- a/deskutils/easystroke/Makefile
+++ b/deskutils/easystroke/Makefile
@@ -11,8 +11,6 @@ WWW= https://github.com/thjaeger/easystroke
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN_FreeBSD_12_powerpc64= fails to build on powerpc64 elfv1: handler.cc:560:27: call of overloaded 'abs(float&)' is ambiguous
-
BUILD_DEPENDS= help2man:misc/help2man \
${LOCALBASE}/include/xorg/xserver-properties.h:x11-servers/xorg-server
LIB_DEPENDS= libdbus-1.so:devel/dbus \
diff --git a/deskutils/xdg-desktop-portal/Makefile b/deskutils/xdg-desktop-portal/Makefile
index 5480de32d21b..776c4d3c66ed 100644
--- a/deskutils/xdg-desktop-portal/Makefile
+++ b/deskutils/xdg-desktop-portal/Makefile
@@ -25,14 +25,7 @@ MESON_ARGS= -Ddocbook-docs=disabled -Dman-pages=disabled -Dpytest=disabled \
-Dflatpak-interfaces=disabled -Dsandboxed-image-validation=false \
-Dsystemd=disabled
-.include <bsd.port.pre.mk>
-
-.if (${OSVERSION} >= 1400000 && ${OSVERSION} < 1400008) \
- || ${OSVERSION} < 1300000
-IGNORE= requires O_PATH support in open(2)
-.endif
-
post-install:
@${RM} -r ${STAGEDIR}${PREFIX}/lib/systemd
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/devel/9base/Makefile b/devel/9base/Makefile
index 2efae3deb8d4..fb1e4e5cb463 100644
--- a/devel/9base/Makefile
+++ b/devel/9base/Makefile
@@ -11,7 +11,7 @@ WWW= https://tools.suckless.org/9base
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64 powerpc64le sparc64
+ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64 powerpc64le
ONLY_FOR_ARCHS_REASON= has low-level code unavailable for ${ARCH}
USES= cpe shebangfix
diff --git a/devel/abi-compliance-checker/Makefile b/devel/abi-compliance-checker/Makefile
index 1505714b1d24..3b6331094d64 100644
--- a/devel/abi-compliance-checker/Makefile
+++ b/devel/abi-compliance-checker/Makefile
@@ -31,6 +31,8 @@ SHEBANG_FILES= checker/*.pl adumper/*.pl
CTAGS?= exctags
+PICFLAG?= -fpic
+
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPORTS_BINUTILS}
@@ -42,12 +44,6 @@ OBJDUMP?= ${PREFIX}/bin/objdump
CPPFILT?= /usr/bin/c++filt
.endif
-.if ${ARCH} == "sparc64"
-PICFLAG?= -fPIC
-.else
-PICFLAG?= -fpic
-.endif
-
# Only vtable-dumper is a C program; the rest is all perl script
do-build:
cd ${WRKSRC}/vdumper && \
diff --git a/devel/adacurses/Makefile b/devel/adacurses/Makefile
index c609aa7ee004..92aa73f87adc 100644
--- a/devel/adacurses/Makefile
+++ b/devel/adacurses/Makefile
@@ -15,7 +15,7 @@ LICENSE_FILE= ${WRKSRC}/README
#BUILD_DEPENDS= gsed:textproc/gsed
#BINARY_ALIAS= sed=${LOCALBASE}/bin/gsed
-USES= ada autoreconf gmake pkgconfig tar:tgz
+USES= ada autoreconf gmake ncurses pkgconfig tar:tgz
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-ada-include=${PREFIX}/include/adacurses \
@@ -50,12 +50,4 @@ do-install-DOCS-on:
(cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} \
${MAKE_CMD} ${MAKE_ARGS} THIS=${PORTNAME} install.html)
-.include <bsd.port.options.mk>
-
-.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1300079
-USES+= ncurses
-.else
-USES+= ncurses:port
-.endif
-
.include <bsd.port.mk>
diff --git a/devel/android-tools/files/patch-vendor_adb_compression__utils.h b/devel/android-tools/files/patch-vendor_adb_compression__utils.h
deleted file mode 100644
index a51f7377e357..000000000000
--- a/devel/android-tools/files/patch-vendor_adb_compression__utils.h
+++ /dev/null
@@ -1,28 +0,0 @@
---- vendor/adb/compression_utils.h.orig 2022-06-09 20:52:06 UTC
-+++ vendor/adb/compression_utils.h
-@@ -95,7 +95,12 @@ struct NullDecoder final : public Decoder {
- void* p = output_buffer_.data();
- while (available_out > 0 && !input_buffer_.empty()) {
- size_t len = std::min(available_out, input_buffer_.front_size());
-+#ifdef __FreeBSD__
-+ // TODO: Delete when FreeBSD 12.x goes EOL
-+ p = (char *)memcpy(p, input_buffer_.front_data(), len) + len;
-+#else
- p = mempcpy(p, input_buffer_.front_data(), len);
-+#endif
- available_out -= len;
- input_buffer_.drop_front(len);
- }
-@@ -119,7 +124,12 @@ struct NullEncoder final : public Encoder {
-
- while (available_out > 0 && !input_buffer_.empty()) {
- size_t len = std::min(available_out, input_buffer_.front_size());
-+#ifdef __FreeBSD__
-+ // TODO: Delete when FreeBSD 12.x goes EOL
-+ p = (char *)memcpy(p, input_buffer_.front_data(), len) + len;
-+#else
- p = mempcpy(p, input_buffer_.front_data(), len);
-+#endif
- available_out -= len;
- input_buffer_.drop_front(len);
- }
diff --git a/devel/api-sanity-autotest/Makefile b/devel/api-sanity-autotest/Makefile
index f8af90e00207..ea4b8efd00a9 100644
--- a/devel/api-sanity-autotest/Makefile
+++ b/devel/api-sanity-autotest/Makefile
@@ -34,17 +34,13 @@ PORTDOCS= Changes.html Descriptor.html Options.html Readme.html \
OPTIONS_DEFINE= DOCS
+PICFLAG?= -fpic
+
.include <bsd.port.options.mk>
CPPFILT?= /usr/bin/c++filt
READELF?= /usr/bin/readelf
-.if ${ARCH} == "sparc64"
-PICFLAG?= -fPIC
-.else
-PICFLAG?= -fpic
-.endif
-
post-patch:
@${REINPLACE_CMD} -E \
-e 's/gcc([ \])/${CC}\1/' \
diff --git a/devel/arduino/Makefile b/devel/arduino/Makefile
index 6a3af3e92864..caec5626f34e 100644
--- a/devel/arduino/Makefile
+++ b/devel/arduino/Makefile
@@ -13,7 +13,7 @@ WWW= https://www.arduino.cc/
LICENSE= GPLv2 LGPL21
LICENSE_COMB= multi
-# Confirmed for ARCHS below. Arm, PowerPC and Sparc untested. (Feedback welcome)
+# Confirmed for ARCHS below. Arm and PowerPC untested. (Feedback welcome)
ONLY_FOR_ARCHS= amd64 i386
RUN_DEPENDS= ${JAVA_HOME}/jre/lib/ext/RXTXcomm.jar:comms/rxtx \
diff --git a/devel/avce00/Makefile b/devel/avce00/Makefile
index 3fa7f9d1fe07..003f0077b1f2 100644
--- a/devel/avce00/Makefile
+++ b/devel/avce00/Makefile
@@ -26,7 +26,7 @@ PORTDOCS= avce00.html
post-extract:
${REINPLACE_CMD} -e 's#gcc#${CC}#g' ${WRKSRC}/GNUmakefile
${CP} ${WRKSRC}/GNUmakefile ${WRKSRC}/Makefile
-.if ${ARCH} == "powerpc" || ${ARCH} == "sparc64" || ${ARCH} == powerpc64
+.if ${ARCH} == "powerpc" || ${ARCH} == powerpc64
@${REINPLACE_CMD} -e 's#LSB#MSB#g' ${WRKSRC}/Makefile
.endif
diff --git a/devel/avro-c/Makefile b/devel/avro-c/Makefile
index 1d5bde9b02a8..378d8b2931fd 100644
--- a/devel/avro-c/Makefile
+++ b/devel/avro-c/Makefile
@@ -12,8 +12,6 @@ WWW= https://avro.apache.org/
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN_sparc64= fails to build
-
LIB_DEPENDS= libjansson.so:devel/jansson \
libsnappy.so:archivers/snappy
diff --git a/devel/bazel029/Makefile b/devel/bazel029/Makefile
index 8cd6cb607307..ce95b77509e0 100644
--- a/devel/bazel029/Makefile
+++ b/devel/bazel029/Makefile
@@ -15,7 +15,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_armv6= fails to package: cp: bazel: No such file or directory
BROKEN_armv7= fails to package: cp: bazel: No such file or directory
-BROKEN_FreeBSD_12_powerpc64= fails to compile: Action failed to execute: java.io.IOException: Cannot run program /usr/bin/clang
BUILD_DEPENDS= bash:shells/bash \
zip:archivers/zip
diff --git a/devel/bazel5/Makefile b/devel/bazel5/Makefile
index 0d76ec1ef052..ab02325d1e8f 100644
--- a/devel/bazel5/Makefile
+++ b/devel/bazel5/Makefile
@@ -15,7 +15,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
NOT_FOR_ARCHS= i386
BROKEN_armv6= fails to package: cp: bazel: No such file or directory
BROKEN_armv7= fails to package: cp: bazel: No such file or directory
-BROKEN_FreeBSD_12_powerpc64= fails to compile: Action failed to execute: java.io.IOException: Cannot run program /usr/bin/clang
BUILD_DEPENDS= bash:shells/bash \
zip:archivers/zip
diff --git a/devel/bbparse/Makefile b/devel/bbparse/Makefile
index d762ebf20f68..516877e7537a 100644
--- a/devel/bbparse/Makefile
+++ b/devel/bbparse/Makefile
@@ -10,7 +10,6 @@ WWW= https://github.com/Netflix/bbparse
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-IGNORE_FreeBSD_12=does not build
ONLY_FOR_ARCHS= amd64 powerpc64 powerpc64le
USE_GITHUB= yes
diff --git a/devel/binutils/Makefile b/devel/binutils/Makefile
index ab19761d2f13..60f283d86263 100644
--- a/devel/binutils/Makefile
+++ b/devel/binutils/Makefile
@@ -22,7 +22,7 @@ LIB_DEPENDS= libzstd.so:archivers/zstd
FLAVORS= native aarch64 aarch64_none_elf amd64 arm_gnueabi arm_none_eabi \
avr i386 mingw32 mips mips64 powerpc powerpc64 powerpc64le riscv64 \
- riscv64_none_elf s390x sparc64 riscv32_unknown_elf
+ riscv64_none_elf s390x riscv32_unknown_elf
FLAVOR?= native
USES= bison:alias compiler:env cpe gmake localbase libtool perl5 pkgconfig tar:lz
@@ -131,7 +131,7 @@ INFO_INFO= as \
.include <bsd.port.pre.mk>
# Actual earliest version may differ slightly
-.if (${ARCH} != sparc64 && ${ARCH} != mips && ${ARCH} != mips64 && ${ARCH} != powerpcspe && ${ARCH} != powerpc && ${ARCH} != powerpc64 && ${ARCH} != riscv64 && !defined(PKGNAMEPREFIX)) || ((${ARCH} == powerpc || ${ARCH} == powerpc64) && ${CHOSEN_COMPILER_TYPE} != gcc && !defined(PKGNAMEPREFIX))
+.if (${ARCH} != mips && ${ARCH} != mips64 && ${ARCH} != powerpcspe && ${ARCH} != powerpc && ${ARCH} != powerpc64 && ${ARCH} != riscv64 && !defined(PKGNAMEPREFIX)) || ((${ARCH} == powerpc || ${ARCH} == powerpc64) && ${CHOSEN_COMPILER_TYPE} != gcc && !defined(PKGNAMEPREFIX))
CONFIGURE_ARGS+= --enable-gold --enable-plugins
CXXFLAGS+= -Wno-c++11-narrowing
PLIST_SUB+= GOLD=""
diff --git a/devel/boost-libs/Makefile b/devel/boost-libs/Makefile
index 04cf1418b04a..686a295eff87 100644
--- a/devel/boost-libs/Makefile
+++ b/devel/boost-libs/Makefile
@@ -7,8 +7,6 @@ WWW= https://www.boost.org/
LICENSE= BSL
LICENSE_FILE= ${WRKSRC}/LICENSE_1_0.txt
-BROKEN_sparc64= https://github.com/boostorg/context/commit/f2ef6326b6ed
-
BUILD_DEPENDS+= bjam:devel/boost-jam
OPTIONS_DEFINE= DEBUG OPTIMIZED_CFLAGS
diff --git a/devel/concurrencykit/Makefile b/devel/concurrencykit/Makefile
index 984054b60993..01c6d2b85388 100644
--- a/devel/concurrencykit/Makefile
+++ b/devel/concurrencykit/Makefile
@@ -15,7 +15,7 @@ WWW= http://concurrencykit.org
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le sparc64
+ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le
OPTIONS_DEFINE= RTM VMAPACK
OPTIONS_DEFAULT= VMAPACK
diff --git a/devel/cxxtools/Makefile b/devel/cxxtools/Makefile
index 932aed7c80fe..ba0e519d7803 100644
--- a/devel/cxxtools/Makefile
+++ b/devel/cxxtools/Makefile
@@ -15,7 +15,6 @@ BROKEN_aarch64= does not configure: error: check for atomictype failed
BROKEN_mips= does not configure: in section .data.rel.ro of csvdeserializer-test.o: defined in discarded section
BROKEN_mips64= does not configure: in section .data.rel.ro of csvdeserializer-test.o: defined in discarded section
BROKEN_riscv64= does not configure: error: check for atomictype failed
-BROKEN_sparc64= does not configure
USES= cpe iconv libtool localbase pathfix
CPE_VENDOR= tntnet
diff --git a/devel/distorm/Makefile b/devel/distorm/Makefile
index ddf347840c9d..7c7da1dda312 100644
--- a/devel/distorm/Makefile
+++ b/devel/distorm/Makefile
@@ -23,13 +23,7 @@ PLIST_FILES= bin/disasm \
lib/libdistorm3.so \
lib/libdistorm3.so.1
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "sparc64"
-PICFLAG?= -fPIC
-.else
PICFLAG?= -fpic
-.endif
do-build:
@(cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} \
@@ -50,4 +44,4 @@ do-install:
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/disasm ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/include/*.h ${STAGEDIR}${PREFIX}/include
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/devel/efivar/Makefile b/devel/efivar/Makefile
index 12975a8454a8..690ebf461311 100644
--- a/devel/efivar/Makefile
+++ b/devel/efivar/Makefile
@@ -9,7 +9,7 @@ WWW= https://github.com/rhboot/efivar
LICENSE= LGPL21
-NOT_FOR_ARCHS= powerpc powerpc64 powerpspe sparc64
+NOT_FOR_ARCHS= powerpc powerpc64 powerpspe
NOT_FOR_ARCHS_REASON= specification only supports little-endian processors
LIB_DEPENDS= libpopt.so:devel/popt
diff --git a/devel/electron26/files/patch-third__party_wayland_include_config.h b/devel/electron26/files/patch-third__party_wayland_include_config.h
index b5d7b685a402..269c1edb062d 100644
--- a/devel/electron26/files/patch-third__party_wayland_include_config.h
+++ b/devel/electron26/files/patch-third__party_wayland_include_config.h
@@ -1,21 +1,6 @@
---- third_party/wayland/include/config.h.orig 2023-04-02 06:41:50 UTC
+--- third_party/wayland/include/config.h.orig 2023-10-09 02:57:22 UTC
+++ third_party/wayland/include/config.h
-@@ -9,7 +9,14 @@
-
- #define HAVE_BROKEN_MSG_CMSG_CLOEXEC 0
-
-+#if defined(__FreeBSD__)
-+#include <osreldate.h>
-+#if defined(__FreeBSD_version) && __FreeBSD_version < 1300048
-+#undef HAVE_MEMFD_CREATE
-+#else
- #define HAVE_MEMFD_CREATE
-+#endif
-+#endif
-
- #define HAVE_MKOSTEMP
-
-@@ -25,7 +32,11 @@
+@@ -25,11 +25,14 @@
#undef HAVE_SYS_PROCCTL_H
@@ -27,3 +12,7 @@
#define HAVE_XUCRED_CR_PID 0
+ #define PACKAGE "wayland"
+
+ #define PACKAGE_VERSION "1.21.0"
+-
diff --git a/devel/electron26/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc b/devel/electron26/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc
deleted file mode 100644
index 24e9f1088413..000000000000
--- a/devel/electron26/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc
+++ /dev/null
@@ -1,21 +0,0 @@
---- ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc.orig 2023-08-16 00:42:09 UTC
-+++ ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc
-@@ -224,6 +224,10 @@ void ZWPTextInputWrapperV1::SetSurroundingText(
- // so if it exceeds 16 bits, it may be broken.
- static constexpr size_t kSizeLimit = 60000;
- if (HasAdvancedSurroundingTextSupport() && text.length() > kSizeLimit) {
-+#if defined(__FreeBSD_version) && __FreeBSD_version < 1300048
-+ PLOG(ERROR) << "memfd is not supported";
-+ return;
-+#else
- base::ScopedFD memfd(memfd_create("surrounding_text", MFD_CLOEXEC));
- if (!memfd.get()) {
- PLOG(ERROR) << "Failed to create memfd";
-@@ -236,6 +240,7 @@ void ZWPTextInputWrapperV1::SetSurroundingText(
- zcr_extended_text_input_v1_set_large_surrounding_text(
- extended_obj_.get(), memfd.get(), text.length(),
- selection_range.start(), selection_range.end());
-+#endif
- } else {
- zwp_text_input_v1_set_surrounding_text(obj_.get(), text.c_str(),
- selection_range.start(),
diff --git a/devel/electron27/files/patch-third__party_wayland_include_config.h b/devel/electron27/files/patch-third__party_wayland_include_config.h
index b5d7b685a402..79b33b7c5e83 100644
--- a/devel/electron27/files/patch-third__party_wayland_include_config.h
+++ b/devel/electron27/files/patch-third__party_wayland_include_config.h
@@ -1,21 +1,6 @@
---- third_party/wayland/include/config.h.orig 2023-04-02 06:41:50 UTC
+--- third_party/wayland/include/config.h.orig 2023-12-07 21:20:48 UTC
+++ third_party/wayland/include/config.h
-@@ -9,7 +9,14 @@
-
- #define HAVE_BROKEN_MSG_CMSG_CLOEXEC 0
-
-+#if defined(__FreeBSD__)
-+#include <osreldate.h>
-+#if defined(__FreeBSD_version) && __FreeBSD_version < 1300048
-+#undef HAVE_MEMFD_CREATE
-+#else
- #define HAVE_MEMFD_CREATE
-+#endif
-+#endif
-
- #define HAVE_MKOSTEMP
-
-@@ -25,7 +32,11 @@
+@@ -25,11 +25,14 @@
#undef HAVE_SYS_PROCCTL_H
@@ -27,3 +12,7 @@
#define HAVE_XUCRED_CR_PID 0
+ #define PACKAGE "wayland"
+
+ #define PACKAGE_VERSION "1.21.0"
+-
diff --git a/devel/electron27/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc b/devel/electron27/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc
deleted file mode 100644
index 46931c37222c..000000000000
--- a/devel/electron27/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc
+++ /dev/null
@@ -1,21 +0,0 @@
---- ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc.orig 2023-10-19 19:59:21 UTC
-+++ ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc
-@@ -226,6 +226,10 @@ void ZWPTextInputWrapperV1::SetSurroundingText(
- // so if it exceeds 16 bits, it may be broken.
- static constexpr size_t kSizeLimit = 60000;
- if (HasAdvancedSurroundingTextSupport() && text.length() > kSizeLimit) {
-+#if defined(__FreeBSD_version) && __FreeBSD_version < 1300048
-+ PLOG(ERROR) << "memfd is not supported";
-+ return;
-+#else
- base::ScopedFD memfd(memfd_create("surrounding_text", MFD_CLOEXEC));
- if (!memfd.get()) {
- PLOG(ERROR) << "Failed to create memfd";
-@@ -238,6 +242,7 @@ void ZWPTextInputWrapperV1::SetSurroundingText(
- zcr_extended_text_input_v1_set_large_surrounding_text(
- extended_obj_.get(), memfd.get(), text.length(),
- selection_range.start(), selection_range.end());
-+#endif
- } else {
- zwp_text_input_v1_set_surrounding_text(obj_.get(), text.c_str(),
- selection_range.start(),
diff --git a/devel/elfutils/Makefile b/devel/elfutils/Makefile
index e810b0382271..4b82c68eae73 100644
--- a/devel/elfutils/Makefile
+++ b/devel/elfutils/Makefile
@@ -14,7 +14,6 @@ LICENSE_FILE_GPLv2+ = ${WRKSRC}/COPYING-GPLV2
LICENSE_FILE_LGPL3= ${WRKSRC}/COPYING-LGPLV3
BROKEN_armv6= fails to build: fails to compile i386_disasm.c
-BROKEN_sparc64= sparc patch does not apply cleanly to 0.172
LIB_DEPENDS= libargp.so:devel/argp-standalone \
libcurl.so:ftp/curl
@@ -22,8 +21,8 @@ BUILD_DEPENDS= gnulib>=0:devel/gnulib
PLIST_SUB= VERSION=${PORTVERSION}
-CFLAGS+= -I${LOCALBASE}/include \
- -I${LOCALBASE}/share/gnulib/lib
+CFLAGS+= -I${LOCALBASE}/share/gnulib/lib \
+ -DFREEBSD_HAS_MEMPCPY
LDFLAGS+= ${LOCALBASE}/lib/libargp.so \
${LOCALBASE}/lib/libintl.so
@@ -35,7 +34,7 @@ NLS_USES= gettext
NLS_USES_OFF= gettext # used anyway
NLS_CONFIGURE_ENABLE= nls
-USES= autoreconf cpe gmake libtool pkgconfig tar:bzip2
+USES= autoreconf cpe gmake libtool localbase pkgconfig tar:bzip2
CPE_VENDOR= ${PORTNAME}_project
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
@@ -48,12 +47,6 @@ CONFIGURE_ARGS+= --program-prefix=eu-
# Disable debuginfod until option support can be added:
CONFIGURE_ARGS+= --disable-debuginfod
-.include <bsd.port.options.mk>
-
-.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300512 # 2021-07-17
-CFLAGS+= -DFREEBSD_HAS_MEMPCPY
-.endif
-
pre-configure:
@${CP} -a \
${LOCALBASE}/share/gnulib/lib/obstack.c \
diff --git a/devel/freebsd-gcc12/Makefile b/devel/freebsd-gcc12/Makefile
index 3908ae055431..989b042c98b2 100644
--- a/devel/freebsd-gcc12/Makefile
+++ b/devel/freebsd-gcc12/Makefile
@@ -12,8 +12,6 @@ WWW= https://gcc.gnu.org/
LICENSE= GPLv3 GPLv3RLE
LICENSE_COMB= multi
-IGNORE_FreeBSD_12= Does not build
-
BUILD_DEPENDS= ${BU_PREFIX}-as:devel/binutils@${BU_FLAVOR} \
objdump:devel/binutils
LIB_DEPENDS= libgmp.so:math/gmp \
diff --git a/devel/freebsd-gcc13/Makefile b/devel/freebsd-gcc13/Makefile
index d95fdce845a7..8a398ae42ed8 100644
--- a/devel/freebsd-gcc13/Makefile
+++ b/devel/freebsd-gcc13/Makefile
@@ -12,8 +12,6 @@ WWW= https://gcc.gnu.org/
LICENSE= GPLv3 GPLv3RLE
LICENSE_COMB= multi
-IGNORE_FreeBSD_12= Does not build
-
BUILD_DEPENDS= ${BU_PREFIX}-as:devel/binutils@${BU_FLAVOR} \
objdump:devel/binutils
LIB_DEPENDS= libgmp.so:math/gmp \
diff --git a/devel/freebsd-gcc9/Makefile b/devel/freebsd-gcc9/Makefile
index 8a7eec722c63..832a03bc3c0c 100644
--- a/devel/freebsd-gcc9/Makefile
+++ b/devel/freebsd-gcc9/Makefile
@@ -20,7 +20,7 @@ LIB_DEPENDS= libgmp.so:math/gmp \
libmpc.so:math/mpc
RUN_DEPENDS= ${BU_PREFIX}-as:devel/binutils@${BU_FLAVOR}
-FLAVORS= aarch64 amd64 armv6 armv7 i386 mips mips64 powerpc powerpc64 riscv64 sparc64
+FLAVORS= aarch64 amd64 armv6 armv7 i386 mips mips64 powerpc powerpc64 riscv64
TARGETARCH= ${FLAVOR}
USES= compiler:c++11-lang cpe gmake iconv libtool makeinfo tar:xz
diff --git a/devel/freebsd-gcc9/pkg-plist.sparc64 b/devel/freebsd-gcc9/pkg-plist.sparc64
deleted file mode 100644
index 4fc5f0acb4e4..000000000000
--- a/devel/freebsd-gcc9/pkg-plist.sparc64
+++ /dev/null
@@ -1,8 +0,0 @@
-lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/visintrin.h
-%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/dbxelf.h
-%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/%%OPSYS%%.h
-%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sparc-opts.h
-%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sparc-protos.h
-%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sparc.h
-%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sysv4.h
-%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/vxworks-dummy.h
diff --git a/devel/grpc/Makefile b/devel/grpc/Makefile
index f12b633cf6e4..539280461f87 100644
--- a/devel/grpc/Makefile
+++ b/devel/grpc/Makefile
@@ -53,13 +53,6 @@ PLIST_SUB= SHLIB_MAJOR=${PORTVERSION:R} \
CONFLICTS_INSTALL= grpc[0-9][0-9][0-9]
-.include <bsd.port.pre.mk>
-
-# Skip openssl.pc while using OpenSSL from base system on older FreeBSD versions which does not skip this file
-.if ${SSL_DEFAULT} == base && !exists(/usr/libdata/pkgconfig/openssl.pc)
-EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-openssl
-.endif
-
post-patch:
# Clean up bundled libraries
@${RM} -r ${WRKSRC}/third_party/abseil-cpp/
@@ -73,4 +66,4 @@ post-patch:
@${RM} -r ${WRKSRC}/third_party/xxhash/
@${RM} -r ${WRKSRC}/third_party/zlib/
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/devel/grpc/files/extra-patch-openssl b/devel/grpc/files/extra-patch-openssl
deleted file mode 100644
index 2f950a6d85f0..000000000000
--- a/devel/grpc/files/extra-patch-openssl
+++ /dev/null
@@ -1,20 +0,0 @@
---- CMakeLists.txt.orig 2023-11-28 00:12:30 UTC
-+++ CMakeLists.txt
-@@ -30395,7 +30395,7 @@ generate_pkgconfig(
- "high performance general RPC framework"
- "${gRPC_CORE_VERSION}"
- "absl_algorithm_container absl_any_invocable absl_base absl_bind_front absl_cleanup absl_cord absl_core_headers absl_flags absl_flags_marshalling absl_flat_hash_map absl_flat_hash_set absl_function_ref absl_hash absl_inlined_vector absl_memory absl_optional absl_random_bit_gen_ref absl_random_distributions absl_random_random absl_span absl_status absl_statusor absl_str_format absl_strings absl_synchronization absl_time absl_type_traits absl_utility absl_variant gpr"
-- "libcares openssl re2 zlib"
-+ "libcares re2 zlib"
- "-lgrpc"
- "-laddress_sorting -lupb -lupb_textformat_lib -lupb_json_lib -lutf8_range_lib -lupb_collections_lib"
- "grpc.pc")
-@@ -30417,7 +30417,7 @@ generate_pkgconfig(
- "C++ wrapper for gRPC"
- "${gRPC_CPP_VERSION}"
- "absl_algorithm_container absl_any_invocable absl_base absl_bind_front absl_cleanup absl_cord absl_core_headers absl_flags absl_flags_marshalling absl_flat_hash_map absl_flat_hash_set absl_function_ref absl_hash absl_inlined_vector absl_memory absl_optional absl_random_bit_gen_ref absl_random_distributions absl_random_random absl_span absl_status absl_statusor absl_str_format absl_strings absl_synchronization absl_time absl_type_traits absl_utility absl_variant gpr grpc"
-- "libcares openssl re2 zlib"
-+ "libcares re2 zlib"
- "-lgrpc++"
- "-laddress_sorting -lupb -lupb_textformat_lib -lupb_json_lib -lutf8_range_lib -lupb_collections_lib"
- "grpc++.pc")
diff --git a/devel/hare/Makefile b/devel/hare/Makefile
index e8bc3f2407e9..f57de6730f28 100644
--- a/devel/hare/Makefile
+++ b/devel/hare/Makefile
@@ -27,12 +27,6 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTNAME}
OPTIONS_DEFINE= DOCS
-.include <bsd.port.pre.mk>
-
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000
-BROKEN= pre-FreeBSD-13 assembler is not compatible with generated files
-.endif
-
do-build:
${CP} ${WRKSRC}/config.example.mk ${WRKSRC}/config.mk
cd ${WRKSRC} && ${MAKE} ${MAKE_ARGS}
@@ -47,4 +41,4 @@ post-stage:
do-test:
cd ${WRKSRC} && ${MAKE} ${MAKE_ARGS} check
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/devel/intel-graphics-compiler/Makefile b/devel/intel-graphics-compiler/Makefile
index 303c95e32dd2..09fa0d2a4024 100644
--- a/devel/intel-graphics-compiler/Makefile
+++ b/devel/intel-graphics-compiler/Makefile
@@ -13,7 +13,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.md
ONLY_FOR_ARCHS= aarch64 amd64 i386
ONLY_FOR_ARCHS_REASON= only Intel GPUs on x86 are supported
-BROKEN_FreeBSD_12_i386= clang crashes during build
BROKEN_FreeBSD_14_i386= lld crashes during build
BUILD_DEPENDS= vc-intrinsics-${FLAVOR}>=0.4.0:devel/vc-intrinsics@${FLAVOR}
diff --git a/devel/kf5-kcoreaddons/Makefile b/devel/kf5-kcoreaddons/Makefile
index 2fc3daa08e0e..fbe687d42e1b 100644
--- a/devel/kf5-kcoreaddons/Makefile
+++ b/devel/kf5-kcoreaddons/Makefile
@@ -29,13 +29,4 @@ FAM_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_FAM
CMAKE_ARGS= -DACCOUNTS_SERVICE_ICON_DIR:PATH=/var/db/AccountsService/icons
-.include <bsd.port.pre.mk>
-# FreeBSD base gained /etc/os-release in r354922, which
-# corresponds to __FreeBSD_version 1300060
-.if ${OSVERSION} < 1300060
-post-patch:
- ${REINPLACE_CMD} -e '/QStringLiteral/s|/etc/os-release|${LOCALBASE}/etc/os-release|g' \
- ${WRKSRC}/src/lib/util/kosrelease.cpp
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/devel/libffcall/files/patch-ffcall-abi.h b/devel/libffcall/files/patch-ffcall-abi.h
deleted file mode 100644
index 29af0d0c2f68..000000000000
--- a/devel/libffcall/files/patch-ffcall-abi.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- ffcall-abi.h.orig 2018-11-18 21:47:39 UTC
-+++ ffcall-abi.h
-@@ -75,7 +75,7 @@
- #endif
- #endif
- #ifndef __sparc64__
--#if defined(__sparcv9) /* GCC/Solaris, Sun C */ || defined(__arch64__) /* GCC/Linux */
-+#if defined(__sparcv9) /* GCC/Solaris, Sun C */
- #define __sparc64__ 1
- #endif
- #endif
diff --git a/devel/libftdi1/Makefile b/devel/libftdi1/Makefile
index 206feee871b8..9965a8b733a5 100644
--- a/devel/libftdi1/Makefile
+++ b/devel/libftdi1/Makefile
@@ -13,8 +13,6 @@ LICENSE_COMB= multi
LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING.GPL
LICENSE_FILE_LGPL21= ${WRKSRC}/COPYING.LIB
-BROKEN_sparc64= Does not build: fails to link
-
LIB_DEPENDS= libconfuse.so:devel/libconfuse
USES= cmake:insource compiler:c++11-lang gettext-runtime pkgconfig tar:bzip2
diff --git a/devel/libhoard/Makefile b/devel/libhoard/Makefile
index 139ba7c78fbe..ca8fe54c3d96 100644
--- a/devel/libhoard/Makefile
+++ b/devel/libhoard/Makefile
@@ -13,7 +13,6 @@ LICENSE_FILE= ${WRKSRC}/../COPYING
BROKEN_mips= no spin lock implementation is available for this platform
BROKEN_mips64= no spin lock implementation is available for this platform
-BROKEN_sparc64= Does not build
WRKSRC= ${WRKDIR}/Hoard/src
MAKEFILE= GNUmakefile
diff --git a/devel/libpeak/Makefile b/devel/libpeak/Makefile
index a59af5dc175d..f5d5a8eb8abd 100644
--- a/devel/libpeak/Makefile
+++ b/devel/libpeak/Makefile
@@ -10,7 +10,7 @@ WWW= https://peak.sourceforge.net/
LICENSE= BSD2CLAUSE
-ONLY_FOR_ARCHS= amd64 i386 sparc64
+ONLY_FOR_ARCHS= amd64 i386
USES= gmake libtool perl5 shebangfix
USE_PERL5= test
diff --git a/devel/libqsbr/Makefile b/devel/libqsbr/Makefile
index a864a3acbe22..0b5aa2889ecb 100644
--- a/devel/libqsbr/Makefile
+++ b/devel/libqsbr/Makefile
@@ -9,13 +9,6 @@ WWW= https://github.com/rmind/libqsbr
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/../LICENSE
-# the fix uses __LONG_WIDTH__ which is only available from FreeBSD 13
-BROKEN_FreeBSD_12_i386= static_assert(sizeof(qsbr_epoch_t) == 8, "expected 64-bit counter")
-BROKEN_FreeBSD_12_armv6= static_assert(sizeof(qsbr_epoch_t) == 8, "expected 64-bit counter")
-BROKEN_FreeBSD_12_armv7= static_assert(sizeof(qsbr_epoch_t) == 8, "expected 64-bit counter")
-BROKEN_FreeBSD_12_powerpc= static_assert(sizeof(qsbr_epoch_t) == 8, "expected 64-bit counter")
-BROKEN_FreeBSD_12_mips= static_assert(sizeof(qsbr_epoch_t) == 8, "expected 64-bit counter")
-
USES= compiler:c11 gmake libtool:build
USE_GITHUB= yes
GH_ACCOUNT= rmind
diff --git a/devel/lightning/Makefile b/devel/lightning/Makefile
index 7dcc2dd1da19..ebfc29acb961 100644
--- a/devel/lightning/Makefile
+++ b/devel/lightning/Makefile
@@ -10,7 +10,7 @@ WWW= https://www.gnu.org/software/lightning/
LICENSE= LGPL3+
LICENSE_FILE= ${WRKSRC}/COPYING.LESSER
-ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 mips powerpc powerpc64 powerpc64le powerpcspe riscv64 sparc64
+ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 mips powerpc powerpc64 powerpc64le powerpcspe riscv64
USES= cpe libtool pathfix
CPE_VENDOR= gnu
@@ -20,7 +20,7 @@ INSTALL_TARGET= install-strip
TEST_TARGET= check
USE_LDCONFIG= yes
-PLIST_SUB= JIT_ARCH=${ARCH:S/i386/x86/:S/amd64/x86/:S/x86_64/x86/:S/sparc64/sparc/:C/powerpc.*/ppc/:C/armv./arm/:S/riscv64/riscv/}
+PLIST_SUB= JIT_ARCH=${ARCH:S/i386/x86/:S/amd64/x86/:S/x86_64/x86/:C/powerpc.*/ppc/:C/armv./arm/:S/riscv64/riscv/}
INFO= lightning
diff --git a/devel/linux_libusb/Makefile b/devel/linux_libusb/Makefile
index 4cc327504068..851f6809c29a 100644
--- a/devel/linux_libusb/Makefile
+++ b/devel/linux_libusb/Makefile
@@ -39,9 +39,6 @@ MAKE_ENV+= LDADD="-lrt"
.include <bsd.port.pre.mk>
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300134
-MAKE_ARGS+= NO_WERROR=yes
-.endif
MAKE_ARGS+= NO_WDATE_TIME=yes
.if ${ARCH} == amd64
diff --git a/devel/llbuild/Makefile b/devel/llbuild/Makefile
index a3e6f5a8b9c3..870284c3092a 100644
--- a/devel/llbuild/Makefile
+++ b/devel/llbuild/Makefile
@@ -14,7 +14,6 @@ LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE.txt
BROKEN_aarch64= fails to link: undefined symbol: sbrk
BROKEN_riscv64= fails to link: undefined symbol: sbrk
-BROKEN_FreeBSD_12_powerpc64= fails to build on powerpc64 elfv1: unrecognized command line option "-Wdocumentation"
LIB_DEPENDS= libsqlite3.so:databases/sqlite3
diff --git a/devel/llvm-devel/Makefile b/devel/llvm-devel/Makefile
index 8ff822358edf..c7b37fcc18d0 100644
--- a/devel/llvm-devel/Makefile
+++ b/devel/llvm-devel/Makefile
@@ -109,7 +109,6 @@ OPTIONS_EXCLUDE_armv7+= FLANG OPENMP
OPTIONS_EXCLUDE_i386= FLANG OPENMP
OPTIONS_EXCLUDE_powerpc= FLANG OPENMP
OPTIONS_EXCLUDE_riscv64= LLDB
-OPTIONS_EXCLUDE_FreeBSD_12= OPENMP
.endif
_ALL_OPTIONS= CLANG COMPILER_RT DOCS EXTRAS FLANG GOLD LIT LLD LLDB MLIR \
@@ -249,13 +248,6 @@ USES+= gnome
.if ${PORT_OPTIONS:MCOMPILER_RT}
LLVM_ENABLE_PROJECTS+= compiler-rt
COMPILER_RT_PATTERN= (sanitizer|include.xray|include\/(fuzzer|orc)|profile\/InstrProfData.inc)
-.if ${OSVERSION} < 1300525
-# An unwind.h is require to build. I think an in-tree one should be used
-# but this seems to work as a workaround...
-BUILD_DEPENDS+= libunwind>0:devel/libunwind
-# Allow unwind.h to be found reliably
-USES+= localbase
-.endif
.endif
.if ${PORT_OPTIONS:MEXTRAS}
diff --git a/devel/llvm10/Makefile b/devel/llvm10/Makefile
index 756e4a8754e4..a5e18a409c58 100644
--- a/devel/llvm10/Makefile
+++ b/devel/llvm10/Makefile
@@ -273,7 +273,7 @@ PYCLANG_PATTERN= (clang\/(__init__|cindex|enumerations).py)$$
.include "${.CURDIR}/Makefile.COMMANDS"
.include "${.CURDIR}/Makefile.MAN1SRCS"
-_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV Sparc X86
+_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV X86
FREEBSD_BACKENDS= ${_FREEBSD_BACKENDS}
.if ${ARCH} == amd64
_NATIVE_BACKENDS= X86
@@ -308,7 +308,6 @@ _BE_LIBS_MSP430= AsmParser Disassembler
_BE_LIBS_Mips= AsmParser Disassembler
_BE_LIBS_PowerPC= AsmParser Disassembler
_BE_LIBS_RISCV= AsmParser Disassembler Utils
-_BE_LIBS_Sparc= AsmParser Disassembler
_BE_LIBS_SystemZ= AsmParser Disassembler
_BE_LIBS_WebAssembly= AsmParser Disassembler
_BE_LIBS_X86= AsmParser Disassembler Utils
diff --git a/devel/llvm11/Makefile b/devel/llvm11/Makefile
index 0b0094609bdf..cbb1e5076184 100644
--- a/devel/llvm11/Makefile
+++ b/devel/llvm11/Makefile
@@ -274,7 +274,7 @@ PYCLANG_PATTERN= (clang\/(__init__|cindex|enumerations).py)$$
.include "${.CURDIR}/Makefile.COMMANDS"
.include "${.CURDIR}/Makefile.MAN1SRCS"
-_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV Sparc X86
+_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV X86
FREEBSD_BACKENDS= ${_FREEBSD_BACKENDS}
.if ${ARCH} == amd64
_NATIVE_BACKENDS= X86
@@ -314,7 +314,6 @@ _BE_LIBS_MSP430= AsmParser Disassembler
_BE_LIBS_Mips= AsmParser Disassembler
_BE_LIBS_PowerPC= AsmParser Disassembler
_BE_LIBS_RISCV= AsmParser Disassembler Utils
-_BE_LIBS_Sparc= AsmParser Disassembler
_BE_LIBS_SystemZ= AsmParser Disassembler
_BE_LIBS_WebAssembly= AsmParser Disassembler
_BE_LIBS_X86= AsmParser Disassembler
diff --git a/devel/llvm12/Makefile b/devel/llvm12/Makefile
index 1c57b3c8dfc8..1eea2ed89d49 100644
--- a/devel/llvm12/Makefile
+++ b/devel/llvm12/Makefile
@@ -117,13 +117,8 @@ CLANG_SUB_LIST= XCC=clang${LLVM_SUFFIX} \
X_COMPILER_TYPE=clang
CLANG_USE= GNOME=libxml2
COMPILER_RT_DESC= Sanitizer libraries
-# An unwind.h is require to build. I think an in-tree one should be used
-# but this seems to work as a workaround...
-COMPILER_RT_BUILD_DEPENDS= libunwind>0:devel/libunwind
COMPILER_RT_CMAKE_ON= \
-DCOMPILER_RT_INSTALL_PATH=${LLVM_PREFIX}/lib/clang/${LLVM_RELEASE}
-# Allow unwind.h to be found reliably
-COMPILER_RT_USES= localbase
COMPILER_RT_PLIST_FILES=${_COMPILER_RT_LIBS:S|^|${_CRTLIBDIR}/|} \
${_COMPILER_RT_BLACKLISTS:S|^|${_CRTBLDIR}/|}
DOCS_BUILD_DEPENDS= \
@@ -285,7 +280,7 @@ CMAKE_ARGS+= -DLLVM_ENABLE_PROJECTS="${LLVM_ENABLE_PROJECTS:ts;}"
.include "${.CURDIR}/Makefile.COMMANDS"
.include "${.CURDIR}/Makefile.MAN1SRCS"
-_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV Sparc X86
+_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV X86
FREEBSD_BACKENDS= ${_FREEBSD_BACKENDS}
.if ${ARCH} == amd64
_NATIVE_BACKENDS= X86
@@ -325,7 +320,6 @@ _BE_LIBS_MSP430= AsmParser Disassembler
_BE_LIBS_Mips= AsmParser Disassembler
_BE_LIBS_PowerPC= AsmParser Disassembler
_BE_LIBS_RISCV= AsmParser Disassembler
-_BE_LIBS_Sparc= AsmParser Disassembler
_BE_LIBS_SystemZ= AsmParser Disassembler
_BE_LIBS_WebAssembly= AsmParser Disassembler
_BE_LIBS_X86= AsmParser Disassembler
diff --git a/devel/llvm13/Makefile b/devel/llvm13/Makefile
index 0ea6554be046..31cff030c327 100644
--- a/devel/llvm13/Makefile
+++ b/devel/llvm13/Makefile
@@ -131,13 +131,8 @@ CLANG_SUB_LIST= XCC=clang${LLVM_SUFFIX} \
X_COMPILER_TYPE=clang
CLANG_USE= GNOME=libxml2
COMPILER_RT_DESC= Sanitizer libraries
-# An unwind.h is require to build. I think an in-tree one should be used
-# but this seems to work as a workaround...
-COMPILER_RT_BUILD_DEPENDS= libunwind>0:devel/libunwind
COMPILER_RT_CMAKE_ON= \
-DCOMPILER_RT_INSTALL_PATH=${LLVM_PREFIX}/lib/clang/${LLVM_RELEASE}
-# Allow unwind.h to be found reliably
-COMPILER_RT_USES= localbase
COMPILER_RT_PLIST_FILES=${_COMPILER_RT_LIBS:S|^|${_CRTLIBDIR}/|} \
${_COMPILER_RT_BLACKLISTS:S|^|${_CRTBLDIR}/|}
DOCS_BUILD_DEPENDS= \
@@ -322,7 +317,7 @@ CMAKE_ARGS+= -DLLVM_ENABLE_PROJECTS="${LLVM_ENABLE_PROJECTS:ts;}"
.include "${.CURDIR}/Makefile.COMMANDS"
.include "${.CURDIR}/Makefile.MAN1SRCS"
-_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV Sparc X86
+_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV X86
FREEBSD_BACKENDS= ${_FREEBSD_BACKENDS}
.if ${ARCH} == amd64
_NATIVE_BACKENDS= X86
@@ -366,7 +361,6 @@ _BE_LIBS_BACKWARDS_Mips=Exegesis
_BE_LIBS_PowerPC= AsmParser Disassembler
_BE_LIBS_BACKWARDS_PowerPC=Exegesis
_BE_LIBS_RISCV= AsmParser Disassembler
-_BE_LIBS_Sparc= AsmParser Disassembler
_BE_LIBS_SystemZ= AsmParser Disassembler
_BE_LIBS_WebAssembly= AsmParser Disassembler Utils
_BE_LIBS_X86= AsmParser Disassembler
diff --git a/devel/llvm14/Makefile b/devel/llvm14/Makefile
index 5afea3b82bde..6122e70de153 100644
--- a/devel/llvm14/Makefile
+++ b/devel/llvm14/Makefile
@@ -265,13 +265,6 @@ USES+= gnome
.if ${PORT_OPTIONS:MCOMPILER_RT}
LLVM_ENABLE_PROJECTS+= compiler-rt
COMPILER_RT_PATTERN= (sanitizer|include.xray|include\/fuzzer|profile\/InstrProfData.inc)
-.if ${OSVERSION} < 1300525
-# An unwind.h is require to build. I think an in-tree one should be used
-# but this seems to work as a workaround...
-BUILD_DEPENDS+= libunwind>0:devel/libunwind
-# Allow unwind.h to be found reliably
-USES+= localbase
-.endif
.endif
.if ${PORT_OPTIONS:MEXTRAS}
@@ -327,7 +320,7 @@ CMAKE_ARGS+= -DLLVM_ENABLE_PROJECTS="${LLVM_ENABLE_PROJECTS:ts;}"
.include "${.CURDIR}/Makefile.COMMANDS"
.include "${.CURDIR}/Makefile.MAN1SRCS"
-_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV Sparc X86
+_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV X86
FREEBSD_BACKENDS= ${_FREEBSD_BACKENDS}
.if ${ARCH} == amd64
_NATIVE_BACKENDS= X86
@@ -372,7 +365,6 @@ _BE_LIBS_PowerPC= AsmParser Disassembler
_BE_LIBS_BACKWARDS_PowerPC=Exegesis
_BE_INCS_RISCV= riscv_vector.h
_BE_LIBS_RISCV= AsmParser Disassembler
-_BE_LIBS_Sparc= AsmParser Disassembler
_BE_LIBS_SystemZ= AsmParser Disassembler
_BE_LIBS_VE= AsmParser Disassembler
_BE_LIBS_WebAssembly= AsmParser Disassembler Utils
diff --git a/devel/llvm15/Makefile b/devel/llvm15/Makefile
index 9684141fa744..fd0b151d1260 100644
--- a/devel/llvm15/Makefile
+++ b/devel/llvm15/Makefile
@@ -287,13 +287,6 @@ USES+= gnome
.if ${PORT_OPTIONS:MCOMPILER_RT}
LLVM_ENABLE_PROJECTS+= compiler-rt
COMPILER_RT_PATTERN= (sanitizer|include.xray|include\/(fuzzer|orc)|profile\/InstrProfData.inc)
-.if ${OSVERSION} < 1300525
-# An unwind.h is require to build. I think an in-tree one should be used
-# but this seems to work as a workaround...
-BUILD_DEPENDS+= libunwind>0:devel/libunwind
-# Allow unwind.h to be found reliably
-USES+= localbase
-.endif
.endif
.if ${PORT_OPTIONS:MEXTRAS}
@@ -349,7 +342,7 @@ CMAKE_ARGS+= -DLLVM_ENABLE_PROJECTS="${LLVM_ENABLE_PROJECTS:ts;}"
.include "${.CURDIR}/Makefile.COMMANDS"
.include "${.CURDIR}/Makefile.MAN1SRCS"
-_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV Sparc X86
+_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV X86
FREEBSD_BACKENDS= ${_FREEBSD_BACKENDS}
.if ${ARCH} == amd64
_NATIVE_BACKENDS= X86
@@ -394,7 +387,6 @@ _BE_LIBS_PowerPC= AsmParser Disassembler
_BE_LIBS_BACKWARDS_PowerPC=Exegesis
_BE_INCS_RISCV= riscv_vector.h
_BE_LIBS_RISCV= AsmParser Disassembler
-_BE_LIBS_Sparc= AsmParser Disassembler
_BE_LIBS_SystemZ= AsmParser Disassembler
_BE_LIBS_VE= AsmParser Disassembler
_BE_LIBS_WebAssembly= AsmParser Disassembler Utils
diff --git a/devel/llvm16/Makefile b/devel/llvm16/Makefile
index 2eba04e5a8b7..4b02d0468ce2 100644
--- a/devel/llvm16/Makefile
+++ b/devel/llvm16/Makefile
@@ -118,7 +118,6 @@ OPTIONS_EXCLUDE_armv7+= FLANG OPENMP
OPTIONS_EXCLUDE_i386= FLANG OPENMP
OPTIONS_EXCLUDE_powerpc= FLANG OPENMP
OPTIONS_EXCLUDE_riscv64= LLDB
-OPTIONS_EXCLUDE_FreeBSD_12= OPENMP
.endif
# All non-backend options
@@ -286,13 +285,6 @@ USES+= gnome
.if ${PORT_OPTIONS:MCOMPILER_RT}
LLVM_ENABLE_PROJECTS+= compiler-rt
COMPILER_RT_PATTERN= (sanitizer|include.xray|include\/(fuzzer|orc)|profile\/InstrProfData.inc)
-.if ${OSVERSION} < 1300525
-# An unwind.h is require to build. I think an in-tree one should be used
-# but this seems to work as a workaround...
-BUILD_DEPENDS+= libunwind>0:devel/libunwind
-# Allow unwind.h to be found reliably
-USES+= localbase
-.endif
.endif
.if ${PORT_OPTIONS:MEXTRAS}
@@ -354,7 +346,7 @@ CMAKE_ARGS+= -DLLVM_ENABLE_PROJECTS="${LLVM_ENABLE_PROJECTS:ts;}"
.include "${.CURDIR}/Makefile.COMMANDS"
.include "${.CURDIR}/Makefile.MAN1SRCS"
-_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV Sparc X86
+_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV X86
FREEBSD_BACKENDS= ${_FREEBSD_BACKENDS}
.if ${ARCH} == amd64
_NATIVE_BACKENDS= X86
@@ -400,7 +392,6 @@ _BE_LIBS_PowerPC= AsmParser Disassembler
_BE_LIBS_BACKWARDS_PowerPC=Exegesis
_BE_INCS_RISCV= riscv_vector.h
_BE_LIBS_RISCV= AsmParser Disassembler TargetMCA
-_BE_LIBS_Sparc= AsmParser Disassembler
_BE_LIBS_SystemZ= AsmParser Disassembler
_BE_LIBS_VE= AsmParser Disassembler
_BE_LIBS_WebAssembly= AsmParser Disassembler Utils
diff --git a/devel/llvm17/Makefile b/devel/llvm17/Makefile
index 914dc58793b4..9bf6394c77d7 100644
--- a/devel/llvm17/Makefile
+++ b/devel/llvm17/Makefile
@@ -119,7 +119,6 @@ OPTIONS_EXCLUDE_armv7+= FLANG OPENMP
OPTIONS_EXCLUDE_i386= FLANG OPENMP
OPTIONS_EXCLUDE_powerpc= FLANG OPENMP
OPTIONS_EXCLUDE_riscv64= LLDB
-OPTIONS_EXCLUDE_FreeBSD_12= OPENMP
.endif
# All non-backend options
@@ -287,13 +286,6 @@ USES+= gnome
.if ${PORT_OPTIONS:MCOMPILER_RT}
LLVM_ENABLE_PROJECTS+= compiler-rt
COMPILER_RT_PATTERN= (sanitizer|include.xray|include\/(fuzzer|orc)|profile\/InstrProfData.inc)
-.if ${OSVERSION} < 1300525
-# An unwind.h is require to build. I think an in-tree one should be used
-# but this seems to work as a workaround...
-BUILD_DEPENDS+= libunwind>0:devel/libunwind
-# Allow unwind.h to be found reliably
-USES+= localbase
-.endif
.endif
.if ${PORT_OPTIONS:MEXTRAS}
diff --git a/devel/love/Makefile b/devel/love/Makefile
index 1eb0978c8266..b8594f53fff3 100644
--- a/devel/love/Makefile
+++ b/devel/love/Makefile
@@ -11,7 +11,7 @@ WWW= https://www.love2d.org/
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/license.txt
-NOT_FOR_ARCHS= mips mips64 powerpc powerpc64 powerpcspe sparc64
+NOT_FOR_ARCHS= mips mips64 powerpc powerpc64 powerpcspe
NOT_FOR_ARCHS_REASON= Hashing not yet implemented for big endian
LIB_DEPENDS= libmodplug.so:audio/libmodplug \
diff --git a/devel/mdb/Makefile b/devel/mdb/Makefile
index 58f94b38660b..69d6f6b6681a 100644
--- a/devel/mdb/Makefile
+++ b/devel/mdb/Makefile
@@ -31,16 +31,6 @@ CFLAGS+= -DMDB_PREFIX=\\\"${PREFIX}\\\" -g
IGNORE= requires full source tree with CDDL sources
.endif
-.if ${OSVERSION} < 1300015 && ${COMPILER_TYPE} == "clang" && \
- ${COMPILER_VERSION} >= 80
-# clang 8 cannot compile due to enum redefinitions in kernel.h
-BROKEN= Depends on removed llvm70
-# BUILD_DEPENDS+= ${LOCALBASE}/bin/clang70:devel/llvm70
-# CPP= ${LOCALBASE}/bin/clang-cpp70
-# CC= ${LOCALBASE}/bin/clang70
-# CXX= ${LOCALBASE}/bin/clang++70
-.endif
-
pre-install:
${MKDIR} ${STAGEDIR}${PREFIX}/lib/mdb/kvm/${MACHINE_ARCH}
diff --git a/devel/mongo-c-driver/Makefile b/devel/mongo-c-driver/Makefile
index 9bd2aa0b960d..e26054539656 100644
--- a/devel/mongo-c-driver/Makefile
+++ b/devel/mongo-c-driver/Makefile
@@ -87,10 +87,6 @@ CFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L
.endif
.endif
-# .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300523
-# EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src_libmongoc_src_mongoc_mongoc-counters-private.h
-# .endif
-
pre-configure-CRYPTOPROFILE-on:
.if ${SSL_DEFAULT:Mlibressl*}
@${ECHO_MSG} "CRYPTOPROFILE requires OpenSSL."
diff --git a/devel/msgpack-c/Makefile b/devel/msgpack-c/Makefile
index 271b4a3c4303..e84d3f8f3bb8 100644
--- a/devel/msgpack-c/Makefile
+++ b/devel/msgpack-c/Makefile
@@ -21,13 +21,6 @@ GH_PROJECT= msgpack-c
CMAKE_OFF= MSGPACK_BUILD_EXAMPLES MSGPACK_BUILD_TESTS
TEST_TARGET= test
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "sparc64"
-# required for __sync _* atomic operations on sparc
-USE_GCC= yes
-.endif
-
pre-test:
cd ${WRKSRC} && ${CMAKE_BIN} . && ${MAKE_CMD}
@@ -35,7 +28,6 @@ pre-test:
# until upstream makes up its mind.
post-install:
${LN} -sf msgpack-c.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/msgpack.pc
-
${MKDIR} ${STAGEDIR}${PREFIX}/lib/cmake/msgpackc
.for tgt in config-version config targets-${CMAKE_BUILD_TYPE:tl} targets
${LN} -sf ../msgpack-c/msgpack-c-${tgt}.cmake \
@@ -45,4 +37,4 @@ post-install:
${LN} -sf libmsgpack-c.${ext} ${STAGEDIR}${PREFIX}/lib/libmsgpackc.${ext}
.endfor
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/devel/ncurses/Makefile b/devel/ncurses/Makefile
index dd3bebd76b3e..e321062fc1d6 100644
--- a/devel/ncurses/Makefile
+++ b/devel/ncurses/Makefile
@@ -12,8 +12,6 @@ WWW= https://invisible-island.net/ncurses/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
-BROKEN_sparc64= cannot build: coredump: illegal instruction
-
USES= cpe pkgconfig shebangfix
CPE_VENDOR= gnu
USE_LDCONFIG= yes
diff --git a/devel/nextpnr/Makefile b/devel/nextpnr/Makefile
index 38d8025d793f..8f405d4c1632 100644
--- a/devel/nextpnr/Makefile
+++ b/devel/nextpnr/Makefile
@@ -13,7 +13,6 @@ LICENSE_FILE= ${WRKSRC}/COPYING
NOT_FOR_ARCHS= i386
NOT_FOR_ARCHS_REASON= clang segfault
-BROKEN_FreeBSD_12_powerpc64= runaway build
BUILD_DEPENDS= ${LOCALBASE}/share/trellis/database:devel/trellis \
${LOCALBASE}/share/icebox:devel/icestorm
diff --git a/devel/p5-Data-MessagePack-Stream/Makefile b/devel/p5-Data-MessagePack-Stream/Makefile
index fc491d06d3cd..cae5a104293d 100644
--- a/devel/p5-Data-MessagePack-Stream/Makefile
+++ b/devel/p5-Data-MessagePack-Stream/Makefile
@@ -10,7 +10,6 @@ WWW= https://metacpan.org/release/Data-MessagePack-Stream
BROKEN_mips= fails to build: atomic operations are not found
BROKEN_mips64= fails to build: atomic operations are not found
-BROKEN_sparc64= fails to build: atomic operations are not found
BUILD_DEPENDS= p5-File-Which>=0:sysutils/p5-File-Which \
p5-Module-Build-XSUtil>=0:devel/p5-Module-Build-XSUtil \
diff --git a/devel/pcl/Makefile b/devel/pcl/Makefile
index 9c98ce1d31d8..bd55c0a03e37 100644
--- a/devel/pcl/Makefile
+++ b/devel/pcl/Makefile
@@ -14,8 +14,4 @@ USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/lib${PORTNAME}-${PORTVERSION}
-post-patch: # required at least on sparc64
- @${REINPLACE_CMD} -e '/<ucontext/ { x ; \
- s,.*,#include <inttypes.h>, ; G ; }' ${WRKSRC}/pcl/pcl.c
-
.include <bsd.port.mk>
diff --git a/devel/pcre/Makefile b/devel/pcre/Makefile
index 8ad3ad402f2e..effe0a551bce 100644
--- a/devel/pcre/Makefile
+++ b/devel/pcre/Makefile
@@ -16,7 +16,6 @@ USES= ${USES_${ARCH}} cpe libtool pathfix tar:bzip2
USES_powerpc= compiler:c++11-lang
USES_powerpc64= compiler:c++11-lang
USES_powerpcspe= compiler:c++11-lang
-USES_sparc64= compiler:c++11-lang
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
diff --git a/devel/pcre2/Makefile b/devel/pcre2/Makefile
index 2bf68b6efdb4..e2226318f21f 100644
--- a/devel/pcre2/Makefile
+++ b/devel/pcre2/Makefile
@@ -36,7 +36,7 @@ READLINE_CONFIGURE_ENABLE= pcre2test-libreadline
.include <bsd.port.options.mk>
-.if ${ARCH} != "sparc64" && ${ARCH:Mmips64*} == "" && ${ARCH:Mriscv64*} == ""
+.if ${ARCH:Mmips64*} == "" && ${ARCH:Mriscv64*} == ""
CONFIGURE_ARGS+= --enable-jit
.else
CONFIGURE_ARGS+= --disable-jit
diff --git a/devel/pickle/Makefile b/devel/pickle/Makefile
index a9c81456185b..b63a72976b24 100644
--- a/devel/pickle/Makefile
+++ b/devel/pickle/Makefile
@@ -14,7 +14,6 @@ BROKEN_armv6= invokes x86 assembler
BROKEN_armv7= invokes x86 assembler
BROKEN_mips= invokes x86 assembler
BROKEN_mips64= invokes x86 assembler
-BROKEN_sparc64= invokes x86 assembler
USES= gmake tar:tgz
diff --git a/devel/pika/Makefile b/devel/pika/Makefile
index 5b77ad277c46..a756b61a0441 100644
--- a/devel/pika/Makefile
+++ b/devel/pika/Makefile
@@ -10,7 +10,6 @@ WWW= https://github.com/pika-org/pika
LICENSE= BSL
LICENSE_FILE= ${WRKSRC}/LICENSE_1_0.txt
-BROKEN_FreeBSD_12= compilation error: /usr/include/sys/sysctl.h:1117:25: error: unknown type name 'u_int'
BROKEN_aarch64= compilation error: error: 'regparm' is not valid on this platform
BUILD_DEPENDS= boost-libs>=0:devel/boost-libs
diff --git a/devel/protobuf/Makefile b/devel/protobuf/Makefile
index 3fa15a6f5500..a68cf74dcde1 100644
--- a/devel/protobuf/Makefile
+++ b/devel/protobuf/Makefile
@@ -12,8 +12,6 @@ WWW= https://protobuf.dev/ \
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN_sparc64= fails to compile: no atomic ops available
-
LIB_DEPENDS= libabsl_base.so:devel/abseil \
libjsoncpp.so:devel/jsoncpp
TEST_DEPENDS= googletest>=0:devel/googletest
diff --git a/devel/py-hidraw/Makefile b/devel/py-hidraw/Makefile
index ceb18bd4c043..791bd3cd2097 100644
--- a/devel/py-hidraw/Makefile
+++ b/devel/py-hidraw/Makefile
@@ -15,13 +15,7 @@ USE_GITHUB= yes
GH_ACCOUNT= daym
USE_PYTHON= autoplist distutils
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 1300000
-IGNORE= requires FreeBSD 13 or later with hidraw support
-.endif
-
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/hidraw/_hidraw*.so
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/devel/py-keystone-engine/Makefile b/devel/py-keystone-engine/Makefile
index 92371f52beec..11356d245488 100644
--- a/devel/py-keystone-engine/Makefile
+++ b/devel/py-keystone-engine/Makefile
@@ -11,8 +11,6 @@ WWW= https://www.keystone-engine.org/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.TXT
-BROKEN_FreeBSD_12_powerpc64= fails to install: /wrkdirs/usr/ports/devel/py-keystone-engine/work-py36/keystone-engine-0.9.1-3/src/build/llvm/lib/libkeystone.so: No such file or directory
-
BUILD_DEPENDS= cmake:devel/cmake-core
USES= pkgconfig python
diff --git a/devel/qt5-script/files/patch-src__3rdparty__javascriptcore__JavaScriptCore__runtime__JSValue.h b/devel/qt5-script/files/patch-src__3rdparty__javascriptcore__JavaScriptCore__runtime__JSValue.h
deleted file mode 100644
index ab3985eaaf8a..000000000000
--- a/devel/qt5-script/files/patch-src__3rdparty__javascriptcore__JavaScriptCore__runtime__JSValue.h
+++ /dev/null
@@ -1,26 +0,0 @@
---- ./src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h.orig 2012-12-12 20:18:36.000000000 +0100
-+++ ./src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h 2012-12-17 02:13:05.073285539 +0100
-@@ -491,7 +491,11 @@
- u.asBits.tag = CellTag;
- else
- u.asBits.tag = EmptyValueTag;
-+#if defined(__sparc64__)
-+ u.asBits.payload = reinterpret_cast<int64_t>(ptr);
-+#else
- u.asBits.payload = reinterpret_cast<int32_t>(ptr);
-+#endif
- #if ENABLE(JSC_ZOMBIES)
- ASSERT(!isZombie());
- #endif
-@@ -503,7 +507,11 @@
- u.asBits.tag = CellTag;
- else
- u.asBits.tag = EmptyValueTag;
-+#if defined(__sparc64__)
-+ u.asBits.payload = reinterpret_cast<int64_t>(const_cast<JSCell*>(ptr));
-+#else
- u.asBits.payload = reinterpret_cast<int32_t>(const_cast<JSCell*>(ptr));
-+#endif
- #if ENABLE(JSC_ZOMBIES)
- ASSERT(!isZombie());
- #endif
diff --git a/devel/radare2/Makefile b/devel/radare2/Makefile
index 40ab4df1a161..fe15484ad5ee 100644
--- a/devel/radare2/Makefile
+++ b/devel/radare2/Makefile
@@ -10,7 +10,7 @@ WWW= https://www.radare.org
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
-NOT_FOR_ARCHS= armv6 armv7 mips mips64 powerpcspe sparc64
+NOT_FOR_ARCHS= armv6 armv7 mips mips64 powerpcspe
NOT_FOR_ARCHS_REASON= does not build: Unsupported BSD architecture
LIB_DEPENDS= libcapstone.so:devel/capstone
diff --git a/devel/root/Makefile b/devel/root/Makefile
index 9a137cf66611..5e2e1dff02c7 100644
--- a/devel/root/Makefile
+++ b/devel/root/Makefile
@@ -99,14 +99,6 @@ PLIST_SUB+= NOT_INSTALLED_ON_AARCH64="@comment " ONLY_INSTALLED_ON_AARCH64="" AA
PLIST_SUB+= NOT_INSTALLED_ON_AARCH64="" ONLY_INSTALLED_ON_AARCH64="@comment " AARCH64_PCM_PREFIX="" AARCH64_PCM_SUFFIX=""
.endif
-# Some files only installed with LLVM/Clang 13 (used on FreeBSD 12.4, 13.0 and 13.1)
-# TODO: Introduce USES+=llvm:min=14 instead when this can be deemed not too obtrusive on supported releases
-.if 1204000 <= ${OSVERSION} && ${OSVERSION} < 1302000 && ${OSVERSION} != 1301507
-PLIST_SUB+= ONLY_INSTALLED_WITH_LLVM_CLANG_13=""
-.else
-PLIST_SUB+= ONLY_INSTALLED_WITH_LLVM_CLANG_13="@comment "
-.endif
-
# The following two files should not be staged. This happens even when PYROOT option is OFF.
post-install:
${RM} ${STAGEDIR}${PREFIX}/lib/root/__pycache__/cmdLineUtils.cpython-39.pyc
diff --git a/devel/root/pkg-plist b/devel/root/pkg-plist
index 6d59df56bb94..80dbc89d24ba 100644
--- a/devel/root/pkg-plist
+++ b/devel/root/pkg-plist
@@ -4160,7 +4160,6 @@ lib/root/libvectorDict.so.%%SHLIB_SHVER%%
lib/root/libvectorDict.so.%%SHLIB_VER%%
%%NOT_INSTALLED_ON_AARCH64%%lib/root/modules.idx
%%NOT_INSTALLED_ON_AARCH64%%lib/root/std.pcm
-%%NOT_INSTALLED_ON_AARCH64%%%%ONLY_INSTALLED_WITH_LLVM_CLANG_13%%lib/root/std_config.pcm
%%PORTDOCS%%%%DOCSDIR%%/CREDITS
%%PORTDOCS%%%%DOCSDIR%%/DEVELOPMENT.md
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
diff --git a/devel/rubygem-gobject-introspection/Makefile b/devel/rubygem-gobject-introspection/Makefile
index 5fad457f6f28..b31ebffe849d 100644
--- a/devel/rubygem-gobject-introspection/Makefile
+++ b/devel/rubygem-gobject-introspection/Makefile
@@ -11,8 +11,6 @@ WWW= https://ruby-gnome.github.io/ \
LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/COPYING.LIB
-BROKEN_sparc64= does not build: fails to compile rb-gi-function-info.c
-
RUN_DEPENDS= rubygem-glib2>=${PORTVERSION}<${PORTVERSION}_99:devel/rubygem-glib2
USES= gem gnome
diff --git a/devel/rubygem-rice/Makefile b/devel/rubygem-rice/Makefile
index dfd0ed4329e7..8f68bdab049f 100644
--- a/devel/rubygem-rice/Makefile
+++ b/devel/rubygem-rice/Makefile
@@ -10,8 +10,6 @@ WWW= https://github.com/jasonroelofs/rice
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
-BROKEN_FreeBSD_12_powerpc64= fails to configure: could not find ruby.h
-
USES= gem
NO_ARCH= yes
diff --git a/devel/sdbus-cpp/Makefile b/devel/sdbus-cpp/Makefile
index d18c809e2a19..6aefa5f45320 100644
--- a/devel/sdbus-cpp/Makefile
+++ b/devel/sdbus-cpp/Makefile
@@ -22,12 +22,4 @@ CMAKE_ON= BUILD_CODE_GEN
CMAKE_OFF= BUILD_DOC
CMAKE_TESTING_ON= BUILD_TESTS
-# XXX Drop after FreeBSD 12.4 EOL around 2023-12-31
-# https://cgit.freebsd.org/src/commit/?id=7a202823aa54
-.if !exists(/usr/include/sys/eventfd.h)
-LIB_DEPENDS+= libepoll-shim.so:devel/libepoll-shim
-CFLAGS+= `pkg-config --cflags epoll-shim`
-LDFLAGS+= `pkg-config --libs epoll-shim`
-.endif
-
.include <bsd.port.mk>
diff --git a/devel/socket_wrapper/Makefile b/devel/socket_wrapper/Makefile
index 239f9798d252..af8775b2cf09 100644
--- a/devel/socket_wrapper/Makefile
+++ b/devel/socket_wrapper/Makefile
@@ -20,7 +20,6 @@ CFLAGS_powerpc64= -Wno-error=int-to-pointer-cast -Wno-error=pointer-to-int-cast
CFLAGS_powerpc64le= -Wno-error=int-to-pointer-cast -Wno-error=pointer-to-int-cast
CFLAGS_powerpcspe= -Wno-error=int-to-pointer-cast -Wno-error=pointer-to-int-cast
CFLAGS_riscv64= -Wno-error=int-to-pointer-cast -Wno-error=pointer-to-int-cast
-CFLAGS_sparc64= -Wno-error=int-to-pointer-cast -Wno-error=pointer-to-int-cast
CMAKE_ARGS= -DMAN_INSTALL_DIR:PATH="${PREFIX}/man"
OPTIONS_DEFINE= TEST
diff --git a/devel/stack/Makefile b/devel/stack/Makefile
index 31a752a24a27..990162b721ca 100644
--- a/devel/stack/Makefile
+++ b/devel/stack/Makefile
@@ -209,7 +209,7 @@ LLVM_VERSION= 10
RUN_DEPENDS+= llc${LLVM_VERSION}:devel/llvm${LLVM_VERSION}
.endif
-.if ${OSVERSION} >= 1300078 && ${ARCH} != powerpc64
+.if ${ARCH} != powerpc64
LIB_DEPENDS+= libncursesw.so.8:misc/compat12x
.endif
diff --git a/devel/tex-libtexluajit/Makefile b/devel/tex-libtexluajit/Makefile
index 453c80044360..c8e5e01c67db 100644
--- a/devel/tex-libtexluajit/Makefile
+++ b/devel/tex-libtexluajit/Makefile
@@ -17,7 +17,6 @@ BROKEN_mips= Does not configure: error: Sorry, cannot preprocess lj_arch.h
BROKEN_mips64= Does not configure: error: Sorry, cannot preprocess lj_arch.h
BROKEN_powerpc64= Does not build: uninitialized constant Config (NameError)
BROKEN_riscv64= Does not configure: error: Sorry, cannot preprocess lj_arch.h
-BROKEN_sparc64= Does not configure: error: Sorry, cannot preprocess lj_arch.h
USES= compiler libtool pathfix pkgconfig tar:xz tex
USE_LDCONFIG= yes
diff --git a/devel/upp/Makefile b/devel/upp/Makefile
index 92e0e64566d4..34d17052a5ea 100644
--- a/devel/upp/Makefile
+++ b/devel/upp/Makefile
@@ -14,7 +14,6 @@ LICENSE_FILE= ${WRKSRC}/uppsrc/Core/Copying
BROKEN_powerpc= Does not compile on ${ARCH}: error Unknown CPU architecture
BROKEN_powerpc64= Does not compile on ${ARCH}: error Unknown CPU architecture
-BROKEN_sparc64= Does not compile on ${ARCH}
USES= compiler:c++14-lang dos2unix pkgconfig:both tar:xz
DOS2UNIX_FILES= uppsrc/Core/config.h
diff --git a/dns/powerdns-recursor/Makefile b/dns/powerdns-recursor/Makefile
index 9945d0b90eb7..8d3129d05a9c 100644
--- a/dns/powerdns-recursor/Makefile
+++ b/dns/powerdns-recursor/Makefile
@@ -14,7 +14,6 @@ LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_armv6= fails to compile: use of overloaded operator << is ambiguous
BROKEN_armv7= fails to compile: use of overloaded operator << is ambiguous
-BROKEN_FreeBSD_12_powerpc64= fails to compile: Assembler messages: unaligned opcodes detected in executable segment
NOT_FOR_ARCHS= i386
NOT_FOR_ARCHS_REASON= archs with 32-bits time_t are no longer supported by upstream
diff --git a/dns/powerdns/Makefile b/dns/powerdns/Makefile
index a3d81b072716..f55080710786 100644
--- a/dns/powerdns/Makefile
+++ b/dns/powerdns/Makefile
@@ -10,7 +10,6 @@ WWW= https://www.powerdns.com/auth.html
LICENSE= GPLv2
-BROKEN_sparc64= does not compile: error: to_string is not a member of std
NOT_FOR_ARCHS= i386
NOT_FOR_ARCHS_REASON= archs with 32-bits time_t are no longer supported by upstream
diff --git a/editors/xcoral/Makefile b/editors/xcoral/Makefile
index 296fd6065fd0..744979802f9d 100644
--- a/editors/xcoral/Makefile
+++ b/editors/xcoral/Makefile
@@ -13,25 +13,19 @@ WWW= http://xcoral.free.fr/
LICENSE= GPLv2
-USES= bison compiler:c11 xorg
+LIB_DEPENDS= libgnuregex.so.[6-9]:devel/libgnuregex
+
+USES= bison compiler:c11 localbase:ldflags xorg
USE_XORG= x11
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --libdir=${PREFIX}/share
LIBS+= -lgnuregex
-LDFLAGS+= -L${LOCALBASE}/lib
-CFLAGS+= -isystem ${LOCALBASE}/include
EXTRACT_AFTER_ARGS= --exclude BR_Parser.[ch]
PLIST_SUB= VERSION="${PORTVERSION}"
OPTIONS_DEFINE= DOCS
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} > 1300000
-LIB_DEPENDS+= libgnuregex.so.[6-9]:devel/libgnuregex
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's| regex\.[co] | |g ; \
s| -g | |g' ${WRKSRC}/Makefile.in
@@ -43,4 +37,4 @@ do-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Doc/* ${STAGEDIR}${DOCSDIR}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/emulators/cingb/Makefile b/emulators/cingb/Makefile
index c1dd84aec842..7e95a9764614 100644
--- a/emulators/cingb/Makefile
+++ b/emulators/cingb/Makefile
@@ -34,7 +34,7 @@ DEBUG_PORTDOCS= DEBUGGER
.include <bsd.port.pre.mk>
-.if ${ARCH} != "sparc64" && ${ARCH} != "powerpc" && ${ARCH} != powerpc64
+.if ${ARCH} != "powerpc" && ${ARCH} != powerpc64
CPPFLAGS+= -DUSE_LITTLE_ENDIAN
.endif
diff --git a/emulators/dynamips-community/Makefile b/emulators/dynamips-community/Makefile
index 7b70c845677e..b22fac7dd5ef 100644
--- a/emulators/dynamips-community/Makefile
+++ b/emulators/dynamips-community/Makefile
@@ -11,7 +11,6 @@ WWW= https://github.com/GNS3/dynamips
LICENSE= GPLv2
BROKEN_riscv64= fails to compile: common/dynamips_common.h:71:2: Please define your architecture!
-BROKEN_sparc64= fails to compile: invokes x86 assembler
LIB_DEPENDS= libelf.so:devel/libelf
diff --git a/emulators/mednafen/Makefile b/emulators/mednafen/Makefile
index dbc5e56f1e89..17469deebc1e 100644
--- a/emulators/mednafen/Makefile
+++ b/emulators/mednafen/Makefile
@@ -16,8 +16,6 @@ LIB_DEPENDS= libcdio.so:sysutils/libcdio \
libsndfile.so:audio/libsndfile \
libvorbis.so:audio/libvorbis
-BROKEN_sparc64= fails to compile due to internal compiler error
-
GNU_CONFIGURE= yes
USE_SDL= sdl2 net2
USE_GL= gl glu
diff --git a/emulators/pcsx2/Makefile b/emulators/pcsx2/Makefile
index 0a1ac1dcdaff..ea43ee6b415c 100644
--- a/emulators/pcsx2/Makefile
+++ b/emulators/pcsx2/Makefile
@@ -95,11 +95,4 @@ Makefile.tuples::
https://github.com/${PORTNAME}/${PORTNAME} . && \
${SH} ${FILESDIR}/gen_gh_tuple.sh >> ${.CURDIR}/Makefile.tuples
-.include <bsd.port.pre.mk>
-
-# Fixed in 13.2 with commit 4b6eb0e63c69 (libc++ update)
-.if (${OSVERSION} <= 1301503)
-BROKEN= needs libc++ with std::bit_cast support
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/emulators/ppsspp/Makefile b/emulators/ppsspp/Makefile
index 9f670cc69298..1f406bc8fd20 100644
--- a/emulators/ppsspp/Makefile
+++ b/emulators/ppsspp/Makefile
@@ -15,7 +15,7 @@ WWW= https://www.ppsspp.org/
LICENSE= GPLv2+
# Bi-endian architectures default to big for some reason
-NOT_FOR_ARCHS= mips mips64 powerpc powerpc64 powerpcspe sparc64
+NOT_FOR_ARCHS= mips mips64 powerpc powerpc64 powerpcspe
NOT_FOR_ARCHS_REASON= only little-endian is supported, see \
https://github.com/hrydgard/ppsspp/issues/8823
diff --git a/emulators/qemu-devel/Makefile b/emulators/qemu-devel/Makefile
index e65e1d1a21c0..31260ad40caa 100644
--- a/emulators/qemu-devel/Makefile
+++ b/emulators/qemu-devel/Makefile
@@ -135,10 +135,6 @@ PLIST_SUB+= BSDUSER="@comment "
PLIST_SUB+= BSDUSER=""
.endif
-.if ${ARCH} == "sparc64"
-CONFIGURE_ARGS+= --sparc_cpu=v9
-.endif
-
PLIST_SUB+= LINUXBOOT_DMA=""
post-extract:
diff --git a/emulators/qemu/Makefile b/emulators/qemu/Makefile
index af29725edabe..e95b24050ff0 100644
--- a/emulators/qemu/Makefile
+++ b/emulators/qemu/Makefile
@@ -234,10 +234,6 @@ PLIST_SUB+= BSDUSER="@comment "
PLIST_SUB+= BSDUSER=""
.endif
-.if ${ARCH} == "sparc64"
-CONFIGURE_ARGS+= --sparc_cpu=v9
-.endif
-
PLIST_SUB+= LINUXBOOT_DMA=""
.endif
diff --git a/emulators/qemu7/Makefile b/emulators/qemu7/Makefile
index ca1bab5fcd30..1e8f1c7391fa 100644
--- a/emulators/qemu7/Makefile
+++ b/emulators/qemu7/Makefile
@@ -216,10 +216,6 @@ PLIST_SUB+= BSDUSER="@comment "
PLIST_SUB+= BSDUSER=""
.endif
-.if ${ARCH} == "sparc64"
-CONFIGURE_ARGS+= --sparc_cpu=v9
-.endif
-
PLIST_SUB+= LINUXBOOT_DMA=""
.endif
diff --git a/emulators/qmc2/Makefile b/emulators/qmc2/Makefile
index 96449d8029d1..5ee9546d7c55 100644
--- a/emulators/qmc2/Makefile
+++ b/emulators/qmc2/Makefile
@@ -58,12 +58,6 @@ DOCS_DESC= Comprehensive qmc2 documentaion
DOCS_ALL_TARGET= doc
DOCS_PORTDOCS= html
-.include <bsd.port.options.mk>
-
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000
-EXTRA_PATCHES= ${PATCHDIR}/extra-scripts-sdl-includepaths
-.endif
-
post-patch:
${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}/|g' \
-e 's|%%DOCSDIR%%|${DOCSDIR}/|g' \
diff --git a/emulators/qmc2/files/extra-scripts-sdl-includepaths b/emulators/qmc2/files/extra-scripts-sdl-includepaths
deleted file mode 100644
index dde0e2d190d0..000000000000
--- a/emulators/qmc2/files/extra-scripts-sdl-includepaths
+++ /dev/null
@@ -1,9 +0,0 @@
---- scripts/sdl-includepath.sh.orig 2022-12-03 08:13:04 UTC
-+++ scripts/sdl-includepath.sh
-@@ -26,5 +26,5 @@ fi
- fi
- fi
- fi
--echo $SDL_CFLAGS | egrep -o -e "\\-I\\S+" | sed -e 's/^-I//'
-+echo $SDL_CFLAGS | egrep -o -e "-I[^[:space:]]+" | sed -e 's/^-I//'
- exit 0
diff --git a/emulators/rpcs3/files/patch-libc++13 b/emulators/rpcs3/files/patch-libc++13
deleted file mode 100644
index b4f61b5f22b4..000000000000
--- a/emulators/rpcs3/files/patch-libc++13
+++ /dev/null
@@ -1,26 +0,0 @@
-Drop after FreeBSD 12.4 EOL around 2023-12-31.
-
-Utilities/Config.cpp:194:23: error: no matching function for call to 'to_chars'
- if (auto [ptr, ec] = std::to_chars(str.data(), str.data() + str.size(), value, std::chars_format::fixed); ec == std::errc())
- ^~~~~~~~~~~~~
-/usr/include/c++/v1/charconv:166:6: note: candidate function not viable: no known conversion from 'std::chars_format' to 'int' for 4th argument
-void to_chars(char*, char*, bool, int = 10) = delete;
- ^
-/usr/include/c++/v1/charconv:458:1: note: candidate template ignored: requirement 'is_integral<double>::value' was not satisfied [with _Tp = double]
-to_chars(char* __first, char* __last, _Tp __value, int __base)
-^
-/usr/include/c++/v1/charconv:450:1: note: candidate function template not viable: requires 3 arguments, but 4 were provided
-to_chars(char* __first, char* __last, _Tp __value)
-^
-
---- Utilities/Config.cpp.orig 2023-02-25 10:23:07 UTC
-+++ Utilities/Config.cpp
-@@ -185,7 +185,7 @@ bool try_to_string(std::string* out, const f64& value)
-
- bool try_to_string(std::string* out, const f64& value)
- {
--#ifdef __APPLE__
-+#if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 14000
- if (out) *out = std::to_string(value);
- return true;
- #else
diff --git a/emulators/vba/Makefile b/emulators/vba/Makefile
index 730b401a362b..bc95fd8e3527 100644
--- a/emulators/vba/Makefile
+++ b/emulators/vba/Makefile
@@ -13,7 +13,6 @@ LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_powerpc= Runaway cc1plus process
-BROKEN_sparc64= Runaway cc1plus process
BUILD_DEPENDS= nasm:devel/nasm
LIB_DEPENDS= libpng.so:graphics/png
diff --git a/emulators/virtualbox-ose/Makefile b/emulators/virtualbox-ose/Makefile
index 2d0d0538b210..975ee510b8ee 100644
--- a/emulators/virtualbox-ose/Makefile
+++ b/emulators/virtualbox-ose/Makefile
@@ -202,11 +202,6 @@ KMK_FLAGS+= -j${MAKE_JOBS_NUMBER}
.include <bsd.port.pre.mk>
-.if ${OPSYS} == FreeBSD && \
- (${OSVERSION} < 1300513 || ${OSVERSION} >= 1400000 && ${OSVERSION} < 1400026)
-EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-src_VBox_Devices_PC_DevFwCommon.cpp
-.endif
-
.if ${CHOSEN_COMPILER_TYPE} == clang
# 1) llvm10 in FreeBSD before r364284 miscompiles virtualbox 6.1 causing errors.
# 2) llvm15 in FreeBSD miscompiles virtualbox 6.1 causing errors: PR#270189.
diff --git a/emulators/virtualbox-ose/files/extrapatch-src_VBox_Devices_PC_DevFwCommon.cpp b/emulators/virtualbox-ose/files/extrapatch-src_VBox_Devices_PC_DevFwCommon.cpp
deleted file mode 100644
index 2ee34f889bb6..000000000000
--- a/emulators/virtualbox-ose/files/extrapatch-src_VBox_Devices_PC_DevFwCommon.cpp
+++ /dev/null
@@ -1,14 +0,0 @@
---- src/VBox/Devices/PC/DevFwCommon.cpp.orig
-+++ src/VBox/Devices/PC/DevFwCommon.cpp
-@@ -40,6 +40,11 @@
- #include "VBoxDD2.h"
- #include "DevFwCommon.h"
-
-+static inline void *
-+mempcpy(void *__restrict dst, const void *__restrict src, size_t len)
-+{
-+ return ((char *)memcpy(dst, src, len) + len);
-+}
-
- /*********************************************************************************************************************************
- * Defined Constants And Macros *
diff --git a/emulators/wine-proton/Makefile b/emulators/wine-proton/Makefile
index 3a70822ed0d3..f284c1b31756 100644
--- a/emulators/wine-proton/Makefile
+++ b/emulators/wine-proton/Makefile
@@ -11,7 +11,6 @@ LICENSE= LGPL21 LGPL3
LICENSE_COMB= dual
LICENSE_FILE= ${WRKSRC}/LICENSE
-IGNORE_FreeBSD_12=requires F_ADD_SEALS
ONLY_FOR_ARCHS= amd64 i386
BUILD_DEPENDS= ${LOCALBASE}/bin/flex:textproc/flex \
diff --git a/finance/ledger/Makefile b/finance/ledger/Makefile
index d78150340624..d8308c92ed67 100644
--- a/finance/ledger/Makefile
+++ b/finance/ledger/Makefile
@@ -11,8 +11,6 @@ WWW= https://ledger-cli.org/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.md
-BROKEN_FreeBSD_12_powerpc64= fails to link on powerpc64 elfv1: ibledger.so.3: undefined reference to boost::match_results
-
BUILD_DEPENDS= utf8cpp>=0:devel/utf8cpp
LIB_DEPENDS= libgmp.so:math/gmp \
libmpfr.so:math/mpfr \
diff --git a/french/aster/Makefile b/french/aster/Makefile
index 821af1c997ad..d44770abe241 100644
--- a/french/aster/Makefile
+++ b/french/aster/Makefile
@@ -80,10 +80,6 @@ INTERACTIVE_SCRIPTS= check_compilers.py setup.py
.include "${.CURDIR}/../../french/aster/bsd.aster.mk"
.include <bsd.port.pre.mk>
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300068
-BROKEN= a larger value of ARG_MAX is needed for Code_Aster, please upgrade your system
-.endif
-
.if ${ARCH} == "i386"
FLAGARCH= -DP_LINUX -DLINUX
.else
diff --git a/ftp/axel/Makefile b/ftp/axel/Makefile
index da01ca854cd0..cbf1722f7726 100644
--- a/ftp/axel/Makefile
+++ b/ftp/axel/Makefile
@@ -21,11 +21,7 @@ GH_ACCOUNT= axel-download-accelerator
GNU_CONFIGURE= yes
-.if exists(/usr/libdata/pkgconfig/openssl.pc)
CONFIGURE_ARGS= --with-ssl=openssl
-.else
-CONFIGURE_ARGS= --without-ssl # no easy workaround
-.endif
PLIST_FILES= bin/axel \
man/man1/axel.1.gz
diff --git a/ftp/freebsd-ftpd/Makefile b/ftp/freebsd-ftpd/Makefile
index 9eb9980babeb..c386daf2fba9 100644
--- a/ftp/freebsd-ftpd/Makefile
+++ b/ftp/freebsd-ftpd/Makefile
@@ -17,7 +17,8 @@ USES= uidfix
MAKE_ARGS+= BINOWN=${BINOWN} BINMODE=${BINMODE}
MAKE_ENV+= MAKESYSPATH=/usr/src/share/mk \
BINDIR=${PREFIX}/libexec \
- MANDIR=${PREFIX}/man/man
+ MANDIR=${PREFIX}/man/man \
+ MK_WERROR=no
OPTIONS_DEFINE= IPV6 LIBBLACKLIST
OPTIONS_DEFAULT= IPV6 LIBBLACKLIST
@@ -25,12 +26,4 @@ OPTIONS_DEFAULT= IPV6 LIBBLACKLIST
LIBBLACKLIST_DESC= libblacklist(3) support for rlogind(8) and rshd(8)
LIBBLACKLIST_MAKE_ARGS= USE_LIBBLACKLIST=yes
-.include <bsd.port.options.mk>
-
-.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300134
-MAKE_ENV+= MK_WERROR=no
-.else
-MAKE_ENV+= NO_WERROR=1
-.endif
-
.include <bsd.port.mk>
diff --git a/games/adom/Makefile b/games/adom/Makefile
index dddda0c74151..f30136800b94 100644
--- a/games/adom/Makefile
+++ b/games/adom/Makefile
@@ -13,6 +13,8 @@ LICENSE_NAME= The ADOM License
LICENSE_FILE= ${WRKSRC}/docs/readme1st.txt
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror
+LIB_DEPENDS+= libncursesw.so.8:misc/compat12x
+
NO_CDROM= Copy of CD must be sent to author
ONLY_FOR_ARCHS= amd64 i386
@@ -31,10 +33,6 @@ ARCH_BITS= 64
ARCH_BITS= 32
.endif
-.if ${OSVERSION} >= 1300078
-LIB_DEPENDS+= libncursesw.so.8:misc/compat12x
-.endif
-
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/adom ${STAGEDIR}${PREFIX}/bin
diff --git a/games/blinkensisters/Makefile b/games/blinkensisters/Makefile
index 4b5ceb3894cb..fc915477724c 100644
--- a/games/blinkensisters/Makefile
+++ b/games/blinkensisters/Makefile
@@ -11,8 +11,6 @@ WWW= https://sourceforge.net/projects/blinkensisters/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/DOC/LICENSE
-BROKEN_sparc64= does not compile on sparc64
-
# actually, old gcc fails in theora.h
USES= cmake:insource compiler:c++11-lang localbase perl5 sdl
USE_CXXSTD= c++14
diff --git a/games/bloodfrontier/Makefile b/games/bloodfrontier/Makefile
index b6d19e1c9d2c..bef0acb29d7b 100644
--- a/games/bloodfrontier/Makefile
+++ b/games/bloodfrontier/Makefile
@@ -13,7 +13,6 @@ LICENSE= ZLIB
BROKEN_powerpc= fails to compile
BROKEN_powerpc64= fails to compile: tools.h: incompatible types in assignment
-BROKEN_sparc64= fails to compile
USES= tar:bzip2 gmake
USE_CXXSTD= c++14
diff --git a/games/bsdgames/Makefile b/games/bsdgames/Makefile
index cd60df538642..5458d6a815d0 100644
--- a/games/bsdgames/Makefile
+++ b/games/bsdgames/Makefile
@@ -25,12 +25,6 @@ CONFLICTS= hangman
INFO= wump
INFO_PATH= share/games
-.include <bsd.port.pre.mk>
-
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300134
-MAKE_ARGS+= NO_WERROR=yes
-.endif
-
pre-install:
.for d in atc larn quiz.db boggle
@${MKDIR} ${STAGEDIR}${PREFIX}/share/games/$d
@@ -49,4 +43,4 @@ post-install:
@${TOUCH} ${STAGEDIR}/var/games/atc_score
@${FIND} ${STAGEDIR}/var/games -type f -exec ${MV} {} {}.sample \;
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/games/chessx/Makefile b/games/chessx/Makefile
index 40234def862d..9b92171f53eb 100644
--- a/games/chessx/Makefile
+++ b/games/chessx/Makefile
@@ -42,10 +42,4 @@ post-patch:
post-configure:
( cd ${BUILD_WRKSRC} && ${LRELEASE} ${WRKSRC}/${PORTNAME}.pro )
-# the FIND command works around a bug in FreeBSD 12.4 strip(1) which
-# leaves junk files when attempting to strip a file of unrecognised format.
-post-install:
- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/chessx
- ${FIND} ${STAGEDIR}${PREFIX} -name 'ecp.????????' -delete
-
.include <bsd.port.post.mk>
diff --git a/games/el/Makefile b/games/el/Makefile
index 2a5a2beda0e0..24dbd43fc46d 100644
--- a/games/el/Makefile
+++ b/games/el/Makefile
@@ -8,8 +8,6 @@ MAINTAINER= acm@FreeBSD.org
COMMENT= Eternal Lands is a free 3D MMORPG
WWW= https://www.eternal-lands.com/
-BROKEN_sparc64= fails to build on sparc64
-
BUILD_DEPENDS= nlohmann-json>0:devel/nlohmann-json
LIB_DEPENDS= libpng.so:graphics/png \
libvorbis.so:audio/libvorbis \
diff --git a/games/fishsupper/Makefile b/games/fishsupper/Makefile
index ceed43d60b65..4ce95cfc213f 100644
--- a/games/fishsupper/Makefile
+++ b/games/fishsupper/Makefile
@@ -13,8 +13,6 @@ LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/include/boost/bind.hpp:devel/boost-libs
-BROKEN_FreeBSD_12_powerpc64= fails to compile: Log.h: expected initializer before '<' token
-
GNU_CONFIGURE= yes
USES= gl gmake localbase:ldflags sdl
USE_SDL= sdl image mixer
diff --git a/games/freeminer/Makefile b/games/freeminer/Makefile
index 7eb0c988fc59..06b237c3a35a 100644
--- a/games/freeminer/Makefile
+++ b/games/freeminer/Makefile
@@ -12,7 +12,6 @@ LICENSE_COMB= multi
LICENSE_FILE_GPLv3+ = ${WRKSRC}/COPYING # don't remove space
BROKEN_armv7= fails to configure: Looking for include file endian.h - not found
-BROKEN_FreeBSD_12_powerpc64= fails to compile: freeminer-0.4.10.4/src/util/lock.h:200:31: error: cannot convert 'const shared_map<Key, T, Compare, Allocator>*' to 'locker*
LIB_DEPENDS= libsqlite3.so:databases/sqlite3
diff --git a/games/jaggedalliance2/Makefile b/games/jaggedalliance2/Makefile
index dec8bcf67983..1224f67adf6d 100644
--- a/games/jaggedalliance2/Makefile
+++ b/games/jaggedalliance2/Makefile
@@ -16,7 +16,7 @@ LICENSE_PERMS_SFI-SCLA= dist-mirror no-dist-sell pkg-mirror no-pkg-sell \
auto-accept
# Ignore this if you feel adventurous
-ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc64le
+ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc64le
ONLY_FOR_ARCHS_REASON= requires little endian environment
BUILD_DEPENDS= string_theory>=3.1:devel/string_theory \
diff --git a/games/lgeneral/Makefile b/games/lgeneral/Makefile
index 1e20932f8950..5b633789d052 100644
--- a/games/lgeneral/Makefile
+++ b/games/lgeneral/Makefile
@@ -14,7 +14,6 @@ LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_powerpc= does not install
-BROKEN_sparc64= does not install
USES= gmake localbase sdl
USE_CSTD= gnu89
diff --git a/games/linux-steam-utils/Makefile b/games/linux-steam-utils/Makefile
index 2573fc81e8ee..9c77d995c9d4 100644
--- a/games/linux-steam-utils/Makefile
+++ b/games/linux-steam-utils/Makefile
@@ -10,7 +10,6 @@ WWW= https://github.com/shkhln/linuxulator-steam-utils
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-IGNORE_FreeBSD_12=not supported
ONLY_FOR_ARCHS= amd64
RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss \
diff --git a/games/moonlight-qt/Makefile b/games/moonlight-qt/Makefile
index 385e56e305b5..14626d2d7fa7 100644
--- a/games/moonlight-qt/Makefile
+++ b/games/moonlight-qt/Makefile
@@ -33,27 +33,13 @@ PLIST_FILES= bin/moonlight-qt \
share/metainfo/com.moonlight_stream.Moonlight.appdata.xml \
share/icons/hicolor/scalable/apps/moonlight.svg \
-.include <bsd.port.pre.mk>
-
-# fix ssl dependency lack on 12.x releases
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000
-LDFLAGS+= -L${LOCALBASE}/lib -L${OPENSSLLIB} -lssl -lcrypto
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's@Exec=moonlight.*@Exec=${PORTNAME}${PKGNAMESUFFIX}@' \
${WRKSRC}/app/deploy/linux/com.moonlight_stream.Moonlight.desktop
@${REINPLACE_CMD} -e 's@^ TARGET = moonlight.*@ TARGET = ${PORTNAME}${PKGNAMESUFFIX}@' \
${WRKSRC}/app/app.pro
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000
- @${REINPLACE_CMD} -e 's@openssl @@' \
- ${WRKSRC}/app/app.pro
- @${REINPLACE_CMD} -e '/openssl/ d' \
- ${WRKSRC}/moonlight-common-c/moonlight-common-c.pro
-.endif
-
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/games/openglad/Makefile b/games/openglad/Makefile
index 71a062866a5e..1a47a3b101cb 100644
--- a/games/openglad/Makefile
+++ b/games/openglad/Makefile
@@ -11,8 +11,6 @@ WWW= https://snowstorm.sourceforge.net
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
-NOT_FOR_ARCHS= sparc64
-
USES= gmake localbase:ldflags sdl
USE_CXXSTD= c++14
USE_SDL= sdl mixer
diff --git a/games/openrct2/Makefile b/games/openrct2/Makefile
index 457a4b8528da..d6106ce69441 100644
--- a/games/openrct2/Makefile
+++ b/games/openrct2/Makefile
@@ -19,7 +19,7 @@ WWW= https://openrct2.io/
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/licence.txt
-NOT_FOR_ARCHS= mips mips64 powerpc powerpc64 powerpcspe sparc64
+NOT_FOR_ARCHS= mips mips64 powerpc powerpc64 powerpcspe
NOT_FOR_ARCHS_REASON= Only for little-endian architectures
BUILD_DEPENDS= nlohmann-json>0:devel/nlohmann-json
diff --git a/games/pentobi/Makefile b/games/pentobi/Makefile
index a3370b8073f9..a24a572ef30f 100644
--- a/games/pentobi/Makefile
+++ b/games/pentobi/Makefile
@@ -12,8 +12,6 @@ WWW= https://pentobi.sourceforge.io/ \
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/LICENSE.md
-BROKEN_FreeBSD_12= does not build: no member named 'test' in 'std::__1::atomic_flag'
-
BUILD_DEPENDS= itstool:textproc/itstool \
xsltproc:textproc/libxslt \
${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl
diff --git a/games/quetoo/Makefile b/games/quetoo/Makefile
index c8ff605b30ac..8e6396a1901c 100644
--- a/games/quetoo/Makefile
+++ b/games/quetoo/Makefile
@@ -76,10 +76,6 @@ CONFIGURE_ARGS+= --without-mysql
CONFIGURE_ARGS+= --with-games='${Q2GAMES}'
-.if ${ARCH} == "sparc64"
-BROKEN= Does not compile on sparc64
-.endif
-
post-patch: .SILENT
${REINPLACE_CMD} -E 's,^(eval PKGDATADIR=).*$$,\1"${Q2DIR}", ; \
19752s,sdl-config,${SDL_CONFIG}, ; \
diff --git a/games/redeclipse/Makefile b/games/redeclipse/Makefile
index 55e43cd22094..868a18e42c8d 100644
--- a/games/redeclipse/Makefile
+++ b/games/redeclipse/Makefile
@@ -13,8 +13,6 @@ LICENSE_COMB= multi
CONFLICTS_INSTALL=redeclipse16
-BROKEN_sparc64= does not build on sparc64
-
RUN_DEPENDS= redeclipse-data>=${PORTVERSION}:games/redeclipse-data
USE_GITHUB= yes
diff --git a/games/redeclipse16/Makefile b/games/redeclipse16/Makefile
index 74f261a21acc..fa33dde09ee2 100644
--- a/games/redeclipse16/Makefile
+++ b/games/redeclipse16/Makefile
@@ -14,8 +14,6 @@ LICENSE_COMB= multi
CONFLICTS_INSTALL=redeclipse
-BROKEN_sparc64= does not build on sparc64
-
RUN_DEPENDS= redeclipse-data16>=${PORTVERSION}:games/redeclipse-data16
USE_GITHUB= yes
diff --git a/games/regoth/Makefile b/games/regoth/Makefile
index a0cef55d3644..c838833e17f0 100644
--- a/games/regoth/Makefile
+++ b/games/regoth/Makefile
@@ -10,7 +10,6 @@ WWW= https://github.com/REGoth-project/REGoth
LICENSE= GPLv3
-BROKEN_FreeBSD_12_powerpc64= fails to build: /usr/include/math.h:251:8: error: conflicting declaration of C function 'double pow(double, double)'
BROKEN_FreeBSD_13_powerpc64= fails to build: mmintrin.h:33:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
BROKEN_riscv64= fails to build: mmintrin.h:33:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
diff --git a/games/retroarch/Makefile b/games/retroarch/Makefile
index 18d06bac680d..e7cf1b4dd8af 100644
--- a/games/retroarch/Makefile
+++ b/games/retroarch/Makefile
@@ -41,7 +41,6 @@ OPTIONS_DEFINE_i386= WAYLAND
OPTIONS_DEFAULT=FFMPEG OSS SDL OPENGL OPENAL V4L FREETYPE UDEV QT X11
OPTIONS_DEFAULT_amd64= WAYLAND
OPTIONS_DEFAULT_i386= WAYLAND
-OPTIONS_EXCLUDE_FreeBSD_12= WAYLAND # requires memfd_create()
FFMPEG_DESC= On-the-fly recording of gameplay with libavcodec
WAYLAND_DESC= Wayland display support
UDEV_DESC= udev device hotplug support
diff --git a/games/rlvm/Makefile b/games/rlvm/Makefile
index f6c4ec555214..23609b2ae5ee 100644
--- a/games/rlvm/Makefile
+++ b/games/rlvm/Makefile
@@ -12,8 +12,6 @@ WWW= http://www.rlvm.net/
LICENSE= GPLv2 GPLv3 MIT
LICENSE_COMB= multi
-BROKEN_FreeBSD_12_powerpc64= fails to link on powerpc64 elfv1: gcn_platform.cc: undefined reference to gcn::Exception::Exception
-
BUILD_DEPENDS= boost-libs>0:devel/boost-libs \
utf8cpp>=4.0.3:devel/utf8cpp
LIB_DEPENDS= libsndfile.so:audio/libsndfile \
diff --git a/games/sdb/Makefile b/games/sdb/Makefile
index 46382a779bb9..9668ab22aa4c 100644
--- a/games/sdb/Makefile
+++ b/games/sdb/Makefile
@@ -41,7 +41,7 @@ OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
-.if ${ARCH} != "powerpc" && ${ARCH} != "powerpc64" && ${ARCH} != "sparc64"
+.if ${ARCH} != "powerpc" && ${ARCH} != "powerpc64"
PLIST_SUB+= MODEL_SUFFIX="md2"
.else
# big-endian requires different set of models
diff --git a/games/sdlpop/Makefile b/games/sdlpop/Makefile
index 6ebe490a12e4..618c03814fe1 100644
--- a/games/sdlpop/Makefile
+++ b/games/sdlpop/Makefile
@@ -10,7 +10,7 @@ WWW= https://github.com/NagyD/SDLPoP
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/../COPYING
-NOT_FOR_ARCHS= powerpc powerpc64 powerpcspe sparc64
+NOT_FOR_ARCHS= powerpc powerpc64 powerpcspe
NOT_FOR_ARCHS_REASON= SDLPoP-1.18.1/src/types.h:54:2: This program is not (yet) prepared for big endian CPUs, please contact the author.
USES= cmake localbase:ldflags sdl
diff --git a/games/spacejunk/Makefile b/games/spacejunk/Makefile
index d9b031aa8aba..8239eecece29 100644
--- a/games/spacejunk/Makefile
+++ b/games/spacejunk/Makefile
@@ -12,7 +12,6 @@ LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_aarch64= Fails to compile: error: _compile_time_assert__ declared as an array with a negative size
-BROKEN_sparc64= Doesn't compile on sparc64
USES= dos2unix localbase sdl
USE_CXXSTD= c++98
diff --git a/games/wolfpack/Makefile b/games/wolfpack/Makefile
index dee8995bf780..64836e44abab 100644
--- a/games/wolfpack/Makefile
+++ b/games/wolfpack/Makefile
@@ -25,15 +25,9 @@ GROUPS= wolfpack
USE_RC_SUBR= wolfpack
SUB_FILES+= pkg-message
-.include <bsd.port.pre.mk>
-
post-patch:
${REINPLACE_CMD} -e '/^econfig/,/^$$/s|/empire|/${PORTNAME}|' \
${WRKSRC}/Make.mk ${WRKSRC}/sources.mk
-.if ${ARCH} == "sparc64"
- ${REINPLACE_CMD} -e '/ucontext\.h/ { h; s|ucontext|sys/types|; G; }' \
- ${WRKSRC}/src/lib/lwp/lwpint.h
-.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DATADIR}
@@ -43,4 +37,4 @@ post-install:
${STAGEDIR}${PREFIX}/lib/wolfpack/pconfig > \
${STAGEDIR}${ETCDIR}/econfig.sample
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/Hermes/Makefile b/graphics/Hermes/Makefile
index 51848c2584e3..8e8edb4e213b 100644
--- a/graphics/Hermes/Makefile
+++ b/graphics/Hermes/Makefile
@@ -12,8 +12,6 @@ WWW= http://web.archive.org/web/20061005045333/http://www.clanlib.org/hermes/
LICENSE= LGPL20
LICENSE_FILE= ${WRKSRC}/COPYING
-BROKEN_sparc64= interchanges red and blue colour channels in images
-
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USES= gmake libtool tar:bzip2
diff --git a/graphics/aseprite/Makefile b/graphics/aseprite/Makefile
index 4a1d6f74b5ed..5820370f0f92 100644
--- a/graphics/aseprite/Makefile
+++ b/graphics/aseprite/Makefile
@@ -15,7 +15,6 @@ LICENSE_PERMS= dist-mirror auto-accept
BROKEN_armv6= fails to compile: undefined reference to __va_copy
BROKEN_armv7= fails to compile: undefined reference to __va_copy
-BROKEN_sparc64= fails to compile: vsnprintf is not a member of std
EXTRACT_DEPENDS= ${NONEXISTENT}:x11/pixman:extract
LIB_DEPENDS= liballeg.so:devel/allegro \
diff --git a/graphics/cbonsai/Makefile b/graphics/cbonsai/Makefile
index acd4dfbdb783..071747cd82a9 100644
--- a/graphics/cbonsai/Makefile
+++ b/graphics/cbonsai/Makefile
@@ -10,7 +10,6 @@ WWW= https://gitlab.com/jallbrit/cbonsai
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN_FreeBSD_12= ld: error: undefined symbol: win_wch
BROKEN_FreeBSD_14= ld: error: undefined symbol: del_panel
USES= compiler:c11 ncurses
diff --git a/graphics/darktable/Makefile b/graphics/darktable/Makefile
index 2660fae03d6d..a85b9ea58869 100644
--- a/graphics/darktable/Makefile
+++ b/graphics/darktable/Makefile
@@ -44,6 +44,7 @@ LIB_DEPENDS= libavif.so:graphics/libavif \
USES= cmake compiler:gcc-c++11-lib desktop-file-utils gl gnome jpeg \
llvm:15,build lua:54 perl5 pkgconfig sdl shebangfix sqlite \
tar:xz xorg
+USE_GCC= yes
USE_GL= gl
USE_GNOME= cairo gtk30 intltool librsvg2 libxml2
USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME}
@@ -95,32 +96,6 @@ TOOLS_RUN_DEPENDS= exiftool:graphics/p5-Image-ExifTool
.include <bsd.port.options.mk>
-.if ${OPSYS}_${OSREL:R} == FreeBSD_12
-# Darktable fails to compile with GCC 13+ on FreeBSD 12.x with the following
-# error:
-#
-# In file included from /usr/include/c++/v1/__functional/weak_result_type.h:16,
-# from /usr/include/c++/v1/__functional/invoke.h:14,
-# from /usr/include/c++/v1/__functional_base:15,
-# from /usr/include/c++/v1/string:520,
-# from .../work/darktable-4.4.2/src/external/rawspeed/src/librawspeed/common/ChecksumFile.h:23,
-# from .../work/darktable-4.4.2/src/external/rawspeed/src/librawspeed/common/ChecksumFile.cpp:21:
-# /usr/include/c++/v1/type_traits:1770:8: error: expected identifier before '__is_convertible'
-# 1770 | struct __is_convertible
-# | ^~~~~~~~~~~~~~~~
-#
-# This seems to be an incompatibility between GCC 13+ and libcxx provided with
-# FreeBSD 12.x. The workarounbd is to force the use of GCC 12 on this version
-# of FreeBSD.
-#
-# See:
-# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273397
-# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273681
-USE_GCC= 12
-.else
-USE_GCC= yes
-.endif
-
.if ${ARCH} == aarch64 || ${ARCH} == powerpc64le
CMAKE_ARGS+= -DUSE_OPENCL:BOOL=OFF
CXXFLAGS+= -DGDK_DISABLE_DEPRECATED
diff --git a/graphics/drm-510-kmod/Makefile b/graphics/drm-510-kmod/Makefile
index 192b3e20f98d..1bdeb3d7ff69 100644
--- a/graphics/drm-510-kmod/Makefile
+++ b/graphics/drm-510-kmod/Makefile
@@ -26,9 +26,6 @@ GH_TAGNAME= ${DRM_KMOD_GH_TAGNAME}
.include <bsd.port.options.mk>
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1301000
-IGNORE= not supported on older than 13.1, no kernel support
-.endif
.if ${OPSYS} != FreeBSD
IGNORE= not supported on anything but FreeBSD (missing linuxkpi functionality)
.endif
diff --git a/graphics/gpu-firmware-amd-kmod/Makefile b/graphics/gpu-firmware-amd-kmod/Makefile
index e9d2b87564c3..dd91165b81bb 100644
--- a/graphics/gpu-firmware-amd-kmod/Makefile
+++ b/graphics/gpu-firmware-amd-kmod/Makefile
@@ -58,13 +58,6 @@ FLAVORS= aldebaran \
vangogh \
yellow_carp
-cyan_skillfish2_IGNORE_FreeBSD_12= "Not supported on < 13.1"
-dimgrey_cavefish_IGNORE_FreeBSD_12= "Not supported on < 13.1"
-green_sardine_IGNORE_FreeBSD_12= "Not supported on < 13.1"
-sienna_cichlid_IGNORE_FreeBSD_12= "Not supported on < 13.1"
-navy_flounder_IGNORE_FreeBSD_12= "Not supported on < 13.1"
-vangogh_IGNORE_FreeBSD_12= "Not supported on < 13.1"
-
USES= kmod uidfix
USE_GITHUB= yes
diff --git a/graphics/gpu-firmware-kmod/Makefile b/graphics/gpu-firmware-kmod/Makefile
index 4886e20bd600..8d1a2684964a 100644
--- a/graphics/gpu-firmware-kmod/Makefile
+++ b/graphics/gpu-firmware-kmod/Makefile
@@ -51,7 +51,13 @@ RUN_DEPENDS= gpu-firmware-radeon-kmod-aruba>0:graphics/gpu-firmware-radeon-kmod@
gpu-firmware-radeon-kmod-sumo2>0:graphics/gpu-firmware-radeon-kmod@sumo2 \
gpu-firmware-radeon-kmod-tahiti>0:graphics/gpu-firmware-radeon-kmod@tahiti \
gpu-firmware-radeon-kmod-turks>0:graphics/gpu-firmware-radeon-kmod@turks \
- gpu-firmware-radeon-kmod-verde>0:graphics/gpu-firmware-radeon-kmod@verde
+ gpu-firmware-radeon-kmod-verde>0:graphics/gpu-firmware-radeon-kmod@verde \
+ gpu-firmware-amd-kmod-cyan-skillfish2>0:graphics/gpu-firmware-amd-kmod@cyan_skillfish2 \
+ gpu-firmware-amd-kmod-dimgrey-cavefish>0:graphics/gpu-firmware-amd-kmod@dimgrey_cavefish \
+ gpu-firmware-amd-kmod-green-sardine>0:graphics/gpu-firmware-amd-kmod@green_sardine \
+ gpu-firmware-amd-kmod-navy-flounder>0:graphics/gpu-firmware-amd-kmod@navy_flounder \
+ gpu-firmware-amd-kmod-sienna-cichlid>0:graphics/gpu-firmware-amd-kmod@sienna_cichlid \
+ gpu-firmware-amd-kmod-vangogh>0:graphics/gpu-firmware-amd-kmod@vangogh
.include <bsd.port.pre.mk>
@@ -105,14 +111,6 @@ RUN_DEPENDS+= gpu-firmware-amd-kmod-aldebaran>0:graphics/gpu-firmware-amd-kmod@a
gpu-firmware-amd-kmod-vegam>0:graphics/gpu-firmware-amd-kmod@vegam \
gpu-firmware-amd-kmod-verde>0:graphics/gpu-firmware-amd-kmod@verde \
gpu-firmware-amd-kmod-yellow-carp>0:graphics/gpu-firmware-amd-kmod@yellow_carp
-.if ${OSVERSION} >= 1301000
-RUN_DEPENDS+= gpu-firmware-amd-kmod-cyan-skillfish2>0:graphics/gpu-firmware-amd-kmod@cyan_skillfish2 \
- gpu-firmware-amd-kmod-dimgrey-cavefish>0:graphics/gpu-firmware-amd-kmod@dimgrey_cavefish \
- gpu-firmware-amd-kmod-green-sardine>0:graphics/gpu-firmware-amd-kmod@green_sardine \
- gpu-firmware-amd-kmod-navy-flounder>0:graphics/gpu-firmware-amd-kmod@navy_flounder \
- gpu-firmware-amd-kmod-sienna-cichlid>0:graphics/gpu-firmware-amd-kmod@sienna_cichlid \
- gpu-firmware-amd-kmod-vangogh>0:graphics/gpu-firmware-amd-kmod@vangogh
-.endif
.endif
.include <bsd.port.post.mk>
diff --git a/graphics/igt-gpu-tools/Makefile b/graphics/igt-gpu-tools/Makefile
index 4e0646fd2753..f517b9cf6ae0 100644
--- a/graphics/igt-gpu-tools/Makefile
+++ b/graphics/igt-gpu-tools/Makefile
@@ -9,8 +9,6 @@ WWW= https://drm.pages.freedesktop.org/igt-gpu-tools/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
-IGNORE_FreeBSD_12= unsupported on FreeBSD versions < 13.1
-
BUILD_DEPENDS= rst2man:textproc/py-docutils@${PY_FLAVOR}
LIB_DEPENDS= libdrm.so:graphics/libdrm \
libdw.so:devel/elfutils \
diff --git a/graphics/krita/files/patch-cmake_modules_xsimd_xsimdMacros.cmake b/graphics/krita/files/patch-cmake_modules_xsimd_xsimdMacros.cmake
deleted file mode 100644
index ffb2e50a039e..000000000000
--- a/graphics/krita/files/patch-cmake_modules_xsimd_xsimdMacros.cmake
+++ /dev/null
@@ -1,15 +0,0 @@
-Avoid detecting binutils, especially for FreeBSD 12.x where the base version
-gets detected and rejected for being too old. This can be safely removed
-after 12.x EOL.
-
---- cmake/modules/xsimd/xsimdMacros.cmake.orig 2023-10-05 08:16:01 UTC
-+++ cmake/modules/xsimd/xsimdMacros.cmake
-@@ -60,7 +60,7 @@ macro(xsimd_check_assembler)
- endmacro()
-
- macro(xsimd_check_assembler)
-- execute_process(COMMAND ${CMAKE_CXX_COMPILER} -print-prog-name=as OUTPUT_VARIABLE _as RESULT_VARIABLE _as_result)
-+ set(_as_result 1)
- mark_as_advanced(_as)
- mark_as_advanced(_as_result)
- if(_as_result) # error code is 0 == OK
diff --git a/graphics/lux/Makefile b/graphics/lux/Makefile
index 550cf2bcf052..739e2acca7e2 100644
--- a/graphics/lux/Makefile
+++ b/graphics/lux/Makefile
@@ -41,7 +41,7 @@ AVX_DESC= support AVX flavor
AVX2_DESC= support AVX2 flavor
AVX512_DESC= support AVX-512F flavor
-SSE2_CXXFLAGS_OFF= ${${OSVERSION}>=1300000:?-march=i686:}
+SSE2_CXXFLAGS_OFF= -march=i686
SSE2_CXXFLAGS= -march=pentium4
SSSE3_CMAKE_BOOL= FLV_SSSE3
SSE42_CMAKE_BOOL= FLV_SSE42
diff --git a/graphics/mozjpeg/Makefile b/graphics/mozjpeg/Makefile
index 14a8411046f1..490376eecc68 100644
--- a/graphics/mozjpeg/Makefile
+++ b/graphics/mozjpeg/Makefile
@@ -10,7 +10,6 @@ WWW= https://github.com/mozilla/mozjpeg
LICENSE= BSD3CLAUSE
BROKEN_mips64= does not configure: error: SIMD support cannot be enabled
-BROKEN_sparc64= does not configure: error: SIMD support cannot be enabled
BUILD_DEPENDS= nasm>=2.10,1:devel/nasm
LIB_DEPENDS= libpng.so:graphics/png
diff --git a/graphics/nvidia-drm-kmod/Makefile b/graphics/nvidia-drm-kmod/Makefile
index cc226f22dbf2..3bc90bf8933e 100644
--- a/graphics/nvidia-drm-kmod/Makefile
+++ b/graphics/nvidia-drm-kmod/Makefile
@@ -8,18 +8,13 @@ WWW= https://github.com/amshafer/nvidia-driver
USES= metaport
+RUN_DEPENDS+= ${KMODDIR}/nvidia-drm.ko:graphics/nvidia-drm-510-kmod
+
.include "${.CURDIR}/../../x11/nvidia-driver/Makefile.version"
.include <bsd.port.pre.mk>
-# Only supported on FreeBSD 13.1+
.if ${OPSYS} != FreeBSD
IGNORE= not supported on anything but FreeBSD (missing linuxkpi functionality)
-.else
-. if ${OSVERSION} >= 1301000
-RUN_DEPENDS+= ${KMODDIR}/nvidia-drm.ko:graphics/nvidia-drm-510-kmod
-. else
-IGNORE= not supported for this FreeBSD version
-. endif
.endif
.include <bsd.port.post.mk>
diff --git a/graphics/ogre3d/Makefile b/graphics/ogre3d/Makefile
index 588c8645aaab..569dbccad1b3 100644
--- a/graphics/ogre3d/Makefile
+++ b/graphics/ogre3d/Makefile
@@ -11,8 +11,6 @@ WWW= https://www.ogre3d.org/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN_FreeBSD_12_powerpc64= fails to build: /usr/local/bin/ld: /usr/lib/crt1.o:(.got+0x60): undefined reference to 'main'
-
LIB_DEPENDS= libzzip.so:devel/zziplib \
libfreetype.so:print/freetype2
@@ -75,7 +73,7 @@ CXXFLAGS+= -DNDEBUG -I${LOCALBASE}/include -I${LOCALBASE}/include/Imath
post-patch:
@${REINPLACE_CMD} -e '\
- s,defined(__x86_64__),& || defined(__sparc64__) || defined(__amd64__),' \
+ s,defined(__x86_64__),& || defined(__amd64__),' \
${WRKSRC}/OgreMain/include/OgrePlatform.h
post-patch-PYTHON-on:
diff --git a/graphics/ogre3d19/Makefile b/graphics/ogre3d19/Makefile
index c1d7b45450b6..c0c6924f47a1 100644
--- a/graphics/ogre3d19/Makefile
+++ b/graphics/ogre3d19/Makefile
@@ -48,7 +48,7 @@ post-patch:
@${REINPLACE_CMD} -e 's|\(OGRE_RW_MUTEX.*\);$$|\1|g' \
${WRKSRC}/OgreMain/include/Threading/OgreThreadDefinesBoost.h
@${REINPLACE_CMD} -e '\
- s,defined(__x86_64__),& || defined(__powerpc__) || defined(__sparc64__) || defined(__amd64__),' \
+ s,defined(__x86_64__),& || defined(__powerpc__) || defined(__amd64__),' \
${WRKSRC}/OgreMain/include/OgrePlatform.h
post-patch-BOOST-off:
diff --git a/graphics/opencollada/Makefile b/graphics/opencollada/Makefile
index ab566e5787a7..a0d1fcdd72c1 100644
--- a/graphics/opencollada/Makefile
+++ b/graphics/opencollada/Makefile
@@ -10,8 +10,6 @@ WWW= http://opencollada.org/
LICENSE= MIT
-BROKEN_sparc64= cannot build: runaway process
-
LIB_DEPENDS= libpcre.so:devel/pcre
USES= cmake compiler:c++11-lib dos2unix iconv localbase gnome pkgconfig
diff --git a/graphics/openshadinglanguage/Makefile b/graphics/openshadinglanguage/Makefile
index 08e3d1e350a7..1a786485a7bb 100644
--- a/graphics/openshadinglanguage/Makefile
+++ b/graphics/openshadinglanguage/Makefile
@@ -15,7 +15,6 @@ WWW= https://github.com/AcademySoftwareFoundation/OpenShadingLanguage
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.md
-BROKEN_FreeBSD_12_powerpc64= fails to compile: llvm_ops.cpp:101:10: fatal error: 'iostream' file not found
BROKEN_riscv64= fails to build: /usr/include/c++/v1/__threading_support:135:3: Unsupported architecture
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \
diff --git a/graphics/pixie/Makefile b/graphics/pixie/Makefile
index d9d860317283..98166c370462 100644
--- a/graphics/pixie/Makefile
+++ b/graphics/pixie/Makefile
@@ -16,7 +16,6 @@ BROKEN_aarch64= fails to compile: ri/atomic.h:149:9: use of undeclared identifi
BROKEN_armv6= fails to compile: ri/atomic.h:149:9: use of undeclared identifier CRenderer
BROKEN_armv7= fails to compile: ri/atomic.h:149:9: use of undeclared identifier CRenderer
BROKEN_riscv64= fails to compile: ri/atomic.h:149:9: use of undeclared identifier CRenderer
-BROKEN_FreeBSD_12_powerpc64= fails to compile on powerpc64 elfv1: ../common/mathSpec.h:548:37: error: 'max' was not declared in this scope
LIB_DEPENDS= libOpenEXR.so:graphics/openexr \
libImath.so:math/Imath \
diff --git a/graphics/qgis-ltr/Makefile b/graphics/qgis-ltr/Makefile
index 6af58a4ba6a4..fc6320afd197 100644
--- a/graphics/qgis-ltr/Makefile
+++ b/graphics/qgis-ltr/Makefile
@@ -157,13 +157,6 @@ SERVER_CMAKE_BOOL= WITH_SERVER WITH_SERVER_PLUGINS WITH_QSPATIALITE
.include <bsd.port.pre.mk>
-# QGIS requires flex >= 2.5.6, see
-# https://github.com/qgis/QGIS/blob/fb0f334b06e0828e5695ffcaa7c7eb82d6516cb0/INSTALL.md
-.if (${OPSYS} == FreeBSD && ${OSVERSION} < 1300501)
-BUILD_DEPENDS+= ${LOCALBASE}/bin/flex:textproc/flex
-CMAKE_ARGS+= -DFLEX_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/flex
-.endif
-
pre-patch:
# Only PostgreSQL Client headers, not Server
@${REINPLACE_CMD} -e 's|set(POSTGRES_INCLUDE_DIR \$${PostgreSQL_INCLUDE_DIRS})|set(POSTGRES_INCLUDE ${LOCALBASE}/include)|g' \
diff --git a/graphics/qgis/Makefile b/graphics/qgis/Makefile
index 4a2ed912ddcb..8628efb03ab4 100644
--- a/graphics/qgis/Makefile
+++ b/graphics/qgis/Makefile
@@ -167,13 +167,6 @@ SERVER_CMAKE_BOOL= WITH_SERVER WITH_SERVER_PLUGINS WITH_QSPATIALITE
.include <bsd.port.pre.mk>
-# QGIS requires flex >= 2.5.6, see
-# https://github.com/qgis/QGIS/blob/fb0f334b06e0828e5695ffcaa7c7eb82d6516cb0/INSTALL.md
-.if (${OPSYS} == FreeBSD && ${OSVERSION} < 1300501)
-BUILD_DEPENDS+= ${LOCALBASE}/bin/flex:textproc/flex
-CMAKE_ARGS+= -DFLEX_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/flex
-.endif
-
pre-patch:
# Only PostgreSQL Client headers, not Server
@${REINPLACE_CMD} -e 's|set(POSTGRES_INCLUDE_DIR \$${PostgreSQL_INCLUDE_DIRS})|set(POSTGRES_INCLUDE ${LOCALBASE}/include)|g' \
diff --git a/graphics/qt5-wayland/files/patch-src_client_qwaylandshmbackingstore.cpp b/graphics/qt5-wayland/files/patch-src_client_qwaylandshmbackingstore.cpp
index 3892dfa36ad4..f68cb6d0bbe1 100644
--- a/graphics/qt5-wayland/files/patch-src_client_qwaylandshmbackingstore.cpp
+++ b/graphics/qt5-wayland/files/patch-src_client_qwaylandshmbackingstore.cpp
@@ -1,10 +1,10 @@
---- src/client/qwaylandshmbackingstore.cpp.orig 2022-12-21 21:06:50 UTC
+--- src/client/qwaylandshmbackingstore.cpp.orig 2023-10-04 20:59:02 UTC
+++ src/client/qwaylandshmbackingstore.cpp
@@ -82,6 +82,8 @@ QWaylandShmBuffer::QWaylandShmBuffer(QWaylandDisplay *
fd = syscall(SYS_memfd_create, "wayland-shm", MFD_CLOEXEC | MFD_ALLOW_SEALING);
if (fd >= 0)
fcntl(fd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_SEAL);
-+#elif defined(__FreeBSD__) && __FreeBSD_version >= 1300048
++#elif defined(__FreeBSD__)
+ fd = memfd_create("wayland-shm", MFD_CLOEXEC);
#endif
diff --git a/graphics/tesseract-data/Makefile b/graphics/tesseract-data/Makefile
index 409044526d2b..d4172f5c68df 100644
--- a/graphics/tesseract-data/Makefile
+++ b/graphics/tesseract-data/Makefile
@@ -18,8 +18,6 @@ NO_ARCH= yes
DATADIR= ${PREFIX}/share/tessdata
PORTDATA= *
-BROKEN_sparc64= Fails to install: runaway process
-
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
.for l in ${PORTDATA}
diff --git a/graphics/vulkan-headers/Makefile b/graphics/vulkan-headers/Makefile
index ff081a713cdb..e88be2dc61cc 100644
--- a/graphics/vulkan-headers/Makefile
+++ b/graphics/vulkan-headers/Makefile
@@ -20,11 +20,4 @@ post-extract:
# genvk.py requires docgenerator.py from Vulkan-Docs, so drop useless shebang
@${FIND} ${WRKSRC}/registry -name \*.py -exec ${REINPLACE_CMD} -i '' '/^#!/d' {} +
-post-patch:
-# XXX Drop after FreeBSD 12.4 EOL around 2023-12-31
- @if [ -L /usr/include/sched.h ]; then \
- ${REINPLACE_CMD} $$'/^namespace/i\\\n#undef major\\\n#undef minor\\\n\\\n' \
- ${WRKSRC}/include/vulkan/vulkan_structs.hpp; \
- fi
-
.include <bsd.port.mk>
diff --git a/japanese/mozc-server/Makefile b/japanese/mozc-server/Makefile
index c21393ada502..9cbc970d873f 100644
--- a/japanese/mozc-server/Makefile
+++ b/japanese/mozc-server/Makefile
@@ -14,10 +14,8 @@ LIB_DEPENDS= libprotobuf.so:devel/protobuf \
libzinnia.so:japanese/zinnia
RUN_DEPENDS= xdg-open:devel/xdg-utils
-BROKEN_FreeBSD_12_powerpc64= fails to install: gyp: Call to 'which clang' returned exit status 1 while in client/client.gyp
BROKEN_FreeBSD_13_powerpc64= fails to build: ERROR: ninja -v -C out_linux/Release mozc_server: Error code 1
BROKEN_powerpc= fails to compile: segfault
-BROKEN_sparc64= fails to compile: segfault
USE_GITHUB= yes
GH_ACCOUNT= hrs-allbsd
diff --git a/java/netty/Makefile b/java/netty/Makefile
index c3a469ef8fdb..af7f1307d785 100644
--- a/java/netty/Makefile
+++ b/java/netty/Makefile
@@ -49,8 +49,6 @@ NETTY_ARCH= x86_32
NETTY_ARCH= ppc_32
.elif ${ARCH:Mpowerpc64*}
NETTY_ARCH= ppc_64
-.elif ${ARCH} == "sparc64"
-NETTY_ARCH= sparc_64
.else
# Default to ${ARCH}
NETTY_ARCH= ${ARCH}
diff --git a/java/openjdk11/Makefile b/java/openjdk11/Makefile
index cfa83cc5b280..0dd0a8fc69e3 100644
--- a/java/openjdk11/Makefile
+++ b/java/openjdk11/Makefile
@@ -172,9 +172,6 @@ CONFIGURE_ARGS+= --disable-precompiled-headers
.if ${ARCH} != amd64
CONFIGURE_ARGS+= --enable-aot=no
.endif
-.if ${ARCH} == powerpc64 && ${OSREL:C/\.[0-9]//} == 12
-EXTRA_PATCHES= ${PATCHDIR}/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp
-.endif
.if empty(ICONV_LIB)
ICONV_CFLAGS= -DLIBICONV_PLUG
diff --git a/java/openjdk11/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp b/java/openjdk11/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp
deleted file mode 100644
index 1722d87b9665..000000000000
--- a/java/openjdk11/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/hotspot/cpu/ppc/vm_version_ppc.hpp.orig 2019-10-16 11:31:09.000000000 -0700
-+++ src/hotspot/cpu/ppc/vm_version_ppc.hpp 2019-10-23 12:54:06.972903000 -0700
-@@ -108,7 +108,7 @@
- static bool has_lqarx() { return (_features & lqarx_m) != 0; }
- static bool has_vcipher() { return (_features & vcipher_m) != 0; }
- static bool has_vpmsumb() { return (_features & vpmsumb_m) != 0; }
-- static bool has_mfdscr() { return (_features & mfdscr_m) != 0; }
-+ static bool has_mfdscr() { return false; }
- static bool has_vsx() { return (_features & vsx_m) != 0; }
- static bool has_ldbrx() { return (_features & ldbrx_m) != 0; }
- static bool has_stdbrx() { return (_features & stdbrx_m) != 0; }
diff --git a/java/openjdk17/Makefile b/java/openjdk17/Makefile
index 61701adf8eda..5f2fc749ac09 100644
--- a/java/openjdk17/Makefile
+++ b/java/openjdk17/Makefile
@@ -158,9 +158,6 @@ CONFIGURE_ARGS+= --disable-warnings-as-errors
.if ${ARCH} == aarch64 || (defined(PPC_ABI) && ${PPC_ABI} == ELFv1)
CONFIGURE_ARGS+= --disable-dtrace
.endif
-.if ${ARCH} == powerpc64 && ${OSREL:C/\.[0-9]//} == 12
-EXTRA_PATCHES= ${PATCHDIR}/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp
-.endif
.if ${ARCH} == aarch64
CONFIGURE_ARGS+= --with-boot-jdk-jvmargs=-XX:-UseCompressedClassPointers
MAKE_ENV+= JAVA_TOOL_OPTIONS="-XX:-UseCompressedClassPointers"
diff --git a/java/openjdk17/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp b/java/openjdk17/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp
deleted file mode 100644
index 1722d87b9665..000000000000
--- a/java/openjdk17/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/hotspot/cpu/ppc/vm_version_ppc.hpp.orig 2019-10-16 11:31:09.000000000 -0700
-+++ src/hotspot/cpu/ppc/vm_version_ppc.hpp 2019-10-23 12:54:06.972903000 -0700
-@@ -108,7 +108,7 @@
- static bool has_lqarx() { return (_features & lqarx_m) != 0; }
- static bool has_vcipher() { return (_features & vcipher_m) != 0; }
- static bool has_vpmsumb() { return (_features & vpmsumb_m) != 0; }
-- static bool has_mfdscr() { return (_features & mfdscr_m) != 0; }
-+ static bool has_mfdscr() { return false; }
- static bool has_vsx() { return (_features & vsx_m) != 0; }
- static bool has_ldbrx() { return (_features & ldbrx_m) != 0; }
- static bool has_stdbrx() { return (_features & stdbrx_m) != 0; }
diff --git a/java/openjdk18/Makefile b/java/openjdk18/Makefile
index 90f5f99f4095..c5fb53256fc3 100644
--- a/java/openjdk18/Makefile
+++ b/java/openjdk18/Makefile
@@ -168,9 +168,6 @@ CONFIGURE_ARGS+= --disable-warnings-as-errors
.if ${ARCH} == aarch64 || (defined(PPC_ABI) && ${PPC_ABI} == ELFv1)
CONFIGURE_ARGS+= --disable-dtrace
.endif
-.if ${ARCH} == powerpc64 && ${OSREL:C/\.[0-9]//} == 12
-EXTRA_PATCHES= ${PATCHDIR}/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp
-.endif
.if ${ARCH} == aarch64
CONFIGURE_ARGS+= --with-boot-jdk-jvmargs=-XX:-UseCompressedClassPointers
MAKE_ENV+= JAVA_TOOL_OPTIONS="-XX:-UseCompressedClassPointers"
diff --git a/java/openjdk18/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp b/java/openjdk18/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp
deleted file mode 100644
index 1722d87b9665..000000000000
--- a/java/openjdk18/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/hotspot/cpu/ppc/vm_version_ppc.hpp.orig 2019-10-16 11:31:09.000000000 -0700
-+++ src/hotspot/cpu/ppc/vm_version_ppc.hpp 2019-10-23 12:54:06.972903000 -0700
-@@ -108,7 +108,7 @@
- static bool has_lqarx() { return (_features & lqarx_m) != 0; }
- static bool has_vcipher() { return (_features & vcipher_m) != 0; }
- static bool has_vpmsumb() { return (_features & vpmsumb_m) != 0; }
-- static bool has_mfdscr() { return (_features & mfdscr_m) != 0; }
-+ static bool has_mfdscr() { return false; }
- static bool has_vsx() { return (_features & vsx_m) != 0; }
- static bool has_ldbrx() { return (_features & ldbrx_m) != 0; }
- static bool has_stdbrx() { return (_features & stdbrx_m) != 0; }
diff --git a/java/openjdk19/Makefile b/java/openjdk19/Makefile
index 71450f026770..ceea755af1c6 100644
--- a/java/openjdk19/Makefile
+++ b/java/openjdk19/Makefile
@@ -158,9 +158,6 @@ CONFIGURE_ARGS+= --disable-warnings-as-errors
.if ${ARCH} == aarch64 || (defined(PPC_ABI) && ${PPC_ABI} == ELFv1)
CONFIGURE_ARGS+= --disable-dtrace
.endif
-.if ${ARCH} == powerpc64 && ${OSREL:C/\.[0-9]//} == 12
-EXTRA_PATCHES= ${PATCHDIR}/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp
-.endif
.if ${ARCH} == aarch64
CONFIGURE_ARGS+= --with-boot-jdk-jvmargs=-XX:-UseCompressedClassPointers
MAKE_ENV+= JAVA_TOOL_OPTIONS="-XX:-UseCompressedClassPointers"
diff --git a/java/openjdk19/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp b/java/openjdk19/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp
deleted file mode 100644
index 1722d87b9665..000000000000
--- a/java/openjdk19/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/hotspot/cpu/ppc/vm_version_ppc.hpp.orig 2019-10-16 11:31:09.000000000 -0700
-+++ src/hotspot/cpu/ppc/vm_version_ppc.hpp 2019-10-23 12:54:06.972903000 -0700
-@@ -108,7 +108,7 @@
- static bool has_lqarx() { return (_features & lqarx_m) != 0; }
- static bool has_vcipher() { return (_features & vcipher_m) != 0; }
- static bool has_vpmsumb() { return (_features & vpmsumb_m) != 0; }
-- static bool has_mfdscr() { return (_features & mfdscr_m) != 0; }
-+ static bool has_mfdscr() { return false; }
- static bool has_vsx() { return (_features & vsx_m) != 0; }
- static bool has_ldbrx() { return (_features & ldbrx_m) != 0; }
- static bool has_stdbrx() { return (_features & stdbrx_m) != 0; }
diff --git a/java/openjdk20/Makefile b/java/openjdk20/Makefile
index 13658bd998e9..7035121d893f 100644
--- a/java/openjdk20/Makefile
+++ b/java/openjdk20/Makefile
@@ -157,9 +157,6 @@ CONFIGURE_ARGS+= --disable-warnings-as-errors
.if ${ARCH} == aarch64 || (defined(PPC_ABI) && ${PPC_ABI} == ELFv1)
CONFIGURE_ARGS+= --disable-dtrace
.endif
-.if ${ARCH} == powerpc64 && ${OSREL:C/\.[0-9]//} == 12
-EXTRA_PATCHES= ${PATCHDIR}/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp
-.endif
.if ${ARCH} == aarch64
CONFIGURE_ARGS+= --with-boot-jdk-jvmargs=-XX:-UseCompressedClassPointers
MAKE_ENV+= JAVA_TOOL_OPTIONS="-XX:-UseCompressedClassPointers"
diff --git a/java/openjdk20/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp b/java/openjdk20/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp
deleted file mode 100644
index 1722d87b9665..000000000000
--- a/java/openjdk20/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/hotspot/cpu/ppc/vm_version_ppc.hpp.orig 2019-10-16 11:31:09.000000000 -0700
-+++ src/hotspot/cpu/ppc/vm_version_ppc.hpp 2019-10-23 12:54:06.972903000 -0700
-@@ -108,7 +108,7 @@
- static bool has_lqarx() { return (_features & lqarx_m) != 0; }
- static bool has_vcipher() { return (_features & vcipher_m) != 0; }
- static bool has_vpmsumb() { return (_features & vpmsumb_m) != 0; }
-- static bool has_mfdscr() { return (_features & mfdscr_m) != 0; }
-+ static bool has_mfdscr() { return false; }
- static bool has_vsx() { return (_features & vsx_m) != 0; }
- static bool has_ldbrx() { return (_features & ldbrx_m) != 0; }
- static bool has_stdbrx() { return (_features & stdbrx_m) != 0; }
diff --git a/java/openjdk21/Makefile b/java/openjdk21/Makefile
index 39d5df96ccd6..6f05797ca0e7 100644
--- a/java/openjdk21/Makefile
+++ b/java/openjdk21/Makefile
@@ -157,9 +157,6 @@ CONFIGURE_ARGS+= --disable-warnings-as-errors
.if ${ARCH} == aarch64 || (defined(PPC_ABI) && ${PPC_ABI} == ELFv1)
CONFIGURE_ARGS+= --disable-dtrace
.endif
-.if ${ARCH} == powerpc64 && ${OSREL:C/\.[0-9]//} == 12
-EXTRA_PATCHES= ${PATCHDIR}/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp
-.endif
.if ${ARCH} == aarch64
CONFIGURE_ARGS+= --with-boot-jdk-jvmargs=-XX:-UseCompressedClassPointers
MAKE_ENV+= JAVA_TOOL_OPTIONS="-XX:-UseCompressedClassPointers"
diff --git a/java/openjdk21/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp b/java/openjdk21/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp
deleted file mode 100644
index 1722d87b9665..000000000000
--- a/java/openjdk21/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/hotspot/cpu/ppc/vm_version_ppc.hpp.orig 2019-10-16 11:31:09.000000000 -0700
-+++ src/hotspot/cpu/ppc/vm_version_ppc.hpp 2019-10-23 12:54:06.972903000 -0700
-@@ -108,7 +108,7 @@
- static bool has_lqarx() { return (_features & lqarx_m) != 0; }
- static bool has_vcipher() { return (_features & vcipher_m) != 0; }
- static bool has_vpmsumb() { return (_features & vpmsumb_m) != 0; }
-- static bool has_mfdscr() { return (_features & mfdscr_m) != 0; }
-+ static bool has_mfdscr() { return false; }
- static bool has_vsx() { return (_features & vsx_m) != 0; }
- static bool has_ldbrx() { return (_features & ldbrx_m) != 0; }
- static bool has_stdbrx() { return (_features & stdbrx_m) != 0; }
diff --git a/lang/angelscript/Makefile b/lang/angelscript/Makefile
index 7c2cd14d2d03..cb0d0144cc5a 100644
--- a/lang/angelscript/Makefile
+++ b/lang/angelscript/Makefile
@@ -10,8 +10,6 @@ WWW= https://www.angelcode.com/angelscript/
LICENSE= ZLIB
-BROKEN_sparc64= Does not build: invokes x86 asm
-
USES= alias compiler:c11 dos2unix gmake zip
USE_LDCONFIG= yes
diff --git a/lang/cling/Makefile b/lang/cling/Makefile
index 8d827ec560ee..ea826e28404e 100644
--- a/lang/cling/Makefile
+++ b/lang/cling/Makefile
@@ -19,7 +19,6 @@ LICENSE_PERMS_LLVM= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
BROKEN_armv6= fails to compile: AArch64TargetMachine.cpp: relocation truncated to fit: R_ARM_CALL against symbol '__aeabi_uldivmod'
BROKEN_armv7= fails to compile: AArch64TargetMachine.cpp: relocation truncated to fit: R_ARM_CALL against symbol '__aeabi_uldivmod'
BROKEN_riscv64= fails to build: CMake Error at cmake/config-ix.cmake:407: Unknown architecture riscv64
-BROKEN_FreeBSD_12_powerpc64= fails to build: src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:722:26: could not convert '((llvm::orc::remote::OrcRemoteTargetClient<ChannelT>*)this)->callB<llvm::orc::remote::OrcRemoteTargetRPCAPI::ReadMem>(Src, Size)'
LIB_DEPENDS= libgtest.so:devel/googletest \
libz3.so:math/z3
diff --git a/lang/clisp/Makefile b/lang/clisp/Makefile
index 515fe08310a6..17029347b120 100644
--- a/lang/clisp/Makefile
+++ b/lang/clisp/Makefile
@@ -10,8 +10,6 @@ WWW= https://www.gnu.org/software/clisp/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/GNU-GPL
-BROKEN_sparc64= Does not compile
-
LIB_DEPENDS= libffcall.so:devel/libffcall \
libreadline.so:devel/readline \
libsigsegv.so:devel/libsigsegv
diff --git a/lang/emilua/Makefile b/lang/emilua/Makefile
index 0344714d384d..7c767bb881ce 100644
--- a/lang/emilua/Makefile
+++ b/lang/emilua/Makefile
@@ -10,7 +10,6 @@ WWW= https://emilua.org/
LICENSE= BSL
LICENSE_FILE= ${WRKSRC}/LICENSE_1_0.txt
-IGNORE_FreeBSD_12= not supported by Emilua ('memfd_create' was not declared in this scope)
IGNORE_FreeBSD_13= not supported by Emilua ('clearenv' was not declared in this scope)
BUILD_DEPENDS= asciidoctor:textproc/rubygem-asciidoctor \
diff --git a/lang/erlang-runtime21/Makefile b/lang/erlang-runtime21/Makefile
index 63ed8a5f7441..a466b48bf01e 100644
--- a/lang/erlang-runtime21/Makefile
+++ b/lang/erlang-runtime21/Makefile
@@ -12,8 +12,6 @@ WWW= https://www.erlang.org/
LICENSE= APACHE20
-BROKEN_sparc64= Fails to build: error: fp_except undeclared
-
USES= autoreconf:build,2.69 compiler cpe gmake ncurses perl5
USE_GITHUB= nodefault
GH_ACCOUNT= erlang:otp,corba
diff --git a/lang/erlang-runtime22/Makefile b/lang/erlang-runtime22/Makefile
index a91303ef2277..033fa0096afb 100644
--- a/lang/erlang-runtime22/Makefile
+++ b/lang/erlang-runtime22/Makefile
@@ -13,8 +13,6 @@ WWW= https://www.erlang.org/
LICENSE= APACHE20
-BROKEN_sparc64= Fails to build: error: fp_except undeclared
-
USES= autoreconf:build compiler cpe gmake ncurses perl5
USE_GITHUB= nodefault
GH_ACCOUNT= erlang:otp,corba
diff --git a/lang/erlang-runtime23/Makefile b/lang/erlang-runtime23/Makefile
index 2786a7c27aea..3600b3b302fe 100644
--- a/lang/erlang-runtime23/Makefile
+++ b/lang/erlang-runtime23/Makefile
@@ -12,8 +12,6 @@ WWW= https://www.erlang.org/
LICENSE= APACHE20
-BROKEN_sparc64= Fails to build: error: fp_except undeclared
-
USES= autoreconf:build compiler cpe gmake ncurses perl5
USE_GITHUB= nodefault
GH_ACCOUNT= erlang:otp,corba
diff --git a/lang/erlang-runtime24/Makefile b/lang/erlang-runtime24/Makefile
index 35800c68c10f..538a626ebeb5 100644
--- a/lang/erlang-runtime24/Makefile
+++ b/lang/erlang-runtime24/Makefile
@@ -12,8 +12,6 @@ WWW= https://www.erlang.org/
LICENSE= APACHE20
-BROKEN_sparc64= Fails to build: error: fp_except undeclared
-
USES= compiler cpe gmake ncurses perl5
CPE_VENDOR= erlang
CPE_PRODUCT= erlang/otp
diff --git a/lang/erlang-runtime25/Makefile b/lang/erlang-runtime25/Makefile
index 571da1a76af5..55802b021b5b 100644
--- a/lang/erlang-runtime25/Makefile
+++ b/lang/erlang-runtime25/Makefile
@@ -12,8 +12,6 @@ WWW= https://www.erlang.org/
LICENSE= APACHE20
-BROKEN_sparc64= Fails to build: error: fp_except undeclared
-
USES= compiler cpe gmake ncurses perl5
CPE_VENDOR= erlang
CPE_PRODUCT= erlang/otp
diff --git a/lang/erlang-runtime26/Makefile b/lang/erlang-runtime26/Makefile
index 41744283a1a1..0612350932cb 100644
--- a/lang/erlang-runtime26/Makefile
+++ b/lang/erlang-runtime26/Makefile
@@ -11,8 +11,6 @@ WWW= https://www.erlang.org/
LICENSE= APACHE20
-BROKEN_sparc64= Fails to build: error: fp_except undeclared
-
USES= compiler cpe gmake ncurses perl5
CPE_VENDOR= erlang
CPE_PRODUCT= erlang/otp
diff --git a/lang/erlang/Makefile b/lang/erlang/Makefile
index 6cb01e88fdf1..84d5d25fbc70 100644
--- a/lang/erlang/Makefile
+++ b/lang/erlang/Makefile
@@ -12,8 +12,6 @@ WWW= https://www.erlang.org/
LICENSE= APACHE20
-BROKEN_sparc64= Fails to build: error: fp_except undeclared
-
USES= compiler cpe gmake ncurses perl5
CPE_VENDOR= erlang
CPE_PRODUCT= erlang/otp
diff --git a/lang/gauche/Makefile b/lang/gauche/Makefile
index c74ebfed6a83..16e0d0480219 100644
--- a/lang/gauche/Makefile
+++ b/lang/gauche/Makefile
@@ -72,9 +72,6 @@ CONFIGURE_ARGS+= --with-tls=none
.endif
post-patch:
-# required for sparc64, no-op elsewhere
- @${REINPLACE_CMD} -e \
- '/^VPATH = /s,$$,/src,' ${WRKSRC}/gc/Makefile.in
# unbreak "make test" by using the same workaround as for OSX (darwin),
# apparently because we both use clang (XXX: what about gcc?)
@${REINPLACE_CMD} -e \
diff --git a/lang/gcc10/Makefile b/lang/gcc10/Makefile
index 4a5362a2cab5..5f8c60fe5672 100644
--- a/lang/gcc10/Makefile
+++ b/lang/gcc10/Makefile
@@ -11,7 +11,7 @@ WWW= https://gcc.gnu.org
LICENSE= GPLv3 GPLv3RLE
LICENSE_COMB= multi
-ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpc64le
+ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le
LIB_DEPENDS= libgmp.so:math/gmp \
libmpfr.so:math/mpfr \
diff --git a/lang/gcc11-devel/Makefile b/lang/gcc11-devel/Makefile
index daa99f31a1f0..bba5a2802852 100644
--- a/lang/gcc11-devel/Makefile
+++ b/lang/gcc11-devel/Makefile
@@ -12,7 +12,7 @@ WWW= https://gcc.gnu.org
LICENSE= GPLv3 GPLv3RLE
LICENSE_COMB= multi
-ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpc64le
+ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le
LIB_DEPENDS= libgmp.so:math/gmp \
libmpfr.so:math/mpfr \
diff --git a/lang/gcc11/Makefile b/lang/gcc11/Makefile
index 10750e5ee577..f64478223d27 100644
--- a/lang/gcc11/Makefile
+++ b/lang/gcc11/Makefile
@@ -11,7 +11,7 @@ WWW= https://gcc.gnu.org
LICENSE= GPLv3 GPLv3RLE
LICENSE_COMB= multi
-ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpc64le
+ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le
LIB_DEPENDS= libgmp.so:math/gmp \
libmpfr.so:math/mpfr \
diff --git a/lang/gcc12-devel/Makefile b/lang/gcc12-devel/Makefile
index 6bd4b843b7b8..def4bf2d2c2a 100644
--- a/lang/gcc12-devel/Makefile
+++ b/lang/gcc12-devel/Makefile
@@ -13,7 +13,7 @@ WWW= https://gcc.gnu.org
LICENSE= GPLv3 GPLv3RLE
LICENSE_COMB= multi
-ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpc64le
+ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le
LIB_DEPENDS= libgmp.so:math/gmp \
libmpfr.so:math/mpfr \
diff --git a/lang/gcc12/Makefile b/lang/gcc12/Makefile
index b0fb1c05b78a..54f8ce6eba02 100644
--- a/lang/gcc12/Makefile
+++ b/lang/gcc12/Makefile
@@ -12,7 +12,7 @@ WWW= https://gcc.gnu.org
LICENSE= GPLv3 GPLv3RLE
LICENSE_COMB= multi
-ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpc64le
+ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le
LIB_DEPENDS= libgmp.so:math/gmp \
libmpfr.so:math/mpfr \
diff --git a/lang/gcc13-devel/Makefile b/lang/gcc13-devel/Makefile
index 4264d558ac54..2e1fd6aa340b 100644
--- a/lang/gcc13-devel/Makefile
+++ b/lang/gcc13-devel/Makefile
@@ -13,7 +13,7 @@ WWW= https://gcc.gnu.org
LICENSE= GPLv3 GPLv3RLE
LICENSE_COMB= multi
-ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpc64le
+ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le
LIB_DEPENDS= libgmp.so:math/gmp \
libmpfr.so:math/mpfr \
diff --git a/lang/gcc13/Makefile b/lang/gcc13/Makefile
index 19f73a5a0396..4053c2c40fcb 100644
--- a/lang/gcc13/Makefile
+++ b/lang/gcc13/Makefile
@@ -12,7 +12,7 @@ WWW= https://gcc.gnu.org
LICENSE= GPLv3 GPLv3RLE
LICENSE_COMB= multi
-ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpc64le
+ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le
LIB_DEPENDS= libgmp.so:math/gmp \
libmpfr.so:math/mpfr \
diff --git a/lang/gcc14-devel/Makefile b/lang/gcc14-devel/Makefile
index f9f3d0d6af8d..128bb5465910 100644
--- a/lang/gcc14-devel/Makefile
+++ b/lang/gcc14-devel/Makefile
@@ -12,7 +12,7 @@ WWW= https://gcc.gnu.org
LICENSE= GPLv3 GPLv3RLE
LICENSE_COMB= multi
-ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpc64le
+ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le
LIB_DEPENDS= libgmp.so:math/gmp \
libmpfr.so:math/mpfr \
diff --git a/lang/gcc9/Makefile b/lang/gcc9/Makefile
index 206a6d8743c5..759b6e192af9 100644
--- a/lang/gcc9/Makefile
+++ b/lang/gcc9/Makefile
@@ -15,7 +15,7 @@ LICENSE_COMB= multi
DEPRECATED= Unsupported by upstream. Use GCC 10 or newer instead.
EXPIRATION_DATE=2024-06-30
-ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpc64le sparc64
+ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le
LIB_DEPENDS= libgmp.so:math/gmp \
libmpfr.so:math/mpfr \
diff --git a/lang/gforth/Makefile b/lang/gforth/Makefile
index 35ebbd3de250..118d64bfc218 100644
--- a/lang/gforth/Makefile
+++ b/lang/gforth/Makefile
@@ -47,7 +47,7 @@ WORDSIZE=32
WORDSIZE=64
.endif
-.if ${ARCH} == powerpc || ${ARCH} == powerpc64 || ${ARCH} == sparc64
+.if ${ARCH} == powerpc || ${ARCH} == powerpc64
BYTEORDER=b
.else
BYTEORDER=l
diff --git a/lang/ghc/Makefile b/lang/ghc/Makefile
index 6940b2ca7a6e..b42642546e15 100644
--- a/lang/ghc/Makefile
+++ b/lang/ghc/Makefile
@@ -167,7 +167,7 @@ PLIST= ${.CURDIR}/../ghc92/pkg-plist
.endif
# This version of ncurses is needed by bootstrap compiler
-.if ${OSVERSION} > 1300078 && empty(PORT_OPTIONS:MBOOT)
+.if empty(PORT_OPTIONS:MBOOT)
BUILD_DEPENDS+= ${LOCALBASE}/lib/compat/libncursesw.so.8:misc/compat12x
.endif
diff --git a/lang/gnustep-base/Makefile b/lang/gnustep-base/Makefile
index bf4291d1fec5..f2af7921d30f 100644
--- a/lang/gnustep-base/Makefile
+++ b/lang/gnustep-base/Makefile
@@ -14,8 +14,6 @@ WWW= http://www.gnustep.org/
LICENSE= GPLv3 LGPL3
LICENSE_COMB= multi
-BROKEN_FreeBSD_12_powerpc64= fails to link: ld.lld: error: /usr/src/lib/csu/common/crtend.c:55: relocation R_PPC64_ADDR16_DS out of range: -32776 is not in [-32768, 32767]
-
LIB_DEPENDS= libffi.so:devel/libffi \
libcurl.so:ftp/curl \
libgcrypt.so:security/libgcrypt \
@@ -59,10 +57,6 @@ GNUTLS_CONFIGURE_OFF= --disable-tls
.include <bsd.port.options.mk>
-.if ${OPSYS}_${OSREL:R} == FreeBSD_12
-LIB_DEPENDS+= libunwind.so:devel/libunwind
-.endif
-
.if ${PORT_OPTIONS:MAVAHI}
LIB_DEPENDS+= libavahi-client.so:net/avahi-app
CONFIGURE_ARGS+= --with-zeroconf-api=avahi
diff --git a/lang/go-devel/Makefile b/lang/go-devel/Makefile
index b73206323861..3d8664feae90 100644
--- a/lang/go-devel/Makefile
+++ b/lang/go-devel/Makefile
@@ -77,10 +77,6 @@ GOARM_armv7= 7
.include <bsd.port.pre.mk>
-.if ${ARCH} == riscv64 && ${OSREL:R} < 13
-IGNORE= go/riscv64 requires FreeBSD 13 or later
-.endif
-
post-extract:
@[ -z "${GH_TAGNAME}" ] || \
${ECHO_CMD} "devel ${DISTVERSION}-${GH_TAGNAME} ${OPSYS:tl}/${GOARCH_${ARCH}}" > ${WRKSRC}/VERSION
diff --git a/lang/lfortran/Makefile b/lang/lfortran/Makefile
index 3f05a151cf65..e14e9cfbc1d7 100644
--- a/lang/lfortran/Makefile
+++ b/lang/lfortran/Makefile
@@ -32,9 +32,6 @@ CMAKE_ON= LFORTRAN_BUILD_ALL WITH_DWARFDUMP WITH_FMT WITH_JSON \
WITH_LINKH WITH_LLVM WITH_STACKTRACE WITH_UNWIND
USE_LDCONFIG= yes
-CXXFLAGS+= ${CXXFLAGS_${OPSYS}_${OSREL:R}}
-CXXFLAGS_FreeBSD_12= -D_GNU_SOURCE
-
LLVM_VERSION= 15 # 16 is supported too
OPTIONS_DEFINE= EXAMPLES # NB
diff --git a/lang/libobjc2/Makefile b/lang/libobjc2/Makefile
index 089701d58881..9b96bd35ad43 100644
--- a/lang/libobjc2/Makefile
+++ b/lang/libobjc2/Makefile
@@ -9,8 +9,6 @@ COMMENT= Replacement Objective-C runtime supporting modern Objective-C features
LICENSE= MIT
-BROKEN_sparc64= Does not compile on sparc64: Cannot configure clang properly
-
USES= cmake compiler objc:compiler
USE_GITHUB= yes
diff --git a/lang/mecrisp-stellaris/Makefile b/lang/mecrisp-stellaris/Makefile
index 96c359c073a1..e6cf0d375673 100644
--- a/lang/mecrisp-stellaris/Makefile
+++ b/lang/mecrisp-stellaris/Makefile
@@ -14,7 +14,6 @@ LICENSE_FILE= ${WRKSRC}/COPYING
IGNORE_aarch64= fails to build with qemu-user-static: \
qemu-aarch64-static cannot execute armv7 binaries
.endif
-IGNORE_FreeBSD_12_aarch64= OS too old to run armv7 binaries on arm64, upgrade to FreeBSD 13
ONLY_FOR_ARCHS= aarch64 armv6 armv7
ONLY_FOR_ARCHS_REASON= written in ARM assembly
diff --git a/lang/mlton/Makefile b/lang/mlton/Makefile
index 748bcfcd811d..b7fda2682d78 100644
--- a/lang/mlton/Makefile
+++ b/lang/mlton/Makefile
@@ -8,9 +8,7 @@ PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES+= https://github.com/beyert/mlton-freebsd_bootstrap/raw/c7371c1/:bootstrap
DISTFILES+= ${BOOTNAME}.i386-${OPSYS:tl}-13.txz:bootstrap \
- ${BOOTNAME}.amd64-${OPSYS:tl}-13.txz:bootstrap \
- ${BOOTNAME}.i386-${OPSYS:tl}-12.txz:bootstrap \
- ${BOOTNAME}.amd64-${OPSYS:tl}-12.txz:bootstrap
+ ${BOOTNAME}.amd64-${OPSYS:tl}-13.txz:bootstrap
MAINTAINER= beyert@cs.ucr.edu
COMMENT= Optimizing Standard ML compiler
@@ -33,7 +31,7 @@ USES= compiler:c11 gmake
BOOTNAME= ${BOOTNAMEPREFIX}${PORTNAME}${BOOTNAMESUFFIX}-${BOOTVERSIONPREFIX}${BOOTVERSION}${BOOTVERSIONSUFFIX}
BOOTVERSIONSUFFIX=
BOOTVERSION= ${PORTVERSION}
-BOOTOSMAJ= ${OSREL:R}
+BOOTOSMAJ= 13
OPTIONS_DEFINE= DOCS EXAMPLES
OPTIONS_DEFAULT= MLTON NATIVE
@@ -89,10 +87,6 @@ SMLNJ_VARS= BOOT_DIST= \
BOOT_WRKSRC= ${WRKSRC}/build
BOOT_WRKTMP= ${WRKDIR}/mlton-bootstrap
-.if ${PORT_OPTIONS:MNATIVE} && ${OSREL:R} >= 13
-BOOTOSMAJ= 13
-.endif
-
BOOT_DIST_NEW= ${PKGNAME}${DISTVERSIONSUFFIX}.${ARCH}-${OPSYS:tl}-${OSREL:R}-${HOST}${BOOT_SUFX}
USE_GITHUB= yes
@@ -103,7 +97,7 @@ GH_TAGNAME= b2fca3d
BOOT_CMD= --xz
BOOT_SUFX= .txz
-RAM_SLOP_32= $$(${SYSCTL} "hw.physmem" | ${AWK} '{ values = values" "$$2 } END { print values; }' | ${AWK} '{ "freebsd-version -r" | getline ver; split(ver, xs, "\."); kernelOSMAJ = xs[1]; osj = ${BOOTOSMAJ}; physmem = $$1 / 1024 / 1024 / 1024; os = kernelOSMAJ; maxphysmem = physmem; if (physmem > 3.2) { maxphysmem = 3.2; }; ospcent = 0.70; if (osj < 13 && os != osj) { ospcent = 0.65; } else if (os >= 13) { if (physmem < 3.1) { ospcent = 0.83; } else { ospcent = 0.80; } }; targetmem = maxphysmem * ospcent; targetpcent = targetmem / physmem; print int((targetpcent + 0.005) * 100) / 100; }')
+RAM_SLOP_32= $$(${SYSCTL} "hw.physmem" | ${AWK} '{ values = values" "$$2 } END { print values; }' | ${AWK} '{ physmem = $$1 / 1024 / 1024 / 1024; maxphysmem = physmem; if (physmem > 3.2) { maxphysmem = 3.2; }; ospcent = 0.70; if (physmem < 3.1) { ospcent = 0.83; } else { ospcent = 0.80; }; targetmem = maxphysmem * ospcent; targetpcent = targetmem / physmem; print int((targetpcent + 0.005) * 100) / 100; }')
post-extract:
@${MKDIR} ${BOOT_WRKSRC}
diff --git a/lang/mlton/distinfo b/lang/mlton/distinfo
index 0332b07e115c..e0bb25ca4c85 100644
--- a/lang/mlton/distinfo
+++ b/lang/mlton/distinfo
@@ -3,9 +3,5 @@ SHA256 (mlton-20210816.i386-freebsd-13.txz) = 4faa271b60a82793b7911d8e9863d9831d
SIZE (mlton-20210816.i386-freebsd-13.txz) = 4417216
SHA256 (mlton-20210816.amd64-freebsd-13.txz) = 767ed2fe0e204cd59f9065c9ff96c885d50321f2004cff0a94e84db3e664dc8a
SIZE (mlton-20210816.amd64-freebsd-13.txz) = 5530224
-SHA256 (mlton-20210816.i386-freebsd-12.txz) = a6d173463c36b2c79ba48c9d94c7857e842ca2c423a952623b7a251390f1d103
-SIZE (mlton-20210816.i386-freebsd-12.txz) = 4582828
-SHA256 (mlton-20210816.amd64-freebsd-12.txz) = d289134bd1371d0c4f090b2945a2fa87052d5e298b9612420dbbb6335440a763
-SIZE (mlton-20210816.amd64-freebsd-12.txz) = 5517216
SHA256 (MLton-mlton-20210816-b2fca3d_GH0.tar.gz) = 9809f100308c3330803d3d52052ecdc00774b74869f57ec20880c46ba796ea6d
SIZE (MLton-mlton-20210816-b2fca3d_GH0.tar.gz) = 14307327
diff --git a/lang/mono6.8/Makefile b/lang/mono6.8/Makefile
index 59bd251c8a67..243767da6dc1 100644
--- a/lang/mono6.8/Makefile
+++ b/lang/mono6.8/Makefile
@@ -13,7 +13,7 @@ WWW= https://www.mono-project.com/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-NOT_FOR_ARCHS= riscv64 riscv64sf sparc64
+NOT_FOR_ARCHS= riscv64 riscv64sf
BUILD_DEPENDS= p5-XML-Parser>=0:textproc/p5-XML-Parser \
bash:shells/bash \
diff --git a/lang/newlisp/Makefile b/lang/newlisp/Makefile
index 496615040afc..acc046b06fa1 100644
--- a/lang/newlisp/Makefile
+++ b/lang/newlisp/Makefile
@@ -40,7 +40,7 @@ GSL_DESC= GSL (GNU Scientific Library)
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-.if ${ARCH} == "amd64" || ${ARCH} == "sparc64"
+.if ${ARCH} == "amd64"
CFLAGS+= -DNEWLISP64
.endif
diff --git a/lang/nim/Makefile b/lang/nim/Makefile
index afe95292a9bb..bf2ca8375e75 100644
--- a/lang/nim/Makefile
+++ b/lang/nim/Makefile
@@ -10,8 +10,6 @@ WWW= https://nim-lang.org/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/copying.txt
-BROKEN_sparc64= fails to build: build.sh: clang: not found
-
LIB_DEPENDS= libpcre.so:devel/pcre
TEST_DEPENDS= node18>=0:www/node
diff --git a/lang/ocaml/Makefile b/lang/ocaml/Makefile
index d63fb1677eea..699a1e55e47f 100644
--- a/lang/ocaml/Makefile
+++ b/lang/ocaml/Makefile
@@ -20,7 +20,6 @@ LICENSE_FILE_QPL10= ${WRKSRC}/LICENSE
LICENSE_PERMS_QPL10= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
BROKEN_riscv64= fails to build: hasgot.c:3:12: use of undeclared identifier 'secure_getenv'
-BROKEN_sparc64= No rule to make target 'none.o', needed by 'libasmrun.a'
BROKEN_mips64= No ASM support
BROKEN_mips= No ASM support
diff --git a/lang/opencoarrays/Makefile b/lang/opencoarrays/Makefile
index 337f08ad152b..4a479a9c9010 100644
--- a/lang/opencoarrays/Makefile
+++ b/lang/opencoarrays/Makefile
@@ -11,8 +11,6 @@ LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_aarch64= lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug #255890
-BROKEN_FreeBSD_12_powerpc= lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug #255890
-BROKEN_FreeBSD_12_powerpc64= lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug #255890
BUILD_DEPENDS= bash:shells/bash
RUN_DEPENDS= bash:shells/bash
diff --git a/lang/perl5-devel/Makefile b/lang/perl5-devel/Makefile
index cf8cbc3a64c5..db2250c489c9 100644
--- a/lang/perl5-devel/Makefile
+++ b/lang/perl5-devel/Makefile
@@ -157,9 +157,9 @@ OPTIONS_DEFAULT= DTRACE MULTIPLICITY PERL_64BITINT THREADS
.if !exists(/usr/sbin/dtrace)
OPTIONS_EXCLUDE= DTRACE
.endif
-.for a in aarch64 arm armv6 armv7 \
+.for a in aarch64 armv6 armv7 \
mips mips64 mips64el mips64elhf mips64hf mipsel mipselhf mipshf mipsn32 \
- riscv64 riscv64sf sparc64
+ riscv64 riscv64sf
OPTIONS_EXCLUDE_${a}= DTRACE
.endfor
OPTIONS_SUB= yes
diff --git a/lang/perl5.34/Makefile b/lang/perl5.34/Makefile
index a3d19f54eed2..37912d7311e8 100644
--- a/lang/perl5.34/Makefile
+++ b/lang/perl5.34/Makefile
@@ -134,9 +134,9 @@ OPTIONS_DEFAULT= DTRACE MULTIPLICITY PERL_64BITINT THREADS
.if !exists(/usr/sbin/dtrace)
OPTIONS_EXCLUDE= DTRACE
.endif
-.for a in aarch64 arm armv6 armv7 \
+.for a in aarch64 armv6 armv7 \
mips mips64 mips64el mips64elhf mips64hf mipsel mipselhf mipshf mipsn32 \
- riscv64 riscv64sf sparc64
+ riscv64 riscv64sf
OPTIONS_EXCLUDE_${a}= DTRACE
.endfor
OPTIONS_SUB= yes
diff --git a/lang/perl5.36/Makefile b/lang/perl5.36/Makefile
index de5dde40423c..f50c6f6428ae 100644
--- a/lang/perl5.36/Makefile
+++ b/lang/perl5.36/Makefile
@@ -134,9 +134,9 @@ OPTIONS_DEFAULT= DTRACE MULTIPLICITY PERL_64BITINT THREADS
.if !exists(/usr/sbin/dtrace)
OPTIONS_EXCLUDE= DTRACE
.endif
-.for a in aarch64 arm armv6 armv7 \
+.for a in aarch64 armv6 armv7 \
mips mips64 mips64el mips64elhf mips64hf mipsel mipselhf mipshf mipsn32 \
- riscv64 riscv64sf sparc64
+ riscv64 riscv64sf
OPTIONS_EXCLUDE_${a}= DTRACE
.endfor
OPTIONS_SUB= yes
diff --git a/lang/perl5.38/Makefile b/lang/perl5.38/Makefile
index ab015278207e..7e5e36474954 100644
--- a/lang/perl5.38/Makefile
+++ b/lang/perl5.38/Makefile
@@ -133,9 +133,9 @@ OPTIONS_DEFAULT= DTRACE MULTIPLICITY PERL_64BITINT THREADS
.if !exists(/usr/sbin/dtrace)
OPTIONS_EXCLUDE= DTRACE
.endif
-.for a in aarch64 arm armv6 armv7 \
+.for a in aarch64 armv6 armv7 \
mips mips64 mips64el mips64elhf mips64hf mipsel mipselhf mipshf mipsn32 \
- riscv64 riscv64sf sparc64
+ riscv64 riscv64sf
OPTIONS_EXCLUDE_${a}= DTRACE
.endfor
OPTIONS_SUB= yes
diff --git a/lang/php81/Makefile b/lang/php81/Makefile
index 547bcef45d4d..7d0ca5ef5146 100644
--- a/lang/php81/Makefile
+++ b/lang/php81/Makefile
@@ -49,10 +49,7 @@ OPTIONS_EXCLUDE_armv7= DTRACE
# Bug 197128: No ASM code for MIPS/MIPS64, disable FPM
OPTIONS_EXCLUDE_mips= DTRACE FPM
OPTIONS_EXCLUDE_mips64= DTRACE FPM
-OPTIONS_EXCLUDE_powerpc64= ${OPTIONS_EXCLUDE_${ARCH}_${OSREL:R}}
-OPTIONS_EXCLUDE_powerpc64_12= DTRACE
OPTIONS_EXCLUDE_riscv64= DTRACE
-OPTIONS_EXCLUDE_sparc64= DTRACE
NO_OPTIONS_SORT= yes
OPTIONS_SUB= yes
diff --git a/lang/php82/Makefile b/lang/php82/Makefile
index fd909b357e92..82634154a4ac 100644
--- a/lang/php82/Makefile
+++ b/lang/php82/Makefile
@@ -49,10 +49,7 @@ OPTIONS_EXCLUDE_armv7= DTRACE
# Bug 197128: No ASM code for MIPS/MIPS64, disable FPM
OPTIONS_EXCLUDE_mips= DTRACE FPM
OPTIONS_EXCLUDE_mips64= DTRACE FPM
-OPTIONS_EXCLUDE_powerpc64= ${OPTIONS_EXCLUDE_${ARCH}_${OSREL:R}}
-OPTIONS_EXCLUDE_powerpc64_12= DTRACE
OPTIONS_EXCLUDE_riscv64= DTRACE
-OPTIONS_EXCLUDE_sparc64= DTRACE
NO_OPTIONS_SORT= yes
OPTIONS_SUB= yes
diff --git a/lang/php83/Makefile b/lang/php83/Makefile
index 312e967a32cc..8948d1e444b2 100644
--- a/lang/php83/Makefile
+++ b/lang/php83/Makefile
@@ -50,10 +50,7 @@ OPTIONS_EXCLUDE_armv7= DTRACE
# Bug 197128: No ASM code for MIPS/MIPS64, disable FPM
OPTIONS_EXCLUDE_mips= DTRACE FPM
OPTIONS_EXCLUDE_mips64= DTRACE FPM
-OPTIONS_EXCLUDE_powerpc64= ${OPTIONS_EXCLUDE_${ARCH}_${OSREL:R}}
-OPTIONS_EXCLUDE_powerpc64_12= DTRACE
OPTIONS_EXCLUDE_riscv64= DTRACE
-OPTIONS_EXCLUDE_sparc64= DTRACE
NO_OPTIONS_SORT= yes
OPTIONS_SUB= yes
diff --git a/lang/python27/Makefile b/lang/python27/Makefile
index b5ca6db9ebd0..48b32c416cef 100644
--- a/lang/python27/Makefile
+++ b/lang/python27/Makefile
@@ -96,10 +96,6 @@ PLIST_SUB+= 32BIT_ONLY="@comment "
PLIST_SUB+= 32BIT_ONLY=""
.endif
-.if ${ARCH} == sparc64
-CFLAGS+= -DPYTHON_DEFAULT_RECURSION_LIMIT=900
-.endif
-
# See https://bugs.freebsd.org/115940 and https://bugs.freebsd.org/193650
.if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS)
PLIST_SUB+= NO_NIS="@comment "
diff --git a/lang/python310/Makefile b/lang/python310/Makefile
index ca1b0a04da3a..b352e8a2f9d7 100644
--- a/lang/python310/Makefile
+++ b/lang/python310/Makefile
@@ -94,10 +94,6 @@ PLIST_FILES+= bin/python${PYTHON_VER}${ABIFLAGS} \
libdata/pkgconfig/python-${PYTHON_VER}${ABIFLAGS}-embed.pc
.endif
-.if ${ARCH} == sparc64
-CFLAGS+= -DPYTHON_DEFAULT_RECURSION_LIMIT=900
-.endif
-
# See https://bugs.freebsd.org/115940 and https://bugs.freebsd.org/193650
.if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS)
PLIST_SUB+= NO_NIS="@comment "
diff --git a/lang/python311/Makefile b/lang/python311/Makefile
index e7deddcbf3e3..7a79bb544cce 100644
--- a/lang/python311/Makefile
+++ b/lang/python311/Makefile
@@ -94,10 +94,6 @@ PLIST_FILES+= bin/python${PYTHON_VER}${ABIFLAGS} \
libdata/pkgconfig/python-${PYTHON_VER}${ABIFLAGS}-embed.pc
.endif
-.if ${ARCH} == sparc64
-CFLAGS+= -DPYTHON_DEFAULT_RECURSION_LIMIT=900
-.endif
-
# See https://bugs.freebsd.org/115940 and https://bugs.freebsd.org/193650
.if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS)
PLIST_SUB+= NO_NIS="@comment "
diff --git a/lang/python38/Makefile b/lang/python38/Makefile
index 010aa6f5ed59..f35eaee54a2b 100644
--- a/lang/python38/Makefile
+++ b/lang/python38/Makefile
@@ -94,10 +94,6 @@ PLIST_FILES+= bin/python${PYTHON_VER}${ABIFLAGS} \
libdata/pkgconfig/python-${PYTHON_VER}${ABIFLAGS}-embed.pc
.endif
-.if ${ARCH} == sparc64
-CFLAGS+= -DPYTHON_DEFAULT_RECURSION_LIMIT=900
-.endif
-
# See https://bugs.freebsd.org/115940 and https://bugs.freebsd.org/193650
.if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS)
PLIST_SUB+= NO_NIS="@comment "
diff --git a/lang/python39/Makefile b/lang/python39/Makefile
index b0503104381d..2d9187599d7f 100644
--- a/lang/python39/Makefile
+++ b/lang/python39/Makefile
@@ -94,10 +94,6 @@ PLIST_FILES+= bin/python${PYTHON_VER}${ABIFLAGS} \
libdata/pkgconfig/python-${PYTHON_VER}${ABIFLAGS}-embed.pc
.endif
-.if ${ARCH} == sparc64
-CFLAGS+= -DPYTHON_DEFAULT_RECURSION_LIMIT=900
-.endif
-
# See https://bugs.freebsd.org/115940 and https://bugs.freebsd.org/193650
.if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS)
PLIST_SUB+= NO_NIS="@comment "
diff --git a/lang/rust-bootstrap/Makefile b/lang/rust-bootstrap/Makefile
index eb36cc56a058..3925d43faff8 100644
--- a/lang/rust-bootstrap/Makefile
+++ b/lang/rust-bootstrap/Makefile
@@ -65,9 +65,6 @@ _RUST_LLVM_TARGET_riscv64= RISCV
.if ${OPSYS} != FreeBSD
IGNORE= is only for FreeBSD
.endif
-.if (${FLAVOR} == powerpc64le || ${FLAVOR} == riscv64) && ${OSVERSION} < 1300116
-IGNORE= will not build on 12.x due to old system
-.endif
.if exists(${PATCHDIR}/${FLAVOR:S/_/-/})
EXTRA_PATCHES+= ${PATCHDIR}/${FLAVOR:S/_/-/}
diff --git a/lang/rust/Makefile b/lang/rust/Makefile
index d035127d644b..91ebfd4eff10 100644
--- a/lang/rust/Makefile
+++ b/lang/rust/Makefile
@@ -22,7 +22,6 @@ LICENSE_COMB= dual
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT
-IGNORE_FreeBSD_12_powerpc= is missing a bootstrap for FreeBSD 12.x powerpc
ONLY_FOR_ARCHS?= aarch64 amd64 armv7 i386 powerpc64 powerpc64le powerpc \
riscv64
ONLY_FOR_ARCHS_REASON?= requires prebuilt bootstrap compiler
diff --git a/lang/scm/Makefile b/lang/scm/Makefile
index 63cb14d381d2..b2e1ed7bb515 100644
--- a/lang/scm/Makefile
+++ b/lang/scm/Makefile
@@ -16,6 +16,8 @@ LICENSE= LGPL21
BROKEN_aarch64= fails to link: missing sbrk
BROKEN_riscv64= fails to link: missing sbrk
+LIB_DEPENDS= libgnuregex.so.[6-9]:devel/libgnuregex
+
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= readline zip
@@ -60,10 +62,6 @@ USES+= compiler:gcc-c++11-lib
.include <bsd.port.pre.mk>
-.if ${OSVERSION} > 1300000
-LIB_DEPENDS+= libgnuregex.so.[6-9]:devel/libgnuregex
-.endif
-
.if ${PORT_OPTIONS:MX11}
SCM_MODULES+= ${SCM_MODULES_X11}
SCM_DATA+= ${SCM_DATA_X11}
diff --git a/lang/seed7/Makefile b/lang/seed7/Makefile
index 0ec3defbde7e..cd851af57965 100644
--- a/lang/seed7/Makefile
+++ b/lang/seed7/Makefile
@@ -14,7 +14,7 @@ WWW= https://seed7.sourceforge.net/
LICENSE= GPLv2 LGPL21
LICENSE_COMB= multi
-ONLY_FOR_ARCHS= amd64 armv7 i386 powerpc powerpc64 powerpc64le sparc64
+ONLY_FOR_ARCHS= amd64 armv7 i386 powerpc powerpc64 powerpc64le
LIB_DEPENDS= libodbc.so:databases/unixODBC
diff --git a/lang/smalltalk/Makefile b/lang/smalltalk/Makefile
index 64a6dfd1f13d..76039a159e2f 100644
--- a/lang/smalltalk/Makefile
+++ b/lang/smalltalk/Makefile
@@ -11,6 +11,7 @@ WWW= https://smalltalk.gnu.org/
LICENSE= GPLv2+
BROKEN_powerpc64= Fails to build: gst-package: did not understand #~
+BROKEN_riscv64= Fails to link: undefined reference to sbrk
BUILD_DEPENDS= zip:archivers/zip \
gawk:lang/gawk
diff --git a/lang/solidity/Makefile b/lang/solidity/Makefile
index d9328b0b8b43..9cbb731988a4 100644
--- a/lang/solidity/Makefile
+++ b/lang/solidity/Makefile
@@ -10,7 +10,7 @@ WWW= https://github.com/ethereum/solidity
LICENSE= GPLv3
-NOT_FOR_ARCHS= powerpc powerpc64 powerpcspe sparc64
+NOT_FOR_ARCHS= powerpc powerpc64 powerpcspe
NOT_FOR_ARCHS_REASON= solidity currently does not support big endian systems
BUILD_DEPENDS= boost-libs>=0:devel/boost-libs \
diff --git a/lang/tauthon/Makefile b/lang/tauthon/Makefile
index 15f6046f3f6e..b4d20fa02fa5 100644
--- a/lang/tauthon/Makefile
+++ b/lang/tauthon/Makefile
@@ -136,10 +136,6 @@ PLIST_SUB+= 32BIT_ONLY="@comment "
PLIST_SUB+= 32BIT_ONLY=""
.endif
-.if ${ARCH} == sparc64
-CFLAGS+= -DPYTHON_DEFAULT_RECURSION_LIMIT=900
-.endif
-
# See https://bugs.freebsd.org/115940 and https://bugs.freebsd.org/193650
.if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS)
PLIST_SUB+= NO_NIS="@comment "
diff --git a/lang/tcl87/Makefile b/lang/tcl87/Makefile
index 2e95b4a7a0aa..b00958780894 100644
--- a/lang/tcl87/Makefile
+++ b/lang/tcl87/Makefile
@@ -28,9 +28,6 @@ OPTIONS_DEFINE_powerpc64= DTRACE
OPTIONS_DEFINE_powerpc64le= DTRACE
OPTIONS_DEFAULT_powerpc64= DTRACE
OPTIONS_DEFAULT_powerpc64le= DTRACE
-OPTIONS_EXCLUDE_powerpc64= ${OPTIONS_EXCLUDE_${ARCH}_${OSREL:R}}
-OPTIONS_EXCLUDE_powerpc64_11= DTRACE
-OPTIONS_EXCLUDE_powerpc64_12= DTRACE
TCLMAN_DESC= Install Tcl function manpages
TZDATA_DESC= Install Tcl timezone data
OPTIONS_SUB= yes
diff --git a/mail/fetchmail/Makefile b/mail/fetchmail/Makefile
index 3ac359fc5da5..c1b746c49454 100644
--- a/mail/fetchmail/Makefile
+++ b/mail/fetchmail/Makefile
@@ -105,10 +105,4 @@ post-install-DOCS-on:
CONFIGURE_ARGS+= --enable-opie
.endif
-.if ${OPSYS} == FreeBSD && (${ARCH:Mpowerpc*} && ${OSREL:R} < 13)
-# as of 2019-10-02, powerpc's base compiler does not yield a working fetchmail.
-# https://svnweb.freebsd.org/ports?view=revision&revision=513614 -- pkubaj@
-USE_GCC= yes
-.endif
-
.include <bsd.port.post.mk>
diff --git a/mail/filtermail/Makefile b/mail/filtermail/Makefile
index 45a517090b67..820d8179333c 100644
--- a/mail/filtermail/Makefile
+++ b/mail/filtermail/Makefile
@@ -10,12 +10,7 @@ WWW= http://mailfilter.sourceforge.net
LICENSE= GPLv3
-.include <bsd.port.options.mk>
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000
-BUILD_DEPENDS= ${LOCALBASE}/bin/flex:textproc/flex
-.endif
-
-USES= bison gmake ssl
+USES= bison gmake localbase:ldflags ssl
# This port is filtermail, but the author called it mailfilter. To avoid a
# clash with another port called mailfilter, we change all files
@@ -31,13 +26,6 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE= yes
-CPPFLAGS+= -I${LOCALBASE}/include
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000
-CPPFLAGS+= -I${LOCALBASE}/include/flex
-FLEX=${LOCALBASE}/bin/flex
-.endif
-LDFLAGS+= -L${LOCALBASE}/lib
-
PLIST_FILES= bin/${PORTNAME} \
man/man1/${PORTNAME}.1.gz \
man/man5/${PORTNAME}ex.5.gz \
diff --git a/mail/rmilter/Makefile b/mail/rmilter/Makefile
index 059e4d665309..ad5f927f6129 100644
--- a/mail/rmilter/Makefile
+++ b/mail/rmilter/Makefile
@@ -10,7 +10,7 @@ LICENSE= BSD2CLAUSE
LIB_DEPENDS= libpcre.so:devel/pcre
-NOT_FOR_ARCHS= mips sparc64
+NOT_FOR_ARCHS= mips
NOT_FOR_ARCHS_REASON= fails to compile: error: Unsupported word size
USE_GITHUB= yes
diff --git a/mail/spamilter/Makefile b/mail/spamilter/Makefile
index 1aa94e0cd6eb..37c3595b607f 100644
--- a/mail/spamilter/Makefile
+++ b/mail/spamilter/Makefile
@@ -47,7 +47,6 @@ IPFWMTAD_USES= ssl
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MIPFWMTAD}
-BROKEN_FreeBSD_12= option IPFWMTAD needs old openssl
BROKEN_FreeBSD_13= option IPFWMTAD needs old openssl
.endif
diff --git a/mail/thunderbird/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc b/mail/thunderbird/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc
deleted file mode 100644
index 5af9e7ec2d70..000000000000
--- a/mail/thunderbird/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc
+++ /dev/null
@@ -1,23 +0,0 @@
-commit d1f5a45c1906e9f1e6a51f3b44c52d981bb3958c
-Author: Christoph Moench-Tegeder <cmt@burggraben.net>
-Date: Wed Oct 12 19:57:20 2022 +0200
-
- pull in sys/types.h for u_XXX typedefs on FreeBSD 12
-
- In file included from /wrkdirs/usr/ports/www/firefox/work/firefox-106.0/third_party/libwebrtc/rtc_base/ip_address.cc:20:
- /usr/include/netinet/ip.h:53:2: error: unknown type name 'u_char'; did you mean 'char'?
- u_char ip_hl:4, /* header length */
-
-diff --git third_party/libwebrtc/rtc_base/ip_address.cc third_party/libwebrtc/rtc_base/ip_address.cc
-index d544b611e149..ef9b742dac5f 100644
---- third_party/libwebrtc/rtc_base/ip_address.cc
-+++ third_party/libwebrtc/rtc_base/ip_address.cc
-@@ -11,6 +11,8 @@
- #if defined(WEBRTC_POSIX)
- #include <netinet/in.h>
- #include <sys/socket.h>
-+/* for u_char/u_short etc on FreeBSD 12 */
-+#include <sys/types.h>
-
- #include "absl/strings/string_view.h"
- #ifdef OPENBSD
diff --git a/math/R-cran-igraph/Makefile b/math/R-cran-igraph/Makefile
index 5723ff36d3a9..cdbccebae97a 100644
--- a/math/R-cran-igraph/Makefile
+++ b/math/R-cran-igraph/Makefile
@@ -9,8 +9,6 @@ WWW= https://cran.r-project.org/web/packages/igraph/
LICENSE= GPLv2+
-BROKEN_sparc64= does not compile on sparc64: uses i386 assembler
-
LIB_DEPENDS= libglpk.so:math/glpk \
libgmp.so:math/gmp
RUN_DEPENDS= R-cran-cli>0:devel/R-cran-cli \
diff --git a/math/acalc/Makefile b/math/acalc/Makefile
index 99b44586f7ee..1054edc84729 100644
--- a/math/acalc/Makefile
+++ b/math/acalc/Makefile
@@ -8,8 +8,6 @@ WWW= https://github.com/anpp/acalc
LICENSE= BSD4CLAUSE
-BROKEN_FreeBSD_12_powerpc64= fails to compile: settings.cpp:8:136: error: no matching function for call to 'Setting::Setting(<brace-enclosed initializer list>)'
-
USES= compiler:c++14-lang qmake qt:5 tar:xz
USE_GITHUB= yes
diff --git a/math/asymptote/Makefile b/math/asymptote/Makefile
index 9993a6431758..1e00788be54c 100644
--- a/math/asymptote/Makefile
+++ b/math/asymptote/Makefile
@@ -16,7 +16,6 @@ LICENSE= GPLv3 LGPL3
LICENSE_COMB= dual
ONLY_FOR_ARCHS= amd64 i386
-BROKEN_FreeBSD_12_i386= ./base/plain_filldraw.asy: 21.5: runtime: gmake[2]: *** [Makefile:42: makepen.pdf] Floating point exception (core dumped)
LIB_DEPENDS= libboost_filesystem.so:devel/boost-libs \
libcurl.so:ftp/curl \
diff --git a/math/blacs/Makefile b/math/blacs/Makefile
index e3a994b16f3f..8e696c89704d 100644
--- a/math/blacs/Makefile
+++ b/math/blacs/Makefile
@@ -43,7 +43,7 @@ F77EXTRAFLAGS+= -fallow-argument-mismatch
DEBUG_LEVEL= 0
-.if ${ARCH} == "sparc64" || ${ARCH} == "amd64"
+.if ${ARCH} == "amd64"
FPIC= -fPIC
.else
FPIC= -fpic
diff --git a/math/cgal/Makefile b/math/cgal/Makefile
index 6091945d2f90..83cd81f02a16 100644
--- a/math/cgal/Makefile
+++ b/math/cgal/Makefile
@@ -12,8 +12,6 @@ WWW= https://www.cgal.org/
LICENSE= GPLv3 LGPL3
LICENSE_COMB= multi
-BROKEN_sparc64= does not build: fails to compile all_files.cpp
-
BUILD_DEPENDS= ${LOCALBASE}/lib/libntl.a:math/ntl
LIB_DEPENDS= libboost_system.so:devel/boost-libs \
libmpfr.so:math/mpfr \
diff --git a/math/clasp/Makefile b/math/clasp/Makefile
index addfcf21fa4f..921f970918dd 100644
--- a/math/clasp/Makefile
+++ b/math/clasp/Makefile
@@ -10,8 +10,6 @@ WWW= https://potassco.org/clasp/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN_sparc64= Fails to build: internal compiler error
-
USES= compiler:c++11-lang cmake
USE_GITHUB= yes
diff --git a/math/clblas/Makefile b/math/clblas/Makefile
index f29e75c8fa72..a5781896a07c 100644
--- a/math/clblas/Makefile
+++ b/math/clblas/Makefile
@@ -11,8 +11,6 @@ WWW= https://github.com/clMathLibraries/clBLAS
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN_FreeBSD_12_powerpc64= src/library/tools/tune/tune.c:137: error: 'CLOCK_REALTIME' undeclared (first use in this function)
-
BUILD_DEPENDS= opencl>=0:devel/opencl
LIB_DEPENDS= libOpenCL.so:devel/ocl-icd \
libboost_program_options.so:devel/boost-libs
diff --git a/math/dieharder/Makefile b/math/dieharder/Makefile
index 440a7ed6caab..3b06a344479a 100644
--- a/math/dieharder/Makefile
+++ b/math/dieharder/Makefile
@@ -12,7 +12,6 @@ LICENSE= GPLv2
LIB_DEPENDS= libgsl.so:math/gsl
-BROKEN_sparc64= fails to compile
MAKE_JOBS_UNSAFE= yes
USES= dos2unix libtool tar:tgz
diff --git a/math/elemental/Makefile b/math/elemental/Makefile
index 4f83a89b24cc..e05f449b4433 100644
--- a/math/elemental/Makefile
+++ b/math/elemental/Makefile
@@ -10,7 +10,6 @@ WWW= https://github.com/LLNL/Elemental
LICENSE= BSD2CLAUSE
-BROKEN_FreeBSD_12_powerpc64= fails to compile: include/El/blas_like/level1/Copy.hpp:522:27: ambiguous template specialization 'Copy<>' for 'void El::Copy(const El::Matrix<int>&, El::Matrix<int>&)'
BROKEN_i386= clang crashes: https://bugs.llvm.org/show_bug.cgi?id=46026
LIB_DEPENDS= libgmp.so:math/gmp \
diff --git a/math/fenics-basix/Makefile b/math/fenics-basix/Makefile
index 597bf4cbdb9d..cf220fb45db0 100644
--- a/math/fenics-basix/Makefile
+++ b/math/fenics-basix/Makefile
@@ -23,10 +23,4 @@ GH_PROJECT= basix
WRKSRC_SUBDIR= cpp
-.include <bsd.port.pre.mk>
-
-.if ${CHOSEN_COMPILER_TYPE} == clang && !exists(/usr/include/c++/v1/concepts) # true only on FreeBSD_12
-BROKEN= system is missing a required C++ feature std::concepts
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/math/gambit/Makefile b/math/gambit/Makefile
index 2fc7a2756f57..4bf9496cb4d1 100644
--- a/math/gambit/Makefile
+++ b/math/gambit/Makefile
@@ -11,8 +11,6 @@ WWW= http://www.gambit-project.org
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
-BROKEN_FreeBSD_12_powerpc64= fails to compile: ./library/include/gambit/shared_ptr.h:137:37: no matching function for call to 'swap(long int*&, long int* const&)'
-
USES= compiler:c++11-lib gnome
GNU_CONFIGURE= yes
USE_GNOME= gtk20
diff --git a/math/kktdirect/Makefile b/math/kktdirect/Makefile
index 411b6e9c8af8..b2ff9083cac4 100644
--- a/math/kktdirect/Makefile
+++ b/math/kktdirect/Makefile
@@ -19,13 +19,9 @@ PLIST_FILES= include/kktdirect.h lib/libkktdirect.a lib/libkktdirect_pic.a \
OPTIONS_DEFINE= DOCS EXAMPLES
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "sparc64"
-PICFLAG?= -fPIC
-.else
PICFLAG?= -fpic
-.endif
+
+.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/lib/libgoto2.so)
WITH_BLAS?= gotoblas
diff --git a/math/lapack95/Makefile b/math/lapack95/Makefile
index 75f6236fd201..7860d31bd5a5 100644
--- a/math/lapack95/Makefile
+++ b/math/lapack95/Makefile
@@ -29,13 +29,9 @@ WRKSRC= ${WRKDIR}/LAPACK95
MAKE_JOBS_UNSAFE=yes
-.include <bsd.port.options.mk>
-
-.if ${ARCH} == "sparc64"
-PICFLAG?= -fPIC
-.else
PICFLAG?= -fpic
-.endif
+
+.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MEXAMPLES}
PORTEXAMPLES= make.inc EXAMPLES1 EXAMPLES2
diff --git a/math/ldouble/Makefile b/math/ldouble/Makefile
index bd47f615810b..b023d7c25a31 100644
--- a/math/ldouble/Makefile
+++ b/math/ldouble/Makefile
@@ -15,7 +15,7 @@ BUILD_DEPENDS= as:devel/binutils
NO_WRKSUBDIR= yes
MAKEFILE= makefile
USE_LDCONFIG= yes
-ONLY_FOR_ARCHS= i386 sparc64
+ONLY_FOR_ARCHS= i386
PLIST_FILES= lib/libml.a \
lib/libml.so \
@@ -37,10 +37,8 @@ PORTDOCS= 128bdoc.html
.endif
post-patch:
-.if ${ARCH}!="sparc64"
@${REINPLACE_CMD} -e 's|-msoft-quad-float||' \
${WRKSRC}/${MAKEFILE}
-.endif
@${REINPLACE_CMD} -e 's|%%CC%%|${CC}|; s|%%CFLAGS%%|${CFLAGS}|' \
${WRKSRC}/${MAKEFILE}
diff --git a/math/libocas/Makefile b/math/libocas/Makefile
index 94d0750909e9..7631cbe35288 100644
--- a/math/libocas/Makefile
+++ b/math/libocas/Makefile
@@ -21,15 +21,7 @@ MAKE_ENV= CLIBS="${CLIBS}" MEXDETECTED=no
PLIST_FILES= bin/linclassif bin/msvmocas bin/svmocas lib/libocas.so \
lib/libocas.so.1
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == sparc64
-PICFLAG= -fPIC
-.else
-PICFLAG= -fpic
-.endif
-
-CFLAGS+= ${PICFLAG}
+CFLAGS+= -fpic
post-patch:
@${REINPLACE_CMD} \
@@ -55,4 +47,4 @@ do-test:
${WRKSRC}/linclassif -e -v 1 -o ${WRKSRC}/data/riply_tst.pred \
${WRKSRC}/data/riply_tst.light ${WRKSRC}/data/svmocas.model
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/math/metis/Makefile b/math/metis/Makefile
index 8cc6b22846fc..becec672b7d5 100644
--- a/math/metis/Makefile
+++ b/math/metis/Makefile
@@ -40,13 +40,9 @@ ALL_TARGET_STATIC= metis
WRKSRC_STATIC= ${WRKSRC}
INSTALL_WRKSRC_STATIC= ${WRKSRC_STATIC}/libmetis
-.include <bsd.port.options.mk>
-
-.if ${ARCH} == "sparc64"
-CFLAGS+= -fPIC
-.else
CFLAGS+= -fpic
-.endif
+
+.include <bsd.port.options.mk>
pre-configure:
@${REINPLACE_CMD} -e "/^# Add compiler flags/,/^$$/d" \
diff --git a/math/ndiff/Makefile b/math/ndiff/Makefile
index b746ea5fbb74..bf16c2560793 100644
--- a/math/ndiff/Makefile
+++ b/math/ndiff/Makefile
@@ -29,12 +29,8 @@ GMP_CONFIGURE_ON= --with-gmp
.include <bsd.port.options.mk>
.if ! ${PORT_OPTIONS:MGMP}
-.if ${ARCH} == sparc64
-CONFIGURE_ARGS+= --with-long-double
-.else
CONFIGURE_ARGS+= --with-double
.endif
-.endif
post-patch:
${REINPLACE_CMD} -e \
diff --git a/math/nfft/Makefile b/math/nfft/Makefile
index 8260a021780e..4bde1c9a315d 100644
--- a/math/nfft/Makefile
+++ b/math/nfft/Makefile
@@ -39,16 +39,4 @@ OPTIONS_SUB= yes
OPENMP_CONFIGURE_ENABLE= openmp
-.include <bsd.port.options.mk>
-
-# We don't have cexpl implemented in earlier versions
-# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216862
-
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300521
-
-LIB_DEPENDS+= libopenlibm.so:math/openlibm
-LDFLAGS+= -lopenlibm
-
-.endif
-
.include <bsd.port.mk>
diff --git a/math/octave-forge-ltfat/Makefile b/math/octave-forge-ltfat/Makefile
index 057566e61a98..356cd1dfb3de 100644
--- a/math/octave-forge-ltfat/Makefile
+++ b/math/octave-forge-ltfat/Makefile
@@ -13,8 +13,6 @@ WWW= https://packages.octave.org/
LICENSE= GPLv3
LICENSE_FILE= ${WRKDIR}/${OCTAVE_SRC}/COPYING
-BROKEN_FreeBSD_12_powerpc64= fails to compile: modules/libltfat/src/dgt_multi.c:47:31: 'cexpl' undeclared (first use in this function); did you mean 'cexpf'?
-
LIB_DEPENDS= libfftw3.so:math/fftw3 \
libportaudio.so:audio/portaudio \
libopenblas.so:math/openblas
diff --git a/math/parmetis/Makefile b/math/parmetis/Makefile
index c6e62158f50d..a67acfd161b6 100644
--- a/math/parmetis/Makefile
+++ b/math/parmetis/Makefile
@@ -38,7 +38,7 @@ pre-configure:
s|$$(MAKEFLAGS)||' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e \
's|"-O3"|""|' ${WRKSRC}/metis/GKlib/GKlibSystem.cmake
-.if ((${ARCH}=="amd64") || (${ARCH}=="aarch64") || (${ARCH}=="sparc64") || (${ARCH}=="ppc64"))
+.if ((${ARCH}=="amd64") || (${ARCH}=="aarch64") || (${ARCH}=="ppc64"))
@${REINPLACE_CMD} -e \
's|IDXTYPEWIDTH 32|IDXTYPEWIDTH 64|' \
${WRKSRC}/metis/include/metis.h
diff --git a/math/qrupdate/Makefile b/math/qrupdate/Makefile
index 44e394682710..2fc1955fe818 100644
--- a/math/qrupdate/Makefile
+++ b/math/qrupdate/Makefile
@@ -12,21 +12,13 @@ LIB_DEPENDS= libblas.so:math/blas \
liblapack.so:math/lapack
USES= fortran gmake
+USE_LDCONFIG= yes
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "sparc64"
-PICFLAG?= -fPIC
-BROKEN= Does not compile on sparc64: assertions fail
-.else
PICFLAG?= -fpic
-.endif
-
-USE_LDCONFIG= yes
pre-build:
@${REINPLACE_CMD} -e 's+%%FC%%+${FC}+g ; s+%%FFLAGS%%+${FFLAGS}+g ; \
s+%%PICFLAG%%+${PICFLAG}+g ; ' \
${WRKSRC}/Makeconf
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/math/scalapack/Makefile b/math/scalapack/Makefile
index ddd34e7d0156..6ff751ecd804 100644
--- a/math/scalapack/Makefile
+++ b/math/scalapack/Makefile
@@ -50,7 +50,7 @@ OPENMPI_CMAKE_ON=-DMPI_BASE_DIR=${LOCALBASE}/mpi/openmpi
BLAS= ${BLASLIB}
LAPACK= ${LAPACKLIB}
-.if ${ARCH} == "sparc64" || ${ARCH} == "amd64"
+.if ${ARCH} == "amd64"
FPIC= -fPIC
.else
FPIC= -fpic
diff --git a/math/spooles/Makefile b/math/spooles/Makefile
index 3dc9dcc7ab0c..321d3790fcfd 100644
--- a/math/spooles/Makefile
+++ b/math/spooles/Makefile
@@ -36,18 +36,14 @@ DOCS_DISTFILES= ${DISTNAME}${EXTRACT_SUFX} AllInOne.ps.gz Eigen.ps.gz \
Install.ps.gz LinSol.ps.gz Ordering.ps.gz \
PP99.ps.gz ReferenceManual.ps.gz
+PICFLAG?= -fpic
+
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=int-conversion
.endif
-.if ${ARCH} == "sparc64"
-PICFLAG?= -fPIC
-.else
-PICFLAG?= -fpic
-.endif
-
.SILENT:
pre-everything::
diff --git a/math/taucs/Makefile b/math/taucs/Makefile
index 662584e1e64b..77ace8f79c3f 100644
--- a/math/taucs/Makefile
+++ b/math/taucs/Makefile
@@ -25,6 +25,8 @@ HAS_CONFIGURE= yes
OPTIONS_DEFINE= DOCS
+PICFLAG?= -fpic
+
.include <bsd.port.options.mk>
LDFLAGS+= -L${LOCALBASE}/lib
@@ -34,12 +36,6 @@ MAKE_ENV+= LIBBLAS="${BLASLIB}" LIBLAPACK="${LAPACKLIB}" LIBMETIS="${LIBMETIS}"
BINS?= direct iter taucs_run
TESTS?= complex stack timer linsolve memory
-.if ${ARCH} == "sparc64"
-PICFLAG?= -fPIC
-.else
-PICFLAG?= -fpic
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's/succedd/succeed/' \
${WRKSRC}/progs/taucs_blas_underscore_test.c
diff --git a/math/trlan/Makefile b/math/trlan/Makefile
index 50f208c37445..b77bbfee8517 100644
--- a/math/trlan/Makefile
+++ b/math/trlan/Makefile
@@ -21,17 +21,13 @@ PLIST_FILES= lib/libtrlan.a lib/libtrlan.so lib/libtrlan.so.1
OPTIONS_DEFINE= DOCS EXAMPLES
+PICFLAG= -fpic
+
.include <bsd.port.pre.mk>
PORTDOCS= trlan-ug.pdf
PORTEXAMPLES= Makefile README dense.f90 simple.f90 simple77.f simplec.c
-.if ${ARCH} == sparc64
-PICFLAG= -fPIC
-.else
-PICFLAG= -fpic
-.endif
-
post-patch:
@${REINPLACE_CMD} -E \
-e '/^(FC|FFLAGS)=/s/^/#/' \
diff --git a/math/xblas/Makefile b/math/xblas/Makefile
index 7cbb0217bdfd..0a04fd58dac8 100644
--- a/math/xblas/Makefile
+++ b/math/xblas/Makefile
@@ -26,6 +26,8 @@ PLIST_FILES= ${HEADERS:S|^|${HDIR}/|}
SHLIB_MAJOR= 0
WRKSRC= ${WRKDIR}/xblas-${PORTVERSION}
+PICFLAG= -fpic
+
.include <bsd.port.options.mk>
M4?= m4
@@ -36,12 +38,6 @@ MANGLING?= -DCONFIG_FC_UNDERSCORE
CFLAGS+= -Dx86
.endif
-.if ${ARCH} == "sparc64"
-PICFLAG= -fPIC
-.else
-PICFLAG= -fpic
-.endif
-
PORTDOCS= report.ps
.if ${PORT_OPTIONS:MSHARED}
diff --git a/misc/compat5x/Makefile b/misc/compat5x/Makefile
index e9d0b545c0f3..038c09cc96ec 100644
--- a/misc/compat5x/Makefile
+++ b/misc/compat5x/Makefile
@@ -19,7 +19,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
USES= tar:bzip2
NO_BUILD= yes
-ONLY_FOR_ARCHS= amd64 i386 sparc64
+ONLY_FOR_ARCHS= amd64 i386
TARGET_DIR= ${PREFIX}/lib/compat
TARGET32_DIR= ${PREFIX}/lib32/compat
USE_LDCONFIG= ${TARGET_DIR}
@@ -39,12 +39,6 @@ PLIST_SUB+= I386=""
PLIST_SUB+= I386="@comment "
.endif
-.if ${ARCH} == sparc64
-PLIST_SUB+= SPARC64=""
-.else
-PLIST_SUB+= SPARC64="@comment "
-.endif
-
do-install:
@${MKDIR} -m 0755 ${STAGEDIR}${TARGET_DIR}
${RM} ${WRKSRC}/libpthread.so.1
diff --git a/misc/compat5x/distinfo b/misc/compat5x/distinfo
index d18629249f77..ce852b042d70 100644
--- a/misc/compat5x/distinfo
+++ b/misc/compat5x/distinfo
@@ -1,7 +1,5 @@
-TIMESTAMP = 1703070263
+TIMESTAMP = 1703070264
SHA256 (compat5x-amd64-5.4.0.8.1.tar.bz2) = 58dc8fcd2764bec4cb109f54e34d543aa90fe3e94123463de745c76ba9839b13
SIZE (compat5x-amd64-5.4.0.8.1.tar.bz2) = 5854551
SHA256 (compat5x-i386-5.4.0.8.1.tar.bz2) = 1aa980a48586e38e03936f51631c665b62e252d13dc23ac8e82b9669844b798e
SIZE (compat5x-i386-5.4.0.8.1.tar.bz2) = 2712692
-SHA256 (compat5x-sparc64-5.4.0.8.1.tar.bz2) = 2adea66847df4aa24571b7d314bfd29cf682c7f8d61ba1c95c602f13b55f4aec
-SIZE (compat5x-sparc64-5.4.0.8.1.tar.bz2) = 2782405
diff --git a/misc/compat5x/pkg-plist b/misc/compat5x/pkg-plist
index 6665159819f1..7561646ba266 100644
--- a/misc/compat5x/pkg-plist
+++ b/misc/compat5x/pkg-plist
@@ -38,8 +38,6 @@ lib/compat/libkadm5srv.so.7
lib/compat/libkafs5.so.7
lib/compat/libkiconv.so.1
lib/compat/libkrb5.so.7
-%%SPARC64%%@preunexec chflags noschg %D/lib/compat/libkse.so.1
-%%SPARC64%%lib/compat/libkse.so.1
lib/compat/libkvm.so.2
lib/compat/libm.so.3
lib/compat/libmagic.so.1
@@ -61,8 +59,6 @@ lib/compat/libpcap.so.3
%%AMD64%%lib/compat/libpthread.so.1
%%I386%%@preunexec chflags noschg %D/lib/compat/libpthread.so.1
%%I386%%lib/compat/libpthread.so.1
-%%SPARC64%%@preunexec chflags noschg %D/lib/compat/libpthread.so.1
-%%SPARC64%%lib/compat/libpthread.so.1
lib/compat/libradius.so.1
lib/compat/libreadline.so.5
lib/compat/libroken.so.7
diff --git a/misc/compat6x/Makefile b/misc/compat6x/Makefile
index d41f01652bc5..7aebd60ba89f 100644
--- a/misc/compat6x/Makefile
+++ b/misc/compat6x/Makefile
@@ -10,7 +10,7 @@ DISTNAME= ${PORTNAME}-${ARCH}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Convenience package to install the compat6x libraries
-ONLY_FOR_ARCHS= amd64 i386 sparc64
+ONLY_FOR_ARCHS= amd64 i386
USES= tar:bzip2
NO_BUILD= yes
diff --git a/misc/compat6x/distinfo b/misc/compat6x/distinfo
index e65ec3a931a1..9ac6383100fb 100644
--- a/misc/compat6x/distinfo
+++ b/misc/compat6x/distinfo
@@ -1,6 +1,5 @@
+TIMESTAMP = 1703070263
SHA256 (compat6x-i386-6.4.604000.200810.tar.bz2) = f63e66f8bb1e0ebb897cbb4ba9cce3ad536595671d7040b68aad74d09a2e4709
SIZE (compat6x-i386-6.4.604000.200810.tar.bz2) = 3133715
SHA256 (compat6x-amd64-6.4.604000.200810.tar.bz2) = 1fc72de76586f97fb62975f3af168b8a8b1c6c9ed86f9e37ec054a3ab5c8b842
SIZE (compat6x-amd64-6.4.604000.200810.tar.bz2) = 6445228
-SHA256 (compat6x-sparc64-6.4.604000.200810.tar.bz2) = 6076471b01136202506d4c0b4c23b9968400aef7b25ea34a1765ac6bcbf7fa0e
-SIZE (compat6x-sparc64-6.4.604000.200810.tar.bz2) = 3313585
diff --git a/misc/compat6x/pkg-plist.sparc64 b/misc/compat6x/pkg-plist.sparc64
deleted file mode 100644
index c892368c53a3..000000000000
--- a/misc/compat6x/pkg-plist.sparc64
+++ /dev/null
@@ -1,109 +0,0 @@
-lib/compat/libalias.so.5
-lib/compat/libarchive.so.2
-lib/compat/libasn1.so.8
-lib/compat/libatm.so.3
-lib/compat/libbegemot.so.2
-lib/compat/libbluetooth.so.2
-lib/compat/libbsdxml.so.2
-lib/compat/libbsm.so.1
-lib/compat/libbsnmp.so.3
-lib/compat/libbz2.so.2
-lib/compat/libc.so.6
-lib/compat/libcalendar.so.3
-lib/compat/libcam.so.3
-lib/compat/libcom_err.so.3
-lib/compat/libcrypt.so.3
-lib/compat/libcrypto.so.4
-lib/compat/libdevinfo.so.3
-lib/compat/libdevstat.so.5
-lib/compat/libdialog.so.5
-lib/compat/libedit.so.5
-lib/compat/libfetch.so.4
-lib/compat/libform.so.3
-lib/compat/libformw.so.3
-lib/compat/libftpio.so.6
-lib/compat/libg2c.so.2
-lib/compat/libgeom.so.3
-lib/compat/libgnuregex.so.3
-lib/compat/libgpib.so.1
-lib/compat/libgssapi.so.8
-lib/compat/libhdb.so.8
-lib/compat/libhistory.so.6
-lib/compat/libipsec.so.2
-lib/compat/libipx.so.3
-lib/compat/libkadm5clnt.so.8
-lib/compat/libkadm5srv.so.8
-lib/compat/libkafs5.so.8
-lib/compat/libkiconv.so.2
-lib/compat/libkrb5.so.8
-lib/compat/libkse.so.2
-lib/compat/libkvm.so.3
-lib/compat/libm.so.4
-lib/compat/libmagic.so.2
-lib/compat/libmd.so.3
-lib/compat/libmemstat.so.1
-lib/compat/libmenu.so.3
-lib/compat/libmenuw.so.3
-lib/compat/libmilter.so.3
-lib/compat/libmp.so.5
-lib/compat/libncurses.so.6
-lib/compat/libncursesw.so.6
-lib/compat/libnetgraph.so.2
-lib/compat/libngatm.so.2
-lib/compat/libobjc.so.2
-lib/compat/libopie.so.4
-lib/compat/libpam.so.3
-lib/compat/libpanel.so.3
-lib/compat/libpanelw.so.3
-lib/compat/libpcap.so.4
-lib/compat/libpmc.so.3
-lib/compat/libpthread.so.2
-lib/compat/libradius.so.2
-lib/compat/libreadline.so.6
-lib/compat/libroken.so.8
-lib/compat/librpcsvc.so.3
-lib/compat/libsbuf.so.3
-lib/compat/libsdp.so.2
-lib/compat/libssh.so.3
-lib/compat/libssl.so.4
-lib/compat/libstdc++.so.5
-lib/compat/libtacplus.so.2
-lib/compat/libthr.so.2
-lib/compat/libthread_db.so.2
-lib/compat/libufs.so.3
-lib/compat/libugidfw.so.2
-lib/compat/libusbhid.so.2
-lib/compat/libutil.so.5
-lib/compat/libwrap.so.4
-lib/compat/libypclnt.so.2
-lib/compat/libz.so.3
-lib/compat/pam_chroot.so.3
-lib/compat/pam_deny.so.3
-lib/compat/pam_echo.so.3
-lib/compat/pam_exec.so.3
-lib/compat/pam_ftpusers.so.3
-lib/compat/pam_group.so.3
-lib/compat/pam_guest.so.3
-lib/compat/pam_krb5.so.3
-lib/compat/pam_ksu.so.3
-lib/compat/pam_lastlog.so.3
-lib/compat/pam_login_access.so.3
-lib/compat/pam_nologin.so.3
-lib/compat/pam_opie.so.3
-lib/compat/pam_opieaccess.so.3
-lib/compat/pam_passwdqc.so.3
-lib/compat/pam_permit.so.3
-lib/compat/pam_radius.so.3
-lib/compat/pam_rhosts.so.3
-lib/compat/pam_rootok.so.3
-lib/compat/pam_securetty.so.3
-lib/compat/pam_self.so.3
-lib/compat/pam_ssh.so.3
-lib/compat/pam_tacplus.so.3
-lib/compat/pam_unix.so.3
-lib/compat/snmp_atm.so.4
-lib/compat/snmp_bridge.so.4
-lib/compat/snmp_hostres.so.4
-lib/compat/snmp_mibII.so.4
-lib/compat/snmp_netgraph.so.4
-lib/compat/snmp_pf.so.4
diff --git a/misc/dahdi-kmod26/Makefile b/misc/dahdi-kmod26/Makefile
index 7f0cad7add3e..bc074e937f34 100644
--- a/misc/dahdi-kmod26/Makefile
+++ b/misc/dahdi-kmod26/Makefile
@@ -16,7 +16,7 @@ WWW= https://svn.digium.com/svn/dahdi/freebsd/
RUN_DEPENDS= ${LOCALBASE}/sbin/dahdi_cfg:misc/dahdi
-ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64 powerpc64le sparc64
+ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64 powerpc64le
DAHDI_VERSION= 2.6.1-r10747
DAHDI_TOOLS_VERSION= 2.4.0-rc1
diff --git a/misc/dnetc/Makefile b/misc/dnetc/Makefile
index 62bd5dbe7663..5dfb2711162d 100644
--- a/misc/dnetc/Makefile
+++ b/misc/dnetc/Makefile
@@ -16,7 +16,7 @@ WWW= https://www.distributed.net/
WRKSRC= ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd-${ARCH:S/i386/x86/:S/powerpc64/powerpc/}-elf
DISTINFO_FILE= ${MASTERDIR}/distinfo.${ARCH:S/powerpc64/powerpc/}
-ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64 sparc64
+ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64
USE_RC_SUBR= dnetc
NO_BUILD= yes
@@ -41,12 +41,6 @@ VERSION= 2.9112.521
DISTNAME= dnetc${PORTVERSION:E}-freebsd10-${ARCH}
WRKSRC= ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd10-${ARCH}
-.elif ${ARCH} == sparc64
-VERSION= 2.9109.518
-REVISION= 1
-DISTNAME= dnetc${PORTVERSION:E}-freebsd8-${ARCH}
-WRKSRC= ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd8-${ARCH}
-
.elif ${ARCH} == powerpc || ${ARCH} == powerpc64
VERSION= 2.9109.518
REVISION= 1
diff --git a/misc/dnetc/distinfo.sparc64 b/misc/dnetc/distinfo.sparc64
deleted file mode 100644
index 5aa03ede6906..000000000000
--- a/misc/dnetc/distinfo.sparc64
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (dnetc518-freebsd8-sparc64.tar.gz) = c048f0599590aee57e4b1a19b7d759625aa18f51dc4d86bae1072d412678ab58
-SIZE (dnetc518-freebsd8-sparc64.tar.gz) = 948215
diff --git a/misc/libpri/Makefile b/misc/libpri/Makefile
index 616431910691..463f08529743 100644
--- a/misc/libpri/Makefile
+++ b/misc/libpri/Makefile
@@ -14,7 +14,7 @@ USE_LDCONFIG= yes
PLIST_FILES= include/libpri.h lib/libpri.a lib/libpri.so lib/libpri.so.1
MAKE_ARGS= INSTALL_PREFIX=${STAGEDIR}${PREFIX}
-ONLY_FOR_ARCHS= amd64 armv7 i386 powerpc powerpc64 powerpc64le sparc64
+ONLY_FOR_ARCHS= amd64 armv7 i386 powerpc powerpc64 powerpc64le
post-patch:
${REINPLACE_CMD} -e '/^all:/s/$$(UTILITIES)//' ${WRKSRC}/Makefile
diff --git a/misc/localedata/Makefile b/misc/localedata/Makefile
index e00d5dd499bf..5b5986609ce8 100644
--- a/misc/localedata/Makefile
+++ b/misc/localedata/Makefile
@@ -10,7 +10,7 @@ COMMENT= Legacy locale data for FreeBSD 6+
USES= tar:bzip2
NO_BUILD= yes
-ONLY_FOR_ARCHS= amd64 i386 sparc64
+ONLY_FOR_ARCHS= amd64 i386
TARGET_DIR= ${PREFIX}/share/compat
diff --git a/multimedia/dav1d/files/patch-freebsd12 b/multimedia/dav1d/files/patch-freebsd12
deleted file mode 100644
index 6376c4a5a863..000000000000
--- a/multimedia/dav1d/files/patch-freebsd12
+++ /dev/null
@@ -1,19 +0,0 @@
-Drop after FreeBSD 12.4 EOL around 2023-12-31
-FreeBSD >= 13.1 pulls cpu_set_t from <sched.h> via <pthread.h>
-
-https://cgit.freebsd.org/src/commit/?id=379bfb2aa9e9
-
---- tests/checkasm/checkasm.c.orig 2023-02-14 16:39:08 UTC
-+++ tests/checkasm/checkasm.c
-@@ -620,7 +620,11 @@ int main(int argc, char *argv[]) {
- fprintf(stderr, "checkasm: running on cpu %lu\n", affinity);
- }
- #elif defined(HAVE_PTHREAD_SETAFFINITY_NP) && defined(CPU_SET)
-+#if defined(__FreeBSD__) && __FreeBSD__ < 13
-+ cpuset_t set;
-+#else
- cpu_set_t set;
-+#endif
- CPU_ZERO(&set);
- CPU_SET(affinity, &set);
- if (pthread_setaffinity_np(pthread_self(), sizeof(set), &set)) {
diff --git a/multimedia/helvum/Makefile b/multimedia/helvum/Makefile
index 272acfa58b3a..7fcd05311b88 100644
--- a/multimedia/helvum/Makefile
+++ b/multimedia/helvum/Makefile
@@ -43,11 +43,4 @@ post-patch:
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
-# XXX Drop after FreeBSD 12.4 EOL around 2023-12-31
-# https://cgit.freebsd.org/src/commit/?id=7a202823aa54
-.if !exists(/usr/include/sys/eventfd.h)
-LIB_DEPENDS+= libepoll-shim.so:devel/libepoll-shim
-LDFLAGS+= -lepoll-shim
-.endif
-
.include <bsd.port.mk>
diff --git a/multimedia/makemkv/Makefile b/multimedia/makemkv/Makefile
index 4a987fbef700..96b5817a2e38 100644
--- a/multimedia/makemkv/Makefile
+++ b/multimedia/makemkv/Makefile
@@ -64,8 +64,7 @@ TARGET_ORDER_OVERRIDE= 290:pre-configure-FDK_AAC-on
CC= ${LINUXBASE}/bin/gcc
CXX= ${LINUXBASE}/bin/g++
-CPPFLAGS+= -D_linux_ -DFORCE_OPENSSL_NO_EC \
- ${${OSVERSION}<1300000:?-Dcaddr_t=void\* -D__daddr_t_defined:}
+CPPFLAGS+= -D_linux_ -DFORCE_OPENSSL_NO_EC
PATCHELF_CMD?= ${LOCALBASE}/bin/patchelf
LINUXSYSROOT= ${WRKDIR}/gnuroot
HAS_CONFIGURE= yes
diff --git a/multimedia/mkclean/Makefile b/multimedia/mkclean/Makefile
index 33031c5f1ab9..4f19c495ad6f 100644
--- a/multimedia/mkclean/Makefile
+++ b/multimedia/mkclean/Makefile
@@ -15,7 +15,6 @@ BROKEN_armv6= does not install: arm-none-linux-gnueabi-gcc: Command not found
BROKEN_armv7= does not install: arm-none-linux-gnueabi-gcc: Command not found
BROKEN_mips64= does not install: mipsel-linux-gcc: Command not found
BROKEN_riscv64= does not compile: cc: invalid arch name 'i486', string must begin with rv32{i,e,g} or rv64{i,g}
-BROKEN_sparc64= does not install: gmake: GNUmakefile: No such file or directory
USES= cmake compiler:c++11-lang cpe iconv localbase:ldflags
diff --git a/multimedia/mkvalidator/Makefile b/multimedia/mkvalidator/Makefile
index cf6c4d2d86ab..547084c41117 100644
--- a/multimedia/mkvalidator/Makefile
+++ b/multimedia/mkvalidator/Makefile
@@ -13,7 +13,6 @@ LICENSE_COMB= multi
BROKEN_mips= fails to build: gmake[3]: mipsel-linux-gcc: Command not found
BROKEN_mips64= fails to build: gmake[3]: mipsel-linux-gcc: Command not found
BROKEN_powerpc64= does not compile: mkvtree.c: error: dereferencing pointer to incomplete type
-BROKEN_sparc64= build broken on big endian architectures
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
diff --git a/multimedia/mkvtoolnix/Makefile b/multimedia/mkvtoolnix/Makefile
index 882bb2c3dfdd..2efdef58a300 100644
--- a/multimedia/mkvtoolnix/Makefile
+++ b/multimedia/mkvtoolnix/Makefile
@@ -11,8 +11,6 @@ WWW= https://www.bunkus.org/videotools/mkvtoolnix/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
-BROKEN_sparc64= does not install
-
BUILD_DEPENDS= rake:devel/rubygem-rake \
docbook-xsl>=0:textproc/docbook-xsl \
xsltproc:textproc/libxslt
diff --git a/multimedia/mlt7/Makefile b/multimedia/mlt7/Makefile
index 903c909005c9..dbed7b13833d 100644
--- a/multimedia/mlt7/Makefile
+++ b/multimedia/mlt7/Makefile
@@ -22,8 +22,6 @@ LDFLAGS+= -Wl,--undefined-version
DATADIR= ${PREFIX}/share/mlt-7
.ifndef(SLAVEPORT) # Master port.
-BROKEN_sparc64= does not compile on sparc64 (invokes i386 asm)
-
USES+= gnome mlt:7,nodepend
USE_GNOME= libxml2
diff --git a/multimedia/musikcube/Makefile b/multimedia/musikcube/Makefile
index 203a7149e1bd..088ac223de9c 100644
--- a/multimedia/musikcube/Makefile
+++ b/multimedia/musikcube/Makefile
@@ -29,10 +29,12 @@ LIB_DEPENDS= libasound.so:audio/alsa-lib \
libtag.so:audio/taglib \
libvorbis.so:audio/libvorbis
-USES= cmake:noninja compiler:c++17-lang pkgconfig ssl
+USES= cmake:noninja compiler:c++17-lang ncurses pkgconfig ssl
USES+= localbase # workaround for https://github.com/clangen/musikcube/issues/600
USE_LDCONFIG= yes
CMAKE_ON= USE_BASU
+CMAKE_ARGS+= -DNCURSES_DISABLE_LIB_SUFFIXES=false
+CMAKE_ON+= FREEBSD_USE_BASE_NCURSES
USE_GITHUB= yes
GH_ACCOUNT= clangen
@@ -44,17 +46,4 @@ post-install:
share/musikcube/musikcubed \
share/musikcube/plugins/*.so
-.include <bsd.port.options.mk>
-
-.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1300079
-USES+= ncurses
-CMAKE_ARGS+= -DNCURSES_DISABLE_LIB_SUFFIXES=false
-CMAKE_ON+= FREEBSD_USE_BASE_NCURSES
-.else
-USES+= ncurses:port
-CFLAGS+= -I${LOCALBASE}/include/ncurses
-CMAKE_ARGS+= -DNCURSES_DISABLE_LIB_SUFFIXES=true
-CMAKE_OFF+= FREEBSD_USE_BASE_NCURSES
-.endif
-
.include <bsd.port.mk>
diff --git a/multimedia/obs-studio/Makefile b/multimedia/obs-studio/Makefile
index 6772c4ef7315..92f32dc5be3e 100644
--- a/multimedia/obs-studio/Makefile
+++ b/multimedia/obs-studio/Makefile
@@ -9,8 +9,6 @@ WWW= https://obsproject.com/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
-BROKEN_FreeBSD_12= fatal error: 'sys/eventfd.h' file not found
-
BUILD_DEPENDS= v4l_compat>=0:multimedia/v4l_compat \
swig:devel/swig
LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \
diff --git a/multimedia/pipewire/files/patch-src_modules_module-netjack2_peer.c b/multimedia/pipewire/files/patch-src_modules_module-netjack2_peer.c
deleted file mode 100644
index c815c5c7b85b..000000000000
--- a/multimedia/pipewire/files/patch-src_modules_module-netjack2_peer.c
+++ /dev/null
@@ -1,23 +0,0 @@
-Drop after FreeBSD 12.4 EOL around 2023-12-31.
-https://cgit.freebsd.org/src/commit/?id=1dd126163b94
-
-In file included from ../src/modules/module-netjack2-manager.c:38:
-../src/modules/module-netjack2/peer.c:2:10: fatal error: 'byteswap.h' file not found
-#include <byteswap.h>
- ^~~~~~~~~~~~
-
---- src/modules/module-netjack2/peer.c.orig 2023-10-06 09:37:06 UTC
-+++ src/modules/module-netjack2/peer.c
-@@ -1,5 +1,12 @@
-
-+#if __has_include(<byteswap.h>)
- #include <byteswap.h>
-+#else
-+#include <sys/endian.h>
-+#define bswap_16(x) bswap16(x)
-+#define bswap_32(x) bswap32(x)
-+#define bswap_64(x) bswap64(x)
-+#endif
-
- #ifdef HAVE_OPUS_CUSTOM
- #include <opus/opus.h>
diff --git a/multimedia/xawtv/Makefile b/multimedia/xawtv/Makefile
index 723fa7a3c8e2..166b93eb6eb0 100644
--- a/multimedia/xawtv/Makefile
+++ b/multimedia/xawtv/Makefile
@@ -21,19 +21,13 @@ USES= cpe gmake iconv jpeg motif ncurses perl5 tar:bzip2 pkgconfig xorg
CPE_VENDOR= linuxtv
-OPTIONS_DEFINE= AALIB BKTR DV ZVBI
+OPTIONS_DEFINE= AALIB DV ZVBI
OPTIONS_DEFINE_i386= MMX
-OPTIONS_DEFAULT= AALIB BKTR
-.if !exists(/usr/include/dev/bktr/ioctl_bt848.h)
-OPTIONS_EXCLUDE= BKTR
-.endif
+OPTIONS_DEFAULT= AALIB
OPTIONS_SUB= yes
-BKTR_DESC= bktr(4) support
ZVBI_DESC= Enable libzvbi support
-BKTR_MAKE_ARGS= HAVE_BKTR=yes
-
GNU_CONFIGURE= yes
USE_XORG= x11 xaw
CPPFLAGS+= -I${WRKSRC}/common
diff --git a/multimedia/xawtv/files/patch-Makefile.in b/multimedia/xawtv/files/patch-Makefile.in
index 94d66b488e2c..27d0704bce9a 100644
--- a/multimedia/xawtv/files/patch-Makefile.in
+++ b/multimedia/xawtv/files/patch-Makefile.in
@@ -1,6 +1,6 @@
---- Makefile.in.orig 2013-04-02 15:19:10.000000000 +0200
-+++ Makefile.in 2013-05-15 11:20:52.000000000 +0200
-@@ -68,25 +68,12 @@
+--- Makefile.in.orig 2020-05-15 23:32:25 UTC
++++ Makefile.in
+@@ -69,24 +69,11 @@ LIBV4L := @LIBV4L@
FOUND_EXPLAIN := @FOUND_EXPLAIN@
# build final cflags
@@ -19,11 +19,10 @@
# for gcc3
#CFLAGS += -std-gnu99
-
+-
-# shared objects need -fPIC
-%.so : CFLAGS += -fPIC
-%.so : CXXFLAGS += -fPIC
--
+
# libraries
LDLIBS := @LDLIBS@
-
diff --git a/multimedia/xawtv/files/patch-common__vbi-data.c b/multimedia/xawtv/files/patch-common__vbi-data.c
index 33471b7fde5e..ce6027182d1e 100644
--- a/multimedia/xawtv/files/patch-common__vbi-data.c
+++ b/multimedia/xawtv/files/patch-common__vbi-data.c
@@ -1,6 +1,6 @@
---- common/vbi-data.c.orig Tue Feb 10 22:07:49 2004
-+++ common/vbi-data.c Tue Feb 10 22:09:03 2004
-@@ -71,8 +71,11 @@
+--- common/vbi-data.c.orig 2020-05-15 23:32:25 UTC
++++ common/vbi-data.c
+@@ -86,8 +86,11 @@ vbi_open(char *dev, int debug, int sim)
vbi->cap = vbi_capture_v4l2_new(dev,16,&services,-1,&vbi->err,debug);
if (NULL == vbi->cap) {
vbi->cap = vbi_capture_v4l_new(dev,16,&services,-1,&vbi->err,debug);
diff --git a/multimedia/xawtv/files/patch-configure b/multimedia/xawtv/files/patch-configure
index fb42a4104330..3b5a3d09664e 100644
--- a/multimedia/xawtv/files/patch-configure
+++ b/multimedia/xawtv/files/patch-configure
@@ -1,6 +1,6 @@
---- configure.orig 2013-04-02 15:20:33.000000000 +0200
-+++ configure 2013-05-15 11:26:05.000000000 +0200
-@@ -5244,7 +5244,7 @@
+--- configure.orig 2020-05-15 23:35:58 UTC
++++ configure
+@@ -5296,7 +5296,7 @@ if ${ac_cv_lib_zvbi_vbi_capture_fd+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
@@ -9,7 +9,7 @@
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-@@ -5277,7 +5277,7 @@
+@@ -5329,7 +5329,7 @@ $as_echo "$ac_cv_lib_zvbi_vbi_capture_fd" >&6; }
if test "x$ac_cv_lib_zvbi_vbi_capture_fd" = xyes; then :
$as_echo "#define HAVE_ZVBI 1" >>confdefs.h
@@ -18,7 +18,7 @@
fi
else
-@@ -5379,7 +5379,7 @@
+@@ -5431,7 +5431,7 @@ $as_echo "$ac_cv_lib_dv_dv_decoder_new" >&6; }
if test "x$ac_cv_lib_dv_dv_decoder_new" = xyes; then :
$as_echo "#define HAVE_DV 1" >>confdefs.h
@@ -27,8 +27,8 @@
fi
else
-@@ -5914,23 +5914,14 @@
-
+@@ -5966,23 +5966,14 @@ VERSION="`head -1 $srcdir/Changes`"
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 config directory" >&5
$as_echo_n "checking for X11 config directory... " >&6; }
-x11conf=/usr/lib/X11
@@ -38,8 +38,8 @@
+x11conf=/etc/X11
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $x11conf" >&5
$as_echo "$x11conf" >&6; }
-
-
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 app-defaults directory" >&5
$as_echo_n "checking for X11 app-defaults directory... " >&6; }
-resdir=/usr/lib/X11
@@ -52,5 +52,4 @@
+resdir=/usr/X11R6/lib/X11
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $resdir/app-defaults" >&5
$as_echo "$resdir/app-defaults" >&6; }
-
-
+
diff --git a/multimedia/xawtv/files/patch-console__fbtools.c b/multimedia/xawtv/files/patch-console__fbtools.c
index 478e5e96008b..8d7ffe337009 100644
--- a/multimedia/xawtv/files/patch-console__fbtools.c
+++ b/multimedia/xawtv/files/patch-console__fbtools.c
@@ -1,5 +1,5 @@
---- console/fbtools.c.orig Tue Feb 10 22:40:55 2004
-+++ console/fbtools.c Tue Feb 10 22:42:03 2004
+--- console/fbtools.c.orig 2020-05-15 23:32:25 UTC
++++ console/fbtools.c
@@ -2,6 +2,7 @@
* some generic framebuffer device stuff
*
@@ -8,7 +8,7 @@
#include <stdio.h>
#include <stdlib.h>
-@@ -521,3 +522,4 @@
+@@ -523,3 +524,4 @@ fb_catch_exit_signals(void)
fprintf(stderr,"Oops: %s\n",sys_siglist[termsig]);
exit(42);
}
diff --git a/multimedia/xawtv/files/patch-console__scantv.c b/multimedia/xawtv/files/patch-console__scantv.c
index 968457a392a1..26c2a0abc3a7 100644
--- a/multimedia/xawtv/files/patch-console__scantv.c
+++ b/multimedia/xawtv/files/patch-console__scantv.c
@@ -1,6 +1,6 @@
---- console/scantv.c.orig Wed Feb 11 23:14:16 2004
-+++ console/scantv.c Wed Feb 11 23:15:04 2004
-@@ -245,7 +245,11 @@
+--- console/scantv.c.orig 2020-05-15 23:32:25 UTC
++++ console/scantv.c
+@@ -261,7 +261,11 @@ main(int argc, char **argv)
fprintf(stderr,"no station\n");
continue;
}
diff --git a/multimedia/xawtv/files/patch-console__showqt.c b/multimedia/xawtv/files/patch-console__showqt.c
index 970608babebe..e357719a8d41 100644
--- a/multimedia/xawtv/files/patch-console__showqt.c
+++ b/multimedia/xawtv/files/patch-console__showqt.c
@@ -1,8 +1,8 @@
---- console/showqt.c.orig Tue Nov 19 23:49:53 2002
-+++ console/showqt.c Tue Nov 19 23:57:26 2002
-@@ -11,6 +11,15 @@
- #include <inttypes.h>
- #include <time.h>
+--- console/showqt.c.orig 2020-05-15 23:32:25 UTC
++++ console/showqt.c
+@@ -16,6 +16,15 @@
+ # define PRIx64 "llx"
+ #endif
+#if !defined(PRId64)
+#define PRId64 "lld"
@@ -14,5 +14,5 @@
+
+
#if BYTE_ORDER == LITTLE_ENDIAN
- # define SWAP2(x) (((x>>8) & 0x00ff) |\
- ((x<<8) & 0xff00))
+ # define SWAP2(x) ((((uint16_t)x>>8) & (uint16_t)0x00ff) |\
+ (((uint16_t)x<<8) & (uint16_t)0xff00))
diff --git a/multimedia/xawtv/files/patch-console__vbi-tty.c b/multimedia/xawtv/files/patch-console__vbi-tty.c
index 1265408050b0..f156032d7902 100644
--- a/multimedia/xawtv/files/patch-console__vbi-tty.c
+++ b/multimedia/xawtv/files/patch-console__vbi-tty.c
@@ -1,5 +1,5 @@
---- console/vbi-tty.c.orig Tue Feb 10 22:41:06 2004
-+++ console/vbi-tty.c Tue Feb 10 22:42:03 2004
+--- console/vbi-tty.c.orig 2020-05-15 23:32:25 UTC
++++ console/vbi-tty.c
@@ -19,7 +19,7 @@
#include <sys/types.h>
#include <sys/ioctl.h>
@@ -9,7 +9,7 @@
#include "vbi-data.h"
#include "vbi-tty.h"
-@@ -65,7 +65,7 @@
+@@ -65,7 +65,7 @@ static void tty_goto(int x, int y)
}
/* --------------------------------------------------------------------- */
@@ -18,7 +18,7 @@
static int have_fb = 0;
static int fb_fmt = VBI_PIXFMT_RGBA32_LE;
static int switch_last;
-@@ -74,7 +74,7 @@
+@@ -74,7 +74,7 @@ static void fb_clear(void)
{
fb_memset(fb_mem+fb_mem_offset,0,fb_fix.smem_len);
}
@@ -27,7 +27,7 @@
/* --------------------------------------------------------------------- */
struct vbi_tty {
-@@ -133,6 +133,7 @@
+@@ -133,6 +133,7 @@ vbi_render_page(struct vbi_tty *tty)
vbi_fetch_vt_page(tty->vbi->dec,&tty->pg,tty->pgno,tty->subno,
VBI_WST_LEVEL_1p5,25,1);
vbi_fix_head(tty,tty->pg.text);
@@ -35,9 +35,9 @@
if (have_fb) {
vbi_draw_vt_page_region(&tty->pg, fb_fmt,
fb_mem + fb_mem_offset,
-@@ -142,13 +143,16 @@
+@@ -142,13 +143,16 @@ vbi_render_page(struct vbi_tty *tty)
0,1);
-
+
} else {
+#endif
len = vbi_export_txt(data,nl_langinfo(CODESET),25*41*8,
@@ -52,7 +52,7 @@
}
static void
-@@ -166,6 +170,7 @@
+@@ -169,6 +173,7 @@ vbi_render_head(struct vbi_tty *tty, int pgno, int sub
vbi_fetch_vt_page(tty->vbi->dec,&pg,pgno,subno,
VBI_WST_LEVEL_1p5,1,1);
vbi_fix_head(tty,pg.text);
@@ -60,9 +60,9 @@
if (have_fb) {
vbi_draw_vt_page_region(&pg, fb_fmt,
fb_mem + fb_mem_offset,
-@@ -175,13 +180,16 @@
+@@ -177,13 +182,16 @@ vbi_render_head(struct vbi_tty *tty, int pgno, int sub
+ pg.columns, 1,
0,1);
-
} else {
+#endif
len = vbi_export_txt(data,nl_langinfo(CODESET),41*8,
@@ -77,7 +77,7 @@
}
static void
-@@ -232,7 +240,7 @@
+@@ -234,7 +242,7 @@ void vbi_tty(char *device, int debug, int sim)
vbi = vbi_open(device,debug,sim);
if (NULL == vbi)
exit(1);
@@ -86,7 +86,7 @@
if (0 /* 0 == fb_probe() */ ) {
have_fb = 1;
fb_init(NULL,NULL,0);
-@@ -240,14 +248,21 @@
+@@ -242,14 +250,21 @@ void vbi_tty(char *device, int debug, int sim)
fb_switch_init();
switch_last = fb_switch_state;
} else {
@@ -108,7 +108,7 @@
tty = malloc(sizeof(*tty));
memset(tty,0,sizeof(*tty));
-@@ -264,14 +279,18 @@
+@@ -266,14 +281,18 @@ void vbi_tty(char *device, int debug, int sim)
rc = select(vbi->fd+1,&set,NULL,NULL,&tv);
if (-1 == rc) {
tty_restore();
@@ -127,7 +127,7 @@
tty_restore();
fprintf(stderr,"oops: timeout\n");
exit(1);
-@@ -289,7 +308,11 @@
+@@ -291,7 +310,11 @@ void vbi_tty(char *device, int debug, int sim)
break;
case 'L' & 0x1f:
/* refresh */
@@ -139,7 +139,7 @@
vbi_render_page(tty);
break;
case 'i':
-@@ -339,8 +362,10 @@
+@@ -341,8 +364,10 @@ void vbi_tty(char *device, int debug, int sim)
vbi_hasdata(vbi);
}
}
diff --git a/multimedia/xawtv/files/patch-libng__contrib-plugins__Subdir.mk b/multimedia/xawtv/files/patch-libng__contrib-plugins__Subdir.mk
index 999c06b91421..99675dcd4118 100644
--- a/multimedia/xawtv/files/patch-libng__contrib-plugins__Subdir.mk
+++ b/multimedia/xawtv/files/patch-libng__contrib-plugins__Subdir.mk
@@ -1,6 +1,6 @@
---- libng/contrib-plugins/Subdir.mk.orig Thu Feb 13 15:15:28 2003
-+++ libng/contrib-plugins/Subdir.mk Thu Feb 13 15:15:34 2003
-@@ -18,7 +18,7 @@
+--- libng/contrib-plugins/Subdir.mk.orig 2020-05-15 23:32:25 UTC
++++ libng/contrib-plugins/Subdir.mk
+@@ -18,7 +18,7 @@ libng/contrib-plugins/snd-alsa.so : LDLIBS := $(ALSA_L
# linear-blend has mmx support ...
ifeq ($(USE_MMX),yes)
diff --git a/multimedia/xawtv/files/patch-libng__plugins__drv0-bsd.c b/multimedia/xawtv/files/patch-libng__plugins__drv0-bsd.c
index 62801a53a196..84e15701f3c7 100644
--- a/multimedia/xawtv/files/patch-libng__plugins__drv0-bsd.c
+++ b/multimedia/xawtv/files/patch-libng__plugins__drv0-bsd.c
@@ -1,5 +1,5 @@
---- libng/plugins/drv0-bsd.c.orig Wed Mar 12 17:45:56 2003
-+++ libng/plugins/drv0-bsd.c Tue May 24 11:32:55 2005
+--- libng/plugins/drv0-bsd.c.orig 2020-05-15 23:32:25 UTC
++++ libng/plugins/drv0-bsd.c
@@ -23,10 +23,12 @@
#ifdef HAVE_DEV_IC_BT8XX_H
@@ -15,7 +15,7 @@
#endif
#include "grab-ng.h"
-@@ -127,7 +129,7 @@
+@@ -129,7 +131,7 @@ static struct STRTAB inputs[] = {
{ 3, "CSVIDEO" },
{ -1, NULL }
};
@@ -24,7 +24,7 @@
METEOR_INPUT_DEV1,
METEOR_INPUT_DEV0,
METEOR_INPUT_DEV_SVIDEO,
-@@ -144,7 +146,7 @@
+@@ -146,7 +148,7 @@ static struct STRTAB norms[] = {
{ 6, "RSVD" },
{ -1, NULL }
};
@@ -33,7 +33,7 @@
BT848_IFORM_F_NTSCM,
BT848_IFORM_F_NTSCJ,
BT848_IFORM_F_PALBDGHI,
-@@ -160,7 +162,7 @@
+@@ -162,7 +164,7 @@ static struct STRTAB audio[] = {
{ 2, "Intern" },
{ -1, NULL }
};
@@ -42,7 +42,7 @@
AUDIO_TUNER,
AUDIO_EXTERN,
AUDIO_INTERN,
-@@ -242,7 +244,7 @@
+@@ -244,7 +246,7 @@ static int signal_off = METEOR_SIG_MODE_MASK;
#define PREFIX "bktr: ioctl: "
static int
@@ -51,7 +51,7 @@
{
int rc;
-@@ -296,7 +298,7 @@
+@@ -298,7 +300,7 @@ xioctl(int fd, int cmd, void *arg)
break;
}
default:
@@ -60,7 +60,7 @@
break;
}
fprintf(stderr,": %s\n",(rc == 0) ? "ok" : strerror(errno));
-@@ -474,7 +476,7 @@
+@@ -482,7 +484,7 @@ static void bsd_get_min_size(void *handle, int *min_wi
/* ---------------------------------------------------------------------- */
static int
@@ -69,7 +69,7 @@
{
switch (id) {
case ATTR_ID_HUE:
-@@ -502,19 +504,20 @@
+@@ -510,19 +512,20 @@ bsd_get_range(int id, int *get, int *set)
static int bsd_read_attr(struct ng_attribute *attr)
{
struct bsd_handle *h = attr->handle;
@@ -93,7 +93,7 @@
if (arg == inputs_map[i])
value = i;
break;
-@@ -532,7 +535,7 @@
+@@ -540,7 +543,7 @@ static int bsd_read_attr(struct ng_attribute *attr)
break;
case ATTR_ID_COUNT+1: /* AUDIO */
if (-1 != xioctl(h->tfd, BT848_GAUDIO, &arg))
@@ -102,7 +102,7 @@
if (arg == audio_map[i])
value = i;
break;
-@@ -545,7 +548,8 @@
+@@ -553,7 +556,8 @@ static int bsd_read_attr(struct ng_attribute *attr)
static void bsd_write_attr(struct ng_attribute *attr, int value)
{
struct bsd_handle *h = attr->handle;
@@ -112,7 +112,7 @@
switch (attr->id) {
case ATTR_ID_NORM:
-@@ -599,7 +603,15 @@
+@@ -607,7 +611,15 @@ static void bsd_setfreq(void *handle, unsigned long fr
static int bsd_tuned(void *handle)
{
diff --git a/multimedia/xawtv/files/patch-libng_plugins_Subdir.mk b/multimedia/xawtv/files/patch-libng_plugins_Subdir.mk
index 4360391109d0..d5933e852265 100644
--- a/multimedia/xawtv/files/patch-libng_plugins_Subdir.mk
+++ b/multimedia/xawtv/files/patch-libng_plugins_Subdir.mk
@@ -1,15 +1,12 @@
---- libng/plugins/Subdir.mk.orig 2020-03-18 04:43:15 UTC
+--- libng/plugins/Subdir.mk.orig 2020-05-15 23:32:25 UTC
+++ libng/plugins/Subdir.mk
-@@ -28,9 +28,11 @@ TARGETS-plugins += \
+@@ -28,9 +28,7 @@ TARGETS-plugins += \
libng/plugins/drv0-libv4l.so
endif
ifeq ($(FOUND_OS),bsd)
-+ifeq ($(HAVE_BKTR),yes)
- TARGETS-plugins += \
+-TARGETS-plugins += \
- libng/plugins/drv0-bsd.so \
- libng/plugins/snd-oss.so
-+ libng/plugins/drv0-bsd.so
-+endif
+TARGETS-plugins += libng/plugins/snd-oss.so
endif
diff --git a/multimedia/xawtv/files/patch-scripts-subtitles b/multimedia/xawtv/files/patch-scripts-subtitles
index e82b20a95853..f663bf811be9 100644
--- a/multimedia/xawtv/files/patch-scripts-subtitles
+++ b/multimedia/xawtv/files/patch-scripts-subtitles
@@ -1,12 +1,12 @@
---- scripts/subtitles.orig 2014-06-13 07:05:00.434754238 +0200
-+++ scripts/subtitles 2014-06-13 07:06:45.175747077 +0200
+--- scripts/subtitles.orig 2020-05-15 23:32:25 UTC
++++ scripts/subtitles
@@ -1,4 +1,4 @@
-#! /bin/bash
+#! /bin/sh
#
# display teletext subtitles (PAL) in xawtv
# required: alevt-cap, xawtv-remote
-@@ -12,7 +12,7 @@
+@@ -12,7 +12,7 @@ device="/dev/vbi0"
##########################################################################
# helpers
diff --git a/multimedia/xawtv/files/patch-x11__Subdir.mk b/multimedia/xawtv/files/patch-x11__Subdir.mk
index 3b528cedfef5..9f47ebac8f9a 100644
--- a/multimedia/xawtv/files/patch-x11__Subdir.mk
+++ b/multimedia/xawtv/files/patch-x11__Subdir.mk
@@ -1,6 +1,6 @@
---- x11/Subdir.mk.orig Mon Jan 12 18:56:17 2004
-+++ x11/Subdir.mk Mon Feb 9 18:49:10 2004
-@@ -116,8 +116,8 @@
+--- x11/Subdir.mk.orig 2020-05-15 23:32:25 UTC
++++ x11/Subdir.mk
+@@ -117,8 +117,8 @@ x11/v4lctl : LDFLAGS := $(DLFLAGS)
x11/pia : LDFLAGS := $(DLFLAGS)
# compile flags
@@ -11,7 +11,7 @@
# i18n
-@@ -128,12 +128,12 @@
+@@ -129,12 +129,12 @@ MOTV-app := $(patsubst %,x11/MoTV.%.ad,$(LANGUAGES))
# local targets
x11/complete-xaw.o: x11/complete.c
@$(echo_compile_c)
diff --git a/multimedia/xawtv/pkg-plist b/multimedia/xawtv/pkg-plist
index 947c45c4f52b..ccb89028093c 100644
--- a/multimedia/xawtv/pkg-plist
+++ b/multimedia/xawtv/pkg-plist
@@ -20,7 +20,6 @@ bin/xawtv-remote
lib/xawtv/bilinear.so
lib/xawtv/conv-mjpeg.so
lib/xawtv/cubic.so
-%%BKTR%%lib/xawtv/drv0-bsd.so
lib/xawtv/flt-disor.so
lib/xawtv/flt-gamma.so
lib/xawtv/flt-invert.so
diff --git a/net-im/libquotient/files/patch-Quotient_qt__connection__util.h b/net-im/libquotient/files/patch-Quotient_qt__connection__util.h
deleted file mode 100644
index 0c4499ceca0e..000000000000
--- a/net-im/libquotient/files/patch-Quotient_qt__connection__util.h
+++ /dev/null
@@ -1,52 +0,0 @@
-The call std::bind_front() below only works from LLVM 14 on because libc++
-needs https://reviews.llvm.org/D107199 to work correctly, otherwise uses of
-connectSingleShot() fail. See net-im/neochat for example [1]:
-
-In file included from /wrkdirs/usr/ports/net-im/neochat/work/neochat-23.04.2/src/controller.cpp:5:
-In file included from /wrkdirs/usr/ports/net-im/neochat/work/neochat-23.04.2/src/controller.h:6:
-In file included from /usr/local/include/qt5/QtCore/QObject:1:
-In file included from /usr/local/include/qt5/QtCore/qobject.h:46:
-In file included from /usr/local/include/qt5/QtCore/qobjectdefs.h:48:
-In file included from /usr/local/include/qt5/QtCore/qnamespace.h:43:
-In file included from /usr/local/include/qt5/QtCore/qglobal.h:142:
-In file included from /usr/include/c++/v1/algorithm:653:
-In file included from /usr/include/c++/v1/functional:495:
-In file included from /usr/include/c++/v1/__functional/bind_front.h:14:
-/usr/include/c++/v1/__functional/perfect_forward.h:77:9: error: no matching constructor for initialization of 'tuple<void (Controller::*)(), Controller *>'
- __bound_(_VSTD::forward<_BoundArgs>(__bound)...) { }
- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-/usr/local/include/Quotient/qt_connection_util.h:22:14: note: in instantiation of function template specialization 'std::__perfect_forward_impl<std::__bind_front_op, std::__tuple_types<void (Controller::*)(), Controller *>, std::__tuple_indices<0, 1>>::__perfect_forward_impl<std::__perfect_forward_impl<std::__bind_front_op, std::__tuple_types<void (Controller::*)(), Controller *>, std::__tuple_indices<0, 1>> &>' requested here
- [slotLike, pConn = std::move(pConn)](const auto&... args)
- ^
-/usr/local/include/Quotient/qt_connection_util.h:93:23: note: in instantiation of function template specialization 'Quotient::_impl::connect<Quotient::_impl::SingleShot, Quotient::Connection, void (Quotient::Connection::*)(), Controller, std::__perfect_forward_impl<std::__bind_front_op, std::__tuple_types<void (Controller::*)(), Controller *>, std::__tuple_indices<0, 1>>>' requested here
- return _impl::connect<_impl::SingleShot>(
- ^
-/wrkdirs/usr/ports/net-im/neochat/work/neochat-23.04.2/src/controller.cpp:372:25: note: in instantiation of function template specialization 'Quotient::connectSingleShot<Controller, void (Controller::*)(), Quotient::Connection, void (Quotient::Connection::*)()>' requested here
- connectSingleShot(connection, &Connection::syncDone, this, &Controller::initiated);
- ^
-
-[1] https://pkg-status.freebsd.org/beefy2/data/124amd64-quarterly/8898bf465b47/logs/neochat-23.04.2.log
-
---- Quotient/qt_connection_util.h
-+++ Quotient/qt_connection_util.h
-@@ -3,6 +3,8 @@
-
- #pragma once
-
-+#include <sys/param.h> // For __FreeBSD_version
-+
- #include "function_traits.h"
-
- #include <QtCore/QPointer>
-@@ -81,7 +83,10 @@ inline auto connectSingleShot(auto* sender, auto signal, ContextT* context,
- // object has to be pre-bound to the slot to make it self-contained
- if constexpr (_impl::PmfSlot<SlotT, ContextT>) {
- auto&& boundSlot =
--# if __cpp_lib_bind_front // Needs Apple Clang 13 (other platforms are fine)
-+# if __cpp_lib_bind_front && \
-+ (!defined(__FreeBSD_version) || __FreeBSD_version >= 1301504)
-+ // This requires LLVM >= 14, this only works with libc++ commit
-+ // https://reviews.llvm.org/D107199.
- std::bind_front(slot, context);
- # else
- [context, slot](const auto&... args)
diff --git a/net-im/telegram-purple/Makefile b/net-im/telegram-purple/Makefile
index 6dfe6e3d8981..48e366b233ab 100644
--- a/net-im/telegram-purple/Makefile
+++ b/net-im/telegram-purple/Makefile
@@ -16,7 +16,6 @@ EXPIRATION_DATE=2024-03-17
BROKEN_armv6= fails to link: undefined reference to 'backtrace'
BROKEN_powerpc64= fails to compile: Assertion failed: (get_int () == TLS_SCHEMA_V2), function parse_tlo_file, file generate.c, line 2832.
-BROKEN_sparc64= fails to compile: assertion fails
LIB_DEPENDS= libgcrypt.so:security/libgcrypt \
libwebp.so:graphics/webp \
diff --git a/net-mgmt/monitoring-plugins/Makefile b/net-mgmt/monitoring-plugins/Makefile
index aacf9dfddfa7..194c8ae74d74 100644
--- a/net-mgmt/monitoring-plugins/Makefile
+++ b/net-mgmt/monitoring-plugins/Makefile
@@ -122,11 +122,7 @@ NAGIOSCGIURL?= ${NAGIOSHTMURL}/cgi-bin
.include <bsd.port.options.mk>
-.if ${OSVERSION} < 1300041
-_PING6_CMD= /sbin/ping6 -n -X %d -c %d %s
-.else
_PING6_CMD= /sbin/ping6 -n -t %d -c %d %s
-.endif
.if !exists(/usr/bin/ssh) && empty(PORT_OPTIONS:MSSH_PORTABLE)
PLIST_SUB+= SSH="@comment "
diff --git a/net-mgmt/nagios-plugins/Makefile b/net-mgmt/nagios-plugins/Makefile
index 49a2819e40ad..93a1d39bb466 100644
--- a/net-mgmt/nagios-plugins/Makefile
+++ b/net-mgmt/nagios-plugins/Makefile
@@ -31,7 +31,7 @@ CONFIGURE_ARGS+= --datadir=${PREFIX}/share \
# Also, force some commands with their expected paths so that they don't get
# disabled.
CONFIGURE_ARGS+= --with-ping-command="/sbin/ping -n -t %d -c %d %s" \
- --with-ping6-command="${_PING6_CMD}" \
+ --with-ping6-command="/sbin/ping6 -n -t %d -c %d %s" \
ac_cv_path_PATH_TO_PING6=/sbin/ping6 \
ac_cv_path_PATH_TO_PING=/sbin/ping \
ac_cv_path_PATH_TO_QMAIL_QSTAT=/var/qmail/bin/qmail-qstat \
@@ -126,12 +126,6 @@ NAGIOSCGIURL?= ${NAGIOSHTMURL}/cgi-bin
.include <bsd.port.options.mk>
-.if ${OSVERSION} < 1300041
-_PING6_CMD= /sbin/ping6 -n -X %d -c %d %s
-.else
-_PING6_CMD= /sbin/ping6 -n -t %d -c %d %s
-.endif
-
.if !exists(/usr/bin/ssh) && empty(PORT_OPTIONS:MSSH_PORTABLE)
PLIST_SUB+= SSH="@comment "
.else
diff --git a/net-mgmt/nfs-exporter/Makefile b/net-mgmt/nfs-exporter/Makefile
index b23a14675117..be4197f8d1b4 100644
--- a/net-mgmt/nfs-exporter/Makefile
+++ b/net-mgmt/nfs-exporter/Makefile
@@ -25,13 +25,7 @@ BUILD_DEPENDS= llvm-config${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
USES= cargo
USE_RC_SUBR= nfs_exporter
-.include <bsd.port.options.mk>
-
-.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1302000
SUB_LIST= USER=nobody
-.else
-SUB_LIST= USER=root
-.endif
PLIST_FILES= bin/${PORTNAME} \
man/man8/${PORTNAME}.8.gz
diff --git a/net-p2p/qbittorrent/Makefile b/net-p2p/qbittorrent/Makefile
index 8fe4f24b5f15..436cde2a92e8 100644
--- a/net-p2p/qbittorrent/Makefile
+++ b/net-p2p/qbittorrent/Makefile
@@ -10,8 +10,6 @@ WWW= https://www.qbittorrent.org/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
-BROKEN_FreeBSD_12_powerpc64= fails to build: ./base/tristatebool.h:44:5: 'constexpr' constructor does not have empty body
-
CXXFLAGS+= -DBOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED # error: "Boost.Stacktrace requires `_Unwind_Backtrace` function. Define `_GNU_SOURCE` macro or `BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED` if _Unwind_Backtrace is available without `_GNU_SOURCE`."
FLAVORS= default nox
diff --git a/net/asterisk18/Makefile b/net/asterisk18/Makefile
index 3d607cfe3edc..30479b87e0bd 100644
--- a/net/asterisk18/Makefile
+++ b/net/asterisk18/Makefile
@@ -67,7 +67,6 @@ OPTIONS_DEFINE_i386= DAHDI GEOLOCATION
OPTIONS_DEFINE_powerpc= DAHDI
OPTIONS_DEFINE_powerpc64= DAHDI
OPTIONS_DEFINE_powerpc64le= DAHDI
-OPTIONS_DEFINE_sparc64= DAHDI
OPTIONS_DEFAULT= CURL FREETDS GSM LUA MACRO MP3PLAYER NEWT ODBC OPUS MYSQL PGSQL \
PJSIP PORTAUDIO RADIUS SNMP SPANDSP SPEEX SRTP URIPARSER \
VORBIS XMLDOC
@@ -76,7 +75,6 @@ OPTIONS_DEFAULT_i386= DAHDI XMPP
OPTIONS_DEFAULT_powerpc= DAHDI XMPP
OPTIONS_DEFAULT_powerpc64= DAHDI XMPP
OPTIONS_DEFAULT_powerpc64le= DAHDI XMPP
-OPTIONS_DEFAULT_sparc64= DAHDI XMPP
OPTIONS_GROUP= CODECS DATABASE
OPTIONS_GROUP_CODECS= GSM NEWG711 OPUS SPEEX VORBIS
diff --git a/net/bird2/Makefile b/net/bird2/Makefile
index 9df94138b50e..5635cf968c84 100644
--- a/net/bird2/Makefile
+++ b/net/bird2/Makefile
@@ -64,9 +64,6 @@ RPKI_LIB_DEPENDS= libssh.so:security/libssh
.if ${FLAVOR:U} == netlink
CONFIGURE_ARGS+=--with-sysconfig=bsd-netlink
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1302000
-IGNORE= No netlink support
-.endif
.endif
.include <bsd.port.mk>
diff --git a/net/bsdrcmds/Makefile b/net/bsdrcmds/Makefile
index 66456f61ffd3..4fcb32a403ee 100644
--- a/net/bsdrcmds/Makefile
+++ b/net/bsdrcmds/Makefile
@@ -13,6 +13,7 @@ LICENSE= BSD3CLAUSE
USES= uidfix
MAKE_ARGS+= BINOWN=${BINOWN} BINMODE=${BINMODE}
+MAKE_ENV+= MK_WERROR=no
OPTIONS_DEFINE= IPV6 LIBBLACKLIST
OPTIONS_DEFAULT= LIBBLACKLIST
@@ -22,12 +23,4 @@ IPV6_MAKE_ARGS= USE_IPV6=yes
LIBBLACKLIST_DESC= libblacklist(3) support for rlogind(8) and rshd(8)
LIBBLACKLIST_MAKE_ARGS= USE_LIBBLACKLIST=yes
-.include <bsd.port.options.mk>
-
-.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300134
-MAKE_ENV+= MK_WERROR=no
-.else
-MAKE_ENV+= NO_WERROR=1
-.endif
-
.include <bsd.port.mk>
diff --git a/net/freebsd-telnetd/Makefile b/net/freebsd-telnetd/Makefile
index 8604dd66a0ff..16128a04a2d8 100644
--- a/net/freebsd-telnetd/Makefile
+++ b/net/freebsd-telnetd/Makefile
@@ -19,21 +19,14 @@ MAKE_ARGS+= BINOWN=${BINOWN} BINMODE=${BINMODE}
MAKE_ENV+= MAKESYSPATH=/usr/src/share/mk \
BINDIR=${PREFIX}/libexec \
MANDIR=${PREFIX}/man/man \
- TELNETDIR=${WRKSRC}/contrib/telnet
+ TELNETDIR=${WRKSRC}/contrib/telnet \
+ MK_WERROR=no
OPTIONS_DEFINE= IPV6
OPTIONS_DEFAULT= IPV6
# WRKSRC_SUBDIR= libexec/telnetd
-.include <bsd.port.options.mk>
-
-.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300134
-MAKE_ENV+= MK_WERROR=no
-.else
-MAKE_ENV+= NO_WERROR=1
-.endif
-
post-patch:
@${CP} ${FILESDIR}/Makefile.in ${WRKSRC}/Makefile
diff --git a/net/freeipa-client/Makefile b/net/freeipa-client/Makefile
index 616f5f4abf59..2e61673bde8a 100644
--- a/net/freeipa-client/Makefile
+++ b/net/freeipa-client/Makefile
@@ -37,9 +37,6 @@ CONFIGURE_ARGS= --disable-dependency-tracking \
# Don't bytecode python files
MAKE_ENV= PYTHONDONTWRITEBYTECODE=1
-# Mark it broken on FreeBSD 12
-BROKEN_FreeBSD_12= does not build: Package requirements (libcrypto) were not met
-
# Remove all systemd dependant things
EXTRACT_AFTER_ARGS= --exclude client/systemd --exclude daemons/dnssec \
--exclude daemons/ipa-otpd --exclude \
diff --git a/net/libcmis/Makefile b/net/libcmis/Makefile
index 1fd52d8af794..3c6f295f43c8 100644
--- a/net/libcmis/Makefile
+++ b/net/libcmis/Makefile
@@ -11,8 +11,6 @@ WWW= https://github.com/tdf/libcmis
LICENSE= LGPL20 MPL11 GPLv2
LICENSE_COMB= dual
-BROKEN_sparc64= cannot link with boost
-
BUILD_DEPENDS= cppunit-config:devel/cppunit \
${LOCALBASE}/lib/libboost_regex.a:devel/boost-libs
LIB_DEPENDS= libboost_program_options.so:devel/boost-libs \
diff --git a/net/libpcap/Makefile b/net/libpcap/Makefile
index 0ed3b526ceba..0856c7a9a240 100644
--- a/net/libpcap/Makefile
+++ b/net/libpcap/Makefile
@@ -21,7 +21,6 @@ CONFIGURE_ARGS+=--enable-dbus=no \
--with-pcap=bpf
CONFIGURE_ENV+= LEX=${LOCALBASE}/bin/flex
CFLAGS_amd64= -fPIC
-CFLAGS_sparc64= -fPIC
PLIST_SUB+= PORTVERSION=${PORTVERSION}
OPTIONS_DEFINE= IPV6 REMOTE
diff --git a/net/libpfctl/Makefile b/net/libpfctl/Makefile
index 6c7d7d234984..9473c9986510 100644
--- a/net/libpfctl/Makefile
+++ b/net/libpfctl/Makefile
@@ -38,7 +38,7 @@ do-install:
.if defined(MAINTAINER_MODE)
upload:
- for version in 12.4 13.2 14.0; \
+ for version in 13.2 14.0; \
do \
cd /usr/src/lib && \
git archive --format=tar.gz \
diff --git a/net/liveMedia/Makefile b/net/liveMedia/Makefile
index 506b47d038fd..b05e97b9c409 100644
--- a/net/liveMedia/Makefile
+++ b/net/liveMedia/Makefile
@@ -16,8 +16,6 @@ LICENSE_NAME_MAT= dated material
LICENSE_TEXT_MAT= dated material
LICENSE_PERMS_MAT= pkg-mirror dist-mirror auto-accept
-BROKEN_sparc64= Fails to compile
-
WRKSRC= ${WRKDIR}/live
HAS_CONFIGURE= yes
diff --git a/net/samba413/Makefile b/net/samba413/Makefile
index bd0fe012d640..74e7ee886beb 100644
--- a/net/samba413/Makefile
+++ b/net/samba413/Makefile
@@ -709,9 +709,6 @@ post-install: post-install-rm-junk post-install-fix-manpages
-${FIND} ${STAGEDIR}${PREFIX}/lib -name '*.so*' \
-type f -print0 | ${XARGS} -0 -n 1 -t ${STRIP_CMD}
.endif
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 # Work around bug 255626. Remove after 12.4 is EOL.
- ${RM} ${STAGEDIR}${LOCALBASE}/bin/ecp.* ${STAGEDIR}${LOCALBASE}/sbin/ecp.*
-.endif
post-install-FRUIT-off:
${RM} ${STAGEDIR}${SAMBA4_MODULEDIR}/vfs/fruit.so
diff --git a/net/samba416/Makefile b/net/samba416/Makefile
index 3509bbf20e90..577312f95222 100644
--- a/net/samba416/Makefile
+++ b/net/samba416/Makefile
@@ -12,8 +12,6 @@ WWW= https://gitlab.com/samba-freebsd/
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
-IGNORE_FreeBSD_12= only runs on FreeBSD 13.1 and above due use of O_EMPTY_PATH
-
USES= cpe
CONFLICTS_INSTALL?= samba4*
diff --git a/net/sflowtool/Makefile b/net/sflowtool/Makefile
index 7096e348b1c5..d6c4bd154eea 100644
--- a/net/sflowtool/Makefile
+++ b/net/sflowtool/Makefile
@@ -22,13 +22,6 @@ PORTEXAMPLES= sflowenable
OPTIONS_DEFINE= DOCS EXAMPLES
-.include <bsd.port.options.mk>
-
-# Patch byteswap.h where not available
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1301511
-EXTRA_PATCHES= ${PATCHDIR}/extra-patch-src_sflowtool.c
-.endif
-
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
diff --git a/net/sflowtool/files/extra-patch-src_sflowtool.c b/net/sflowtool/files/extra-patch-src_sflowtool.c
deleted file mode 100644
index b851dddedd14..000000000000
--- a/net/sflowtool/files/extra-patch-src_sflowtool.c
+++ /dev/null
@@ -1,25 +0,0 @@
---- src/sflowtool.c.orig 2023-03-23 17:36:24 UTC
-+++ src/sflowtool.c
-@@ -29,13 +29,21 @@ extern "C" {
- #include <inttypes.h>
- #include <arpa/inet.h>
- #include <netdb.h>
--#include <byteswap.h>
-+#include <sys/endian.h>
- #include <getopt.h>
-
- #include "sflow.h" /* sFlow v5 */
- #include "sflow_v2v4.h" /* sFlow v2/4 */
- #include "assert.h"
- #include "sflow_xdr.h" /* sFlow encode */
-+
-+#define __bswap_16(x) __bswap16(x)
-+#define __bswap_32(x) __bswap32(x)
-+#define __bswap_64(x) __bswap64(x)
-+
-+#define bswap_16(x) __bswap16(x)
-+#define bswap_32(x) __bswap32(x)
-+#define bswap_64(x) __bswap64(x)
-
- #define SPOOFSOURCE 1
- #define YES 1
diff --git a/net/sniffnet/Makefile b/net/sniffnet/Makefile
index 1baa3b2a2a66..2c78f8160c86 100644
--- a/net/sniffnet/Makefile
+++ b/net/sniffnet/Makefile
@@ -13,8 +13,6 @@ LICENSE_COMB= dual
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT
-BROKEN_FreeBSD_12= ld: error: undefined symbol: memfd_create
-
LIB_DEPENDS= libasound.so:audio/alsa-lib \
libfreetype.so:print/freetype2 \
libfontconfig.so:x11-fonts/fontconfig
diff --git a/net/tcplog_dumper/Makefile b/net/tcplog_dumper/Makefile
index 951664199b63..de16c33369d4 100644
--- a/net/tcplog_dumper/Makefile
+++ b/net/tcplog_dumper/Makefile
@@ -13,7 +13,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
ONLY_FOR_ARCHS= aarch64 amd64 mips64 mips64el mips64elhf mips64hf powerpc64 powerpc64le riscv64 riscv64sf
ONLY_FOR_ARCHS_REASON= only 64-bit platforms are supported
-IGNORE_FreeBSD_12=does not build
USE_GITHUB= yes
GH_ACCOUNT= Netflix
diff --git a/net/tcprtt/Makefile b/net/tcprtt/Makefile
index 6d44084d6fda..f6e6e60cc527 100644
--- a/net/tcprtt/Makefile
+++ b/net/tcprtt/Makefile
@@ -7,7 +7,6 @@ COMMENT= Measures the TCP handshake RTT using the stats(9) statistics framework
LICENSE= BSD2CLAUSE
-IGNORE_FreeBSD_12=requires kernel OSVERSION 1300062 or above
USE_GITHUB= yes
GH_ACCOUNT= KlaraSystems
GH_TAGNAME= 1c857b8bd6e071290d118c96c051fbdf7db40129
diff --git a/net/widentd/Makefile b/net/widentd/Makefile
index 92485580ec14..388cde12042b 100644
--- a/net/widentd/Makefile
+++ b/net/widentd/Makefile
@@ -12,14 +12,8 @@ LICENSE= BSD3CLAUSE
USES= ncurses uidfix tar:xz
USE_RC_SUBR= widentd
-MAKE_ENV+= BINDIR="${PREFIX}/sbin" MANDIR="${PREFIX}/man/man"
+MAKE_ENV+= BINDIR="${PREFIX}/sbin" MANDIR="${PREFIX}/man/man" MK_WERROR=no
PLIST_FILES= sbin/widentd man/man8/widentd.8.gz
.include <bsd.port.mk>
-
-.if ${OSREL:R} < 13
-MAKE_ENV+=NO_WERROR=1
-.else
-MAKE_ENV+=MK_WERROR=no
-.endif
diff --git a/net/wifibox-core/Makefile b/net/wifibox-core/Makefile
index 38fd75f908ed..5eac1d41b585 100644
--- a/net/wifibox-core/Makefile
+++ b/net/wifibox-core/Makefile
@@ -22,7 +22,6 @@ OPTIONS_SINGLE_RECOVERY= RECOVER_RESTART_VMM \
RECOVER_NONE
OPTIONS_DEFAULT= RECOVER_RESTART_VMM
-OPTIONS_EXCLUDE_FreeBSD_12= BHYVE_PLUS
RECOVER_RESTART_VMM_DESC= Restart the vmm(4) kernel module on resume
RECOVER_SUSPEND_GUEST_DESC= Stop the guest on suspend, start on resume
@@ -33,7 +32,7 @@ BHYVE_PLUS_DESC= Use bhyve+ (experimental)
.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MBHYVE_PLUS} || (${OSVERSION} < 1300000)
+.if ${PORT_OPTIONS:MBHYVE_PLUS}
RUN_DEPENDS+= bhyve+>0:sysutils/bhyve+
_BHYVE_PLUS= yes
.endif
diff --git a/net/yate/Makefile b/net/yate/Makefile
index 1c1942c31c64..2ef176d7da1e 100644
--- a/net/yate/Makefile
+++ b/net/yate/Makefile
@@ -11,7 +11,7 @@ WWW= http://yate.null.ro
LICENSE= GPLv2
-ONLY_FOR_ARCHS= amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le sparc64
+ONLY_FOR_ARCHS= amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le
LIB_DEPENDS= libasound.so:audio/alsa-lib \
libspeex.so:audio/speex \
diff --git a/net/zerotier/Makefile b/net/zerotier/Makefile
index 36df69824c9e..31625cd8b1c4 100644
--- a/net/zerotier/Makefile
+++ b/net/zerotier/Makefile
@@ -35,13 +35,8 @@ PLIST_FILES= bin/zerotier-cli bin/zerotier-idtool sbin/zerotier-one
.if ${OPSYS} == "FreeBSD"
# log output via syslog
SUB_LIST+= ZEROTIER_SYSLOG="-s debug -T zerotier"
-# after r347241 tun(4) and tap(4) have been merged to tuntap(4)
-.if (${OSVERSION} >= 1300028)
SUB_LIST+= ZEROTIER_IF_TAP="if_tuntap"
.else
-SUB_LIST+= ZEROTIER_IF_TAP="if_tap"
-.endif
-.else
# we are not on FreeBSD
SUB_LIST+= ZEROTIER_IF_TAP="if_tap" \
ZEROTIER_SYSLOG=""
diff --git a/ports-mgmt/synth/Makefile b/ports-mgmt/synth/Makefile
index 0e5a1e857fdd..2d398d7e463d 100644
--- a/ports-mgmt/synth/Makefile
+++ b/ports-mgmt/synth/Makefile
@@ -28,14 +28,6 @@ WATCHDOG_DESC= Build with watchdog monitor
WATCHDOG_EXTRA_PATCHES_OFF= ${FILESDIR}/extrapatch-nowatchdog-portscan-buildcycle.adb
-.include <bsd.port.options.mk>
-
-.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1300079
-USES+= ncurses:base
-.else
-USES+= ncurses:port
-.endif
-
.include <bsd.port.pre.mk>
post-extract:
diff --git a/print/pdf-tools/Makefile b/print/pdf-tools/Makefile
index a6c4ae05a28e..b5f4ca2dc599 100644
--- a/print/pdf-tools/Makefile
+++ b/print/pdf-tools/Makefile
@@ -12,8 +12,6 @@ WWW= https://github.com/vedang/pdf-tools
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
-BROKEN_FreeBSD_12_powerpc64= fails to configure on powerpc64 elfv1: cannot find necessary poppler-private header (see README.org)
-
BUILD_DEPENDS= cask${EMACS_PKGNAMESUFFIX}>0:devel/cask@${EMACS_FLAVOR} \
tablist${EMACS_PKGNAMESUFFIX}>=0.70.4:devel/tablist@${EMACS_FLAVOR}
LIB_DEPENDS= libpng.so:graphics/png \
diff --git a/science/agrum/Makefile b/science/agrum/Makefile
index d52987962bd8..9466d6058570 100644
--- a/science/agrum/Makefile
+++ b/science/agrum/Makefile
@@ -9,8 +9,6 @@ WWW= https://agrum.gitlab.io/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN_FreeBSD_12= requires modern C++ compiler: error: invalid value 'c++2b'
-
USES= cmake compiler:c++20-lang shebangfix # the 'act' executable uses 'python' and is broken, when act is broken CMakeLists.txt builds with default configuration which is fine
USE_LDCONFIG= yes
diff --git a/science/cantera/Makefile b/science/cantera/Makefile
index 909396e8e3e5..fc0b817aab88 100644
--- a/science/cantera/Makefile
+++ b/science/cantera/Makefile
@@ -27,8 +27,6 @@ USE_GITHUB= yes
GH_ACCOUNT= Cantera
GH_TUPLE= LLNL:sundials:887af43:sundials/ext/sundials # bundled sundials is only needed for the Octave option
-CXXFLAGS+= ${CXXFLAGS_${OPSYS}_${OSREL:R}}
-CXXFLAGS_FreeBSD_12= -D_GNU_SOURCE
MAKE_ARGS= system_eigen='y' \
system_sundials='n' \
system_fmt='y' \
diff --git a/science/cdo/Makefile b/science/cdo/Makefile
index c6360fab1c7c..cf4a2a751fea 100644
--- a/science/cdo/Makefile
+++ b/science/cdo/Makefile
@@ -40,6 +40,7 @@ MAKE_JOBS_UNSAFE= yes
TEST_TARGET= check
USE_CXXSTD= c++17
USE_LDCONFIG= yes
+CFLAGS+= -DPTHREAD_MUTEXATTR
CGRIBEX_CONFIGURE_WITH= cgribex
CGRIBEX_LIB_DEPENDS= libcgribex.so:science/cgribex
@@ -60,12 +61,6 @@ UDUNITS_LIB_DEPENDS= libudunits2.so:science/udunits
UUID_CONFIGURE_OFF= ac_cv_func_uuid_create=no ac_cv_have_decl_uuid_create=no ac_cv_have_decl_uuid_generate=no ac_cv_lib_uuid_uuid_generate=no
UUID_LIB_DEPENDS= libuuid.so:misc/e2fsprogs-libuuid
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} != "sparc64"
-CFLAGS+= -DPTHREAD_MUTEXATTR
-.endif
-
post-patch:
@${REINPLACE_CMD} -e '/^SUBDIRS = / s| contrib||' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|$$(libdir)/\($$$$pkgconfigfile\)|${PREFIX}/libdata/\1|' ${WRKSRC}/libcdi/src/Makefile.in
@@ -77,4 +72,4 @@ post-install:
test-NETCDF-on:
@cd ${WRKSRC}/ && ${SETENV} CDO_PATH=src/cdo src/cdotest
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/science/dftbplus/Makefile b/science/dftbplus/Makefile
index 9fc886c35e92..c4e9cabba2a8 100644
--- a/science/dftbplus/Makefile
+++ b/science/dftbplus/Makefile
@@ -10,8 +10,6 @@ WWW= https://dftbplus.org/
LICENSE= GPLv3 # main code is under LGPL3+, the bundled dftd3-lib is under GPLv1+, this makes the result GPLv3 (based on https://www.gnu.org/licenses/gpl-faq.html#AllCompatibility)
BROKEN_aarch64= Lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug\#255890
-BROKEN_FreeBSD_12_powerpc= Lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug\#255890
-BROKEN_FreeBSD_12_powerpc64= Lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug\#255890
LIB_DEPENDS= libblas.so:math/blas \
liblapack.so:math/lapack \
diff --git a/science/libctl/Makefile b/science/libctl/Makefile
index 2b76d8cb2ee5..2c21d1f1bd9f 100644
--- a/science/libctl/Makefile
+++ b/science/libctl/Makefile
@@ -10,8 +10,6 @@ WWW= https://libctl.readthedocs.io/en/latest/
LICENSE= GPLv2
-BROKEN_sparc64= does not build
-
USES= fortran guile:2.2 libtool pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-shared
diff --git a/science/libtensorflow1/Makefile b/science/libtensorflow1/Makefile
index cd0ac8b10120..aad9c82afe93 100644
--- a/science/libtensorflow1/Makefile
+++ b/science/libtensorflow1/Makefile
@@ -119,11 +119,6 @@ XLA_VARS_OFF= TF_ENABLE_XLA=0
BAZEL_OPTS= --output_user_root=${WRKDIR}/bazel_out
-.include <bsd.port.options.mk>
-.if ${OPSYS} == FreeBSD && ${OSVERSION} > 1200000 && ${OSVERSION} < 1300000
-EXTRA_PATCHES= ${PATCHDIR}/extra-patch-third_party_repo.bzl
-.endif
-
post-extract:
# THIRD_PARTY_TF_C_LICENSES is generated as a Bazel build target (see
# //tensorflow/tools/lib_package:clicenses) and the empty file written
diff --git a/science/libtensorflow1/files/extra-patch-third_party_repo.bzl b/science/libtensorflow1/files/extra-patch-third_party_repo.bzl
deleted file mode 100644
index eaab437bdc72..000000000000
--- a/science/libtensorflow1/files/extra-patch-third_party_repo.bzl
+++ /dev/null
@@ -1,25 +0,0 @@
---- third_party/repo.bzl.orig
-+++ third_party/repo.bzl
-@@ -62,13 +62,15 @@ def _repos_are_siblings():
- return Label("@foo//bar").workspace_root.startswith("../")
-
- # Apply a patch_file to the repository root directory
--# Runs 'git apply' on Unix, 'patch -p1' on Windows.
-+# Runs 'patch -p1'
- def _apply_patch(ctx, patch_file):
-- if _is_windows(ctx):
-- patch_command = ["patch", "-p1", "-d", ctx.path("."), "-i", ctx.path(patch_file)]
-- else:
-- patch_command = ["git", "apply", "-v", ctx.path(patch_file)]
-- cmd = _wrap_bash_cmd(ctx, patch_command)
-+ # Don't check patch on Windows, because patch is only available under bash.
-+ if not _is_windows(ctx) and not ctx.which("patch"):
-+ fail("patch command is not found, please install it")
-+ cmd = _wrap_bash_cmd(
-+ ctx,
-+ ["patch", "-p1", "-d", ctx.path("."), "-i", ctx.path(patch_file)],
-+ )
- _execute_and_check_ret_code(ctx, cmd)
-
- def _apply_delete(ctx, paths):
-
diff --git a/science/siesta/Makefile b/science/siesta/Makefile
index 3bd84d0c8d90..ed497852d81a 100644
--- a/science/siesta/Makefile
+++ b/science/siesta/Makefile
@@ -12,8 +12,6 @@ LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/../COPYING
BROKEN_aarch64= Lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug#255890
-BROKEN_FreeBSD_12_powerpc= Lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug#255890
-BROKEN_FreeBSD_12_powerpc64= Lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug#255890
LIB_DEPENDS= libblas.so:math/blas \
liblapack.so:math/lapack
diff --git a/science/simlib/Makefile b/science/simlib/Makefile
index a6a5f4633a4b..0f4fd449ec11 100644
--- a/science/simlib/Makefile
+++ b/science/simlib/Makefile
@@ -11,7 +11,7 @@ WWW= https://www.fit.vutbr.cz/~peringer/SIMLIB/index.html.en
LICENSE= LGPL20
BROKEN_riscv64= fails to compile: process.cc:53:3: module process.cc is not ported to this processor architecture
-NOT_FOR_ARCHS= aarch64 armv6 armv7 mips mips64 powerpc powerpc64 sparc64
+NOT_FOR_ARCHS= aarch64 armv6 armv7 mips mips64 powerpc powerpc64
NOT_FOR_ARCHS_REASON= contains not working ${ARCH}-dependent assembly code
USES= gmake
diff --git a/science/step/Makefile b/science/step/Makefile
index 4845344aa44a..403ebbe97b68 100644
--- a/science/step/Makefile
+++ b/science/step/Makefile
@@ -23,7 +23,6 @@ USE_QT= concurrent core dbus declarative gui network opengl printsupport svg \
widgets xml \
buildtools:build qmake:build
USE_XORG= x11
-CXXFLAGS_sparc64= -Wno-error=return-type
SHEBANG_FILES= step/data/extractxml
diff --git a/science/zotero/Makefile b/science/zotero/Makefile
index 7400253245c4..1ffc8f5561b5 100644
--- a/science/zotero/Makefile
+++ b/science/zotero/Makefile
@@ -14,7 +14,6 @@ LICENSE= AGPLv3
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= uses FreeBSD 13.x precompiled binaries
-BROKEN_FreeBSD_12= uses FreeBSD 13.x precompiled binaries
LIB_DEPENDS= libasound.so:audio/alsa-lib \
libatk-bridge-2.0.so:accessibility/at-spi2-core \
diff --git a/security/hashcat/Makefile b/security/hashcat/Makefile
index 11d69c0e7c9b..8cffda08e8b3 100644
--- a/security/hashcat/Makefile
+++ b/security/hashcat/Makefile
@@ -11,7 +11,7 @@ WWW= https://hashcat.net/hashcat/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/docs/license.txt
-NOT_FOR_ARCHS= powerpc powerpc64 powerpcspe sparc64
+NOT_FOR_ARCHS= powerpc powerpc64 powerpcspe
NOT_FOR_ARCHS_REASON= fails to compile: compiling for big-endian architecture not supported
BUILD_DEPENDS= minizip:archivers/minizip
diff --git a/security/isal-kmod/Makefile b/security/isal-kmod/Makefile
index cca352e2722e..befec1fe072e 100644
--- a/security/isal-kmod/Makefile
+++ b/security/isal-kmod/Makefile
@@ -10,7 +10,6 @@ WWW= https://github.com/bsdjhb/ocf_isa_l
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/isa-l_crypto/LICENSE
-IGNORE_FreeBSD_12= requires FreeBSD 13.0 or later
ONLY_FOR_ARCHS= amd64
BUILD_DEPENDS= yasm:devel/yasm
diff --git a/security/libfido2/Makefile b/security/libfido2/Makefile
index edfba955c1eb..e1f38b4b97ce 100644
--- a/security/libfido2/Makefile
+++ b/security/libfido2/Makefile
@@ -23,11 +23,4 @@ PLIST_SUB= PORTVERSION=${PORTVERSION}
OPTIONS_DEFINE= DOCS
-.include <bsd.port.pre.mk>
-
-# Skip libcrypto.pc while using OpenSSL from base system on older FreeBSD versions which does not skip this file
-.if ${SSL_DEFAULT} == base && !exists(/usr/libdata/pkgconfig/libcrypto.pc)
-EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-openssl
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/security/libfido2/files/extra-patch-openssl b/security/libfido2/files/extra-patch-openssl
deleted file mode 100644
index 6cab9adce02d..000000000000
--- a/security/libfido2/files/extra-patch-openssl
+++ /dev/null
@@ -1,26 +0,0 @@
---- CMakeLists.txt.orig 2022-01-17 12:42:03 UTC
-+++ CMakeLists.txt
-@@ -196,14 +196,10 @@ if(MSVC)
- else()
- include(FindPkgConfig)
- pkg_search_module(CBOR libcbor)
-- pkg_search_module(CRYPTO libcrypto)
- pkg_search_module(ZLIB zlib)
-
- if(NOT CBOR_FOUND AND NOT HAVE_CBOR_H)
- message(FATAL_ERROR "could not find libcbor")
-- endif()
-- if(NOT CRYPTO_FOUND AND NOT HAVE_OPENSSLV_H)
-- message(FATAL_ERROR "could not find libcrypto")
- endif()
- if(NOT ZLIB_FOUND)
- message(FATAL_ERROR "could not find zlib")
---- src/libfido2.pc.in.orig 2022-01-17 12:42:03 UTC
-+++ src/libfido2.pc.in
-@@ -7,6 +7,5 @@ Name: @PROJECT_NAME@
- Description: A FIDO2 library
- URL: https://github.com/yubico/libfido2
- Version: @FIDO_VERSION@
--Requires: libcrypto
- Libs: -L${libdir} -lfido2
- Cflags: -I${includedir}
diff --git a/security/nettle/Makefile b/security/nettle/Makefile
index c35970d715af..8867eca464ce 100644
--- a/security/nettle/Makefile
+++ b/security/nettle/Makefile
@@ -36,10 +36,6 @@ EXAMPLES_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-Makefile.in
.include <bsd.port.options.mk>
-.if ${ARCH} == "sparc64"
-CONFIGURE_ENV+= CCPIC=-fPIC
-.endif
-
.if ${ARCH} == "mips64"
post-patch:
@${REINPLACE_CMD} -e 's|__sgi|__unix__|' ${WRKSRC}/configure
diff --git a/security/openssl-quictls/Makefile b/security/openssl-quictls/Makefile
index 40274968ad91..f602baf253bf 100644
--- a/security/openssl-quictls/Makefile
+++ b/security/openssl-quictls/Makefile
@@ -47,8 +47,7 @@ OPTIONS_DEFINE= ASYNC CRYPTODEV CT KTLS MAN3 RFC3779 SHARED ZLIB
OPTIONS_DEFAULT=ASM ASYNC CT DES EC FIPS GOST KTLS MAN3 MD4 NEXTPROTONEG \
RC2 RC4 RMD160 SCTP SHARED SSE2 THREADS TLS1 TLS1_1 TLS1_2
-OPTIONS_EXCLUDE=${${OSVERSION} < 1300042:?KTLS:} \
- ${${OSVERSION} > 1300000:?CRYPTODEV:}
+OPTIONS_EXCLUDE= CRYPTODEV
OPTIONS_EXCLUDE_i386= FIPS
OPTIONS_GROUP_OPTIMIZE_amd64= EC
@@ -143,19 +142,11 @@ PORTSCOUT= limit=^3\.0\.
IGNORE= the OpenSSL port can not be installed over the base version
.endif
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 && !${PORT_OPTIONS:MCRYPTODEV}
-CONFIGURE_ARGS+= no-devcryptoeng
-.endif
-
OPENSSLDIR?= ${PREFIX}/openssl
PLIST_SUB+= OPENSSLDIR=${OPENSSLDIR:S=^${PREFIX}/==}
.include "version.mk"
-.if ${PORT_OPTIONS:MASM}
-BROKEN_sparc64= option ASM generates illegal instructions
-.endif
-
post-patch:
${REINPLACE_CMD} -Ee 's|^MANDIR=.*$$|MANDIR=$$(INSTALLTOP)/man|' \
-e 's|^(build\|install)_docs: .*|\1_docs: \1_man_docs|' \
diff --git a/security/openssl/Makefile b/security/openssl/Makefile
index ef3b5819accc..3faff9631310 100644
--- a/security/openssl/Makefile
+++ b/security/openssl/Makefile
@@ -45,8 +45,7 @@ OPTIONS_DEFINE= ASYNC CRYPTODEV CT KTLS MAN3 RFC3779 SHARED ZLIB
OPTIONS_DEFAULT=ASM ASYNC CT DES EC FIPS GOST KTLS MAN3 MD4 NEXTPROTONEG \
RFC3779 RC2 RC4 RMD160 SCTP SHARED SSE2 THREADS TLS1 TLS1_1 TLS1_2
-OPTIONS_EXCLUDE=${${OSVERSION} < 1300042:?KTLS:} \
- ${${OSVERSION} > 1300000:?CRYPTODEV:}
+OPTIONS_EXCLUDE=CRYPTODEV
.if ${MACHINE_ARCH} == "amd64"
OPTIONS_GROUP_OPTIMIZE+= EC
@@ -149,19 +148,11 @@ CONFIGURE_ARGS+= BSD-riscv64
IGNORE= the OpenSSL port can not be installed over the base version
.endif
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 && !${PORT_OPTIONS:MCRYPTODEV}
-CONFIGURE_ARGS+= no-devcryptoeng
-.endif
-
OPENSSLDIR?= ${PREFIX}/openssl
PLIST_SUB+= OPENSSLDIR=${OPENSSLDIR:S=^${PREFIX}/==}
.include "version.mk"
-.if ${PORT_OPTIONS:MASM}
-BROKEN_sparc64= option ASM generates illegal instructions
-.endif
-
post-patch:
${REINPLACE_CMD} -Ee 's|^MANDIR=.*$$|MANDIR=$$(INSTALLTOP)/man|' \
-e 's|^(build\|install)_docs: .*|\1_docs: \1_man_docs|' \
diff --git a/security/openssl111/Makefile b/security/openssl111/Makefile
index 13392adb2556..4c5563aa0546 100644
--- a/security/openssl111/Makefile
+++ b/security/openssl111/Makefile
@@ -45,8 +45,7 @@ OPTIONS_DEFINE= ASYNC CRYPTODEV CT KTLS MAN3 RFC3779 SHARED ZLIB
OPTIONS_DEFAULT=ASM ASYNC CT GOST DES EC KTLS MAN3 MD4 NEXTPROTONEG RC2 \
RC4 RMD160 SCTP SHARED SSE2 THREADS TLS1 TLS1_1 TLS1_2
-OPTIONS_EXCLUDE=${${OSVERSION} < 1300042:?KTLS:} \
- ${${OSVERSION} > 1300000:?CRYPTODEV:}
+OPTIONS_EXCLUDE=CRYPTODEV
.if ${MACHINE_ARCH} == "amd64"
OPTIONS_GROUP_OPTIMIZE+= EC
@@ -125,19 +124,11 @@ PORTSCOUT= limit=^1\.1\.1
IGNORE= the OpenSSL port can not be installed over the base version
.endif
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 && !${PORT_OPTIONS:MCRYPTODEV}
-CONFIGURE_ARGS+= no-devcryptoeng
-.endif
-
OPENSSLDIR?= ${PREFIX}/openssl
PLIST_SUB+= OPENSSLDIR=${OPENSSLDIR:S=^${PREFIX}/==}
.include "version.mk"
-.if ${PORT_OPTIONS:MASM}
-BROKEN_sparc64= option ASM generates illegal instructions
-.endif
-
post-patch:
${REINPLACE_CMD} \
-e 's|^MANDIR=.*$$|MANDIR=$$(INSTALLTOP)/man|' \
diff --git a/security/openssl31-quictls/Makefile b/security/openssl31-quictls/Makefile
index da0d71cdb92b..19bfd5545a73 100644
--- a/security/openssl31-quictls/Makefile
+++ b/security/openssl31-quictls/Makefile
@@ -143,19 +143,11 @@ PORTSCOUT= limit=^3\.1\.
IGNORE= the OpenSSL port can not be installed over the base version
.endif
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 && !${PORT_OPTIONS:MCRYPTODEV}
-CONFIGURE_ARGS+= no-devcryptoeng
-.endif
-
OPENSSLDIR?= ${PREFIX}/openssl
PLIST_SUB+= OPENSSLDIR=${OPENSSLDIR:S=^${PREFIX}/==}
.include "version.mk"
-.if ${PORT_OPTIONS:MASM}
-BROKEN_sparc64= option ASM generates illegal instructions
-.endif
-
post-patch:
${REINPLACE_CMD} -Ee 's|^MANDIR=.*$$|MANDIR=$$(INSTALLTOP)/man|' \
-e 's|^(build\|install)_docs: .*|\1_docs: \1_man_docs|' \
diff --git a/security/openssl31/Makefile b/security/openssl31/Makefile
index a441a22b9e96..fc4432765c41 100644
--- a/security/openssl31/Makefile
+++ b/security/openssl31/Makefile
@@ -45,8 +45,7 @@ OPTIONS_DEFINE= ASYNC CRYPTODEV CT KTLS MAN3 RFC3779 SHARED ZLIB
OPTIONS_DEFAULT=ASM ASYNC CT DES EC FIPS GOST KTLS MAN3 MD4 NEXTPROTONEG \
RFC3779 RC2 RC4 RMD160 SCTP SHARED SSE2 THREADS TLS1 TLS1_1 TLS1_2
-OPTIONS_EXCLUDE=${${OSVERSION} < 1300042:?KTLS:} \
- ${${OSVERSION} > 1300000:?CRYPTODEV:}
+OPTIONS_EXCLUDE=CRYPTODEV
OPTIONS_GROUP_OPTIMIZE_amd64= EC
@@ -151,19 +150,11 @@ CONFIGURE_ARGS+= BSD-riscv64
IGNORE= the OpenSSL port can not be installed over the base version
.endif
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 && !${PORT_OPTIONS:MCRYPTODEV}
-CONFIGURE_ARGS+= no-devcryptoeng
-.endif
-
OPENSSLDIR?= ${PREFIX}/openssl
PLIST_SUB+= OPENSSLDIR=${OPENSSLDIR:S=^${PREFIX}/==}
.include "version.mk"
-.if ${PORT_OPTIONS:MASM}
-BROKEN_sparc64= option ASM generates illegal instructions
-.endif
-
post-patch:
${REINPLACE_CMD} -Ee 's|^MANDIR=.*$$|MANDIR=$$(INSTALLTOP)/man|' \
-e 's|^(build\|install)_docs: .*|\1_docs: \1_man_docs|' \
diff --git a/security/openssl32/Makefile b/security/openssl32/Makefile
index 47970cdfc98f..566acda3648d 100644
--- a/security/openssl32/Makefile
+++ b/security/openssl32/Makefile
@@ -45,8 +45,7 @@ OPTIONS_DEFAULT=ASM ASYNC CT DES EC FIPS GOST MAN3 MD4 NEXTPROTONEG \
THREADPOOL THREADS TLS1 TLS1_1 TLS1_2
#OPTIONS_DEFAULT+= KTLS pending updated KTLS patch
-OPTIONS_EXCLUDE=${${OSVERSION} < 1300042:?KTLS:} \
- ${${OSVERSION} > 1300000:?CRYPTODEV:}
+OPTIONS_EXCLUDE=CRYPTODEV
OPTIONS_GROUP_OPTIMIZE_amd64= EC
@@ -162,19 +161,11 @@ CONFIGURE_ARGS+= BSD-riscv64
IGNORE= the OpenSSL port can not be installed over the base version
.endif
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 && !${PORT_OPTIONS:MCRYPTODEV}
-CONFIGURE_ARGS+= no-devcryptoeng
-.endif
-
OPENSSLDIR?= ${PREFIX}/openssl
PLIST_SUB+= OPENSSLDIR=${OPENSSLDIR:S=^${PREFIX}/==}
.include "version.mk"
-.if ${PORT_OPTIONS:MASM}
-BROKEN_sparc64= option ASM generates illegal instructions
-.endif
-
post-patch:
${REINPLACE_CMD} -Ee 's|^MANDIR=.*$$|MANDIR=$$(INSTALLTOP)/man|' \
-e 's|^(build\|install)_docs: .*|\1_docs: \1_man_docs|' \
diff --git a/security/openvpn-devel/Makefile b/security/openvpn-devel/Makefile
index 698b157e175b..5a9657090966 100644
--- a/security/openvpn-devel/Makefile
+++ b/security/openvpn-devel/Makefile
@@ -54,7 +54,6 @@ PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EASYRSA EXAMPLES LZ4 PKCS11 SMALL DCO TEST \
X509ALTUSERNAME
OPTIONS_DEFAULT= EASYRSA LZ4 OPENSSL TEST DCO
-OPTIONS_EXCLUDE_FreeBSD_12= DCO # FreeBSD 14 only
OPTIONS_EXCLUDE_FreeBSD_13= DCO # FreeBSD 14 only
OPTIONS_SINGLE= SSL
OPTIONS_SINGLE_SSL= MBEDTLS OPENSSL
diff --git a/security/openvpn/Makefile b/security/openvpn/Makefile
index 287566b2c685..e05870b5b11c 100644
--- a/security/openvpn/Makefile
+++ b/security/openvpn/Makefile
@@ -42,7 +42,6 @@ PORTEXAMPLES= *
OPTIONS_DEFINE= ASYNC_PUSH DCO DOCS EASYRSA EXAMPLES LZ4 LZO PKCS11 SMALL \
TEST UNITTESTS X509ALTUSERNAME
OPTIONS_DEFAULT= DCO EASYRSA LZ4 LZO PKCS11 TEST
-OPTIONS_EXCLUDE_FreeBSD_12= DCO # FreeBSD 14 only
OPTIONS_EXCLUDE_FreeBSD_13= DCO # FreeBSD 14 only
ASYNC_PUSH_DESC= Enable async-push support
diff --git a/security/opie/Makefile b/security/opie/Makefile
index 89962434ee61..5a7b6ca1332f 100644
--- a/security/opie/Makefile
+++ b/security/opie/Makefile
@@ -22,7 +22,6 @@ MAKE_ARGS= BINDIR=${PREFIX}/bin \
LIBDIR=${PREFIX}/lib \
MANDIR=${MANPREFIX}/man/man
-IGNORE_FreeBSD_12= FreeBSD 12 has OPIE in base
IGNORE_FreeBSD_13= FreeBSD 13 has OPIE in base
.include <bsd.port.mk>
diff --git a/security/p5-Crypt-Curve25519/Makefile b/security/p5-Crypt-Curve25519/Makefile
index 9315f09133b7..b4657d1b601a 100644
--- a/security/p5-Crypt-Curve25519/Makefile
+++ b/security/p5-Crypt-Curve25519/Makefile
@@ -13,7 +13,6 @@ LICENSE_COMB= dual
BROKEN_mips= fails to build: -m32 flag is not supported by this configuration
BROKEN_mips64= fails to build: -m32 flag is not supported by this configuration
-BROKEN_sparc64= fails to build: -m32 flag is not supported by this configuration
USES= perl5 ssl
USE_PERL5= configure
diff --git a/security/p5-PGP/Makefile b/security/p5-PGP/Makefile
index 61bc20c9a115..df8211306fd3 100644
--- a/security/p5-PGP/Makefile
+++ b/security/p5-PGP/Makefile
@@ -9,7 +9,7 @@ MAINTAINER= bofh@FreeBSD.org
COMMENT= Perl5 module to work with PGP messages
WWW= https://metacpan.org/release/PGP
-ONLY_FOR_ARCHS= amd64 i386 powerpc64 powerpc64le sparc64
+ONLY_FOR_ARCHS= amd64 i386 powerpc64 powerpc64le
RUN_DEPENDS= pgpin:security/pgpin
diff --git a/security/pam_ssh_agent_auth/Makefile b/security/pam_ssh_agent_auth/Makefile
index cfb088362f74..e8cf839c16c7 100644
--- a/security/pam_ssh_agent_auth/Makefile
+++ b/security/pam_ssh_agent_auth/Makefile
@@ -16,7 +16,6 @@ GH_TAGNAME= 099beb2
GH_TUPLE= floodyberry:ed25519-donna:8757bd4:floodyberry_ed25519_donna/ed25519-donna
BROKEN_mips64= fails to compile: ed25519-donna-portable.h:85:4: Need a uint128_t implementation!
-BROKEN_FreeBSD_12_powerpc64= fails to compile on powerpc64 elfv1: ed25519-donna-portable.h: warning: ALIGN redefined
USES= perl5 ssl tar:bzip2
USE_PERL5= build
diff --git a/security/pam_u2f/Makefile b/security/pam_u2f/Makefile
index 8a80a097ea93..d69531e1f832 100644
--- a/security/pam_u2f/Makefile
+++ b/security/pam_u2f/Makefile
@@ -25,8 +25,4 @@ PLIST_FILES= bin/pamu2fcfg \
man/man1/pamu2fcfg.1.gz \
man/man8/pam_u2f.8.gz
-.if !exists(/usr/libdata/pkgconfig/libcrypto.pc)
-CONFIGURE_ENV= LIBCRYPTO_CFLAGS="-I${OPENSSLINC}" LIBCRYPTO_LIBS="-L${OPENSSLLIB} -lcrypto"
-.endif
-
.include <bsd.port.mk>
diff --git a/security/picocrypt/Makefile b/security/picocrypt/Makefile
index 2b364edfb448..73a76dbb1daa 100644
--- a/security/picocrypt/Makefile
+++ b/security/picocrypt/Makefile
@@ -10,7 +10,7 @@ WWW= https://github.com/HACKERALERT/Picocrypt
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/../LICENSE
-ONLY_FOR_ARCHS= aarch64 amd64 mips64 powerpc64 powerpc64le riscv64 sparc64
+ONLY_FOR_ARCHS= aarch64 amd64 mips64 powerpc64 powerpc64le riscv64
ONLY_FOR_ARCHS_REASON= upstream only supports 64-bit
# https://github.com/HACKERALERT/Picocrypt/issues/127
diff --git a/security/pkcs11-tools/Makefile b/security/pkcs11-tools/Makefile
index 09f20141c785..26cb5b80b6dc 100644
--- a/security/pkcs11-tools/Makefile
+++ b/security/pkcs11-tools/Makefile
@@ -38,8 +38,6 @@ MAKE_ENV= LIBCRYPTO_RPATH=${OPENSSLBASE}/lib
INSTALL_TARGET= install-strip
-.include <bsd.port.options.mk>
-
post-extract:
@${RMDIR} ${WRKSRC}/.gnulib ${WRKSRC}/include/oasis-pkcs11
@${MV} ${WRKSRC_gnulib} ${WRKSRC}/.gnulib
@@ -48,17 +46,6 @@ post-extract:
pre-configure:
@cd ${WRKSRC} && BUILD_PORT=1 ${WRKSRC}/bootstrap.sh
-# FreeBSD<13 does not have system-deployed openssl information through PKGCONFIG
-# We need to provide a hint at configure time
-
-.if ${OPSYS} == FreeBSD && ( ${OSVERSION} <= 1300000 )
-LIBCRYPTO_CFLAGS+= -pthread
-LIBCRYPTO_LIBS+= -lcrypto
-
-do-configure:
- @cd ${WRKSRC} && ./configure LIBCRYPTO_CFLAGS=${LIBCRYPTO_CFLAGS} LIBCRYPTO_LIBS=${LIBCRYPTO_LIBS}
-.endif
-
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} \
diff --git a/security/rcracki_mt/Makefile b/security/rcracki_mt/Makefile
index d6857f7a99f5..3e97f477e835 100644
--- a/security/rcracki_mt/Makefile
+++ b/security/rcracki_mt/Makefile
@@ -10,7 +10,7 @@ WWW= https://www.freerainbowtables.com
LICENSE= GPLv2
-NOT_FOR_ARCHS= aarch64 armv6 armv7 mips mips64 riscv64 sparc64
+NOT_FOR_ARCHS= aarch64 armv6 armv7 mips mips64 riscv64
NOT_FOR_ARCHS_REASON= cannot detect endianness
WRKSRC= ${WRKDIR}/${DISTNAME}/${PORTNAME}
diff --git a/security/snort3/Makefile b/security/snort3/Makefile
index 760cd2660877..9d21b1ab614e 100644
--- a/security/snort3/Makefile
+++ b/security/snort3/Makefile
@@ -62,12 +62,6 @@ STATICDAQ_CMAKE_BOOL= ENABLE_STATIC_DAQ
THREADSANITIZER_CMAKE_BOOL= ENABLE_THREAD_SANITIZER
TSC_CMAKE_BOOL= ENABLE_TSC_CLOCK
-.include <bsd.port.options.mk>
-
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000
-BUILD_DEPENDS= flex>0:textproc/flex
-.endif
-
post-patch:
${REINPLACE_CMD} -e 's|_LIBDIR}/pkgconfig|_PREFIX}/libdata/pkgconfig|g' \
${WRKSRC}/cmake/create_pkg_config.cmake
diff --git a/security/sssd-devel/Makefile b/security/sssd-devel/Makefile
index 48b36bb55dc3..ab8c12d7dbc1 100644
--- a/security/sssd-devel/Makefile
+++ b/security/sssd-devel/Makefile
@@ -56,13 +56,8 @@ LIB_DEPENDS= libcares.so:dns/c-ares \
RUN_DEPENDS= cyrus-sasl-gssapi>0:security/cyrus-sasl2-gssapi \
sudo>0:security/sudo
-.include <bsd.port.options.mk>
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300076
-IGNORE=SSSD is only supported on FreeBSD 13.1 and above
-.endif
-
USES= autoreconf cpe gettext gmake gssapi:bootstrap,flags,mit iconv ldap \
- libtool pathfix pkgconfig python:3.9+ shebangfix ssl
+ libtool localbase:ldflags pathfix pkgconfig python:3.9+ shebangfix ssl
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
@@ -127,7 +122,7 @@ CONFIGURE_ARGS= --disable-dependency-tracking \
--with-unicode-lib=libunistring
CFLAGS+= -fstack-protector-all
-CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/samba4
+CFLAGS+= -I${LOCALBASE}/include/samba4
LIBS+= -L${LOCALBASE}/lib \
-L${LOCALBASE}/lib/samba4/private \
@@ -142,7 +137,6 @@ KRB5_LIBS= -L${LOCALBASE}/lib -lkrb5
LDFLAGS+= -lgssapi
LDFLAGS_SL+= -lgssapi
-LDFLAGS+= -L${LOCALBASE}/lib
INCLUDES+= -I${LOCALBASE}/include
CONFIGURE_ENV+= INCLUDES="${INCLUDES}" \
LDFLAGS_SL="${LDFLAGS_SL}"
diff --git a/security/tor/Makefile b/security/tor/Makefile
index fee8bb7c77e6..8fb2980f86c8 100644
--- a/security/tor/Makefile
+++ b/security/tor/Makefile
@@ -25,7 +25,6 @@ OPTIONS_GROUP= COMPRESSION TRACING
OPTIONS_GROUP_COMPRESSION= ZSTD LZMA
OPTIONS_GROUP_TRACING= LTTNG USDT LOG_DEBUG
OPTIONS_DEFAULT=MANPAGES ZSTD LZMA
-OPTIONS_EXCLUDE_FreeBSD_12=DOCS MANPAGES # XXX(rene) a2x somehow broken there
OPTIONS_SUB= yes
STATIC_TOR_DESC= Build a static tor
COMPRESSION_DESC= Supported compression libraries
diff --git a/security/wazuh-manager/Makefile b/security/wazuh-manager/Makefile
index 5668c83407c9..bbe702b60d7b 100644
--- a/security/wazuh-manager/Makefile
+++ b/security/wazuh-manager/Makefile
@@ -141,10 +141,8 @@ FBSD_RELEASE= freebsd_${UNAME_r:S/./_/g:S/-/_/g}
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 1200500 && ${OSVERSION} < 1300000
-IGNORE= FreeBSD 12.x (EoL) is not supported on ${ARCH}
-.elif ${OSVERSION} >= 1300139 && ${OSVERSION} < 1400000
-FBSD_VERSION_BASE=freebsd_13_2_release_p8
+.if ${OSVERSION} >= 1300139 && ${OSVERSION} < 1400000
+FBSD_VERSION_BASE=freebsd_13_2_release_p4
WAZUH_CACHENAME=${PORTNAME}-cache-fbsd13-${ARCH}-${DISTVERSION}
DISTFILES+= ${WAZUH_CACHENAME}${EXTRACT_SUFX}:wazuh_cache
.elif ${OSVERSION} >= 1400000 && ${OSVERSION} < 1500000
diff --git a/security/zeek/Makefile b/security/zeek/Makefile
index 4623ee6c804a..d4c13b1e3da8 100644
--- a/security/zeek/Makefile
+++ b/security/zeek/Makefile
@@ -10,8 +10,6 @@ WWW= https://www.zeek.org/
LICENSE= CC-BY-4.0
-BROKEN_FreeBSD_12_powerpc64= does not build: error: zero-size array 'names'
-
BUILD_DEPENDS= bison>=3.3:devel/bison \
flex>=2.6:textproc/flex \
swig>=4.0.2:devel/swig
diff --git a/shells/ksh-devel/Makefile b/shells/ksh-devel/Makefile
index ec01420efa7c..b560a5786479 100644
--- a/shells/ksh-devel/Makefile
+++ b/shells/ksh-devel/Makefile
@@ -19,8 +19,6 @@ WWW= http://www.kornshell.com/
LICENSE= EPL
-BROKEN_FreeBSD_12= exit code 139 making lib/libcmd
-
HASH= e9182bd6
AST_COMMIT_DATE= 2023.09.24
diff --git a/shells/v7sh/files/Makefile b/shells/v7sh/files/Makefile
index 31ada57b3abd..8a26e6001d34 100644
--- a/shells/v7sh/files/Makefile
+++ b/shells/v7sh/files/Makefile
@@ -13,11 +13,7 @@ SRCS= args.c blok.c builtin.c cmd.c ctype.c error.c expand.c \
CWARNFLAGS?= -ansi -Wbad-function-cast
WARNS?= 6
-.if ${OSREL:R} < 13
-NO_WERROR=1
-.else
MK_WERROR=no
-.endif
WFORMAT=0
.include <bsd.prog.mk>
diff --git a/sysutils/acpica-tools/Makefile b/sysutils/acpica-tools/Makefile
index d7e6cb07212d..04987afc25f1 100644
--- a/sysutils/acpica-tools/Makefile
+++ b/sysutils/acpica-tools/Makefile
@@ -13,8 +13,6 @@ WWW= https://acpica.org
LICENSE= BSD3CLAUSE GPLv2
LICENSE_COMB= dual
-BROKEN_FreeBSD_12_powerpc64= fails to compile on powerpc64 elfv1: comparison is always true due to limited range of data type
-
USES= gmake
BUILD_WRKSRC= ${WRKSRC}/generate/unix
diff --git a/sysutils/arcconf/Makefile b/sysutils/arcconf/Makefile
index 820d86257413..d525bbbf57df 100644
--- a/sysutils/arcconf/Makefile
+++ b/sysutils/arcconf/Makefile
@@ -26,13 +26,7 @@ SUB_FILES+= ${PERIODICSCRIPT}
PERIODICSCRIPT= 410.status-aac-raid
-.include <bsd.port.pre.mk>
-
-.if ${OSREL:R} == 12
-DIST_TYPE= 12_x86_64
-.else
DIST_TYPE= 13_x86_64
-.endif
NO_BUILD= yes
NO_WRKSUBDIR= yes
@@ -45,4 +39,4 @@ do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily
${INSTALL_SCRIPT} ${WRKDIR}/${PERIODICSCRIPT} ${STAGEDIR}${PREFIX}/etc/periodic/daily
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/sysutils/bhyve+/Makefile b/sysutils/bhyve+/Makefile
index 2911b9eb69be..a5f5497c4cc0 100644
--- a/sysutils/bhyve+/Makefile
+++ b/sysutils/bhyve+/Makefile
@@ -42,9 +42,7 @@ LIB9P_VERSION= 1.1
PLIST_SUB= 9P_SHLIB_MAJOR=${LIB9P_VERSION} \
VMMAPI_SHLIB_MAJOR=${LIBVMMAPI_VERSION}
-.if 1200000 <= ${OSVERSION} && ${OSVERSION} < 1300000
-EXTRA_PATCHES= ${PATCHDIR}/freebsd-12 ${PATCHDIR}/freebsd-12/3
-.elif 1301000 <= ${OSVERSION} && ${OSVERSION} < 1400000
+.if 1302000 <= ${OSVERSION} && ${OSVERSION} < 1400000
EXTRA_PATCHES= ${PATCHDIR}/freebsd-13/1
.elif 1400000 <= ${OSVERSION} && ${OSVERSION} < 1500000
EXTRA_PATCHES= ${PATCHDIR}/freebsd-14
diff --git a/sysutils/bhyve+/files/freebsd-12/3/patch-virtio-9p b/sysutils/bhyve+/files/freebsd-12/3/patch-virtio-9p
deleted file mode 100644
index 28457afb3486..000000000000
--- a/sysutils/bhyve+/files/freebsd-12/3/patch-virtio-9p
+++ /dev/null
@@ -1,31 +0,0 @@
---- usr.sbin/bhyve/bhyve.8.orig 2021-12-17 02:14:53.986085000 +0100
-+++ usr.sbin/bhyve/bhyve.8 2021-12-17 02:21:03.716235000 +0100
-@@ -299,6 +299,8 @@
- Virtio block storage interface.
- .It Cm virtio-scsi
- Virtio SCSI interface.
-+.It Cm virtio-9p
-+Virtio 9p (VirtFS) interface.
- .It Cm virtio-rnd
- Virtio RNG interface.
- .It Cm virtio-console
-@@ -404,6 +406,19 @@
- .It Cm iid= Ns Ar IID
- Initiator ID to use when sending requests to specified CTL port.
- The default value is 0.
-+.El
-+.Pp
-+9P devices:
-+.Bl -tag -width 10n
-+.It Pa sharename=/path/to/share[,9p-device-options]
-+.El
-+.Pp
-+The
-+.Ar 9p-device-options
-+are:
-+.Bl -tag -width 10n
-+.It Li ro
-+Expose the share in read-only mode.
- .El
- .Pp
- TTY device backends:
diff --git a/sysutils/bhyve+/files/freebsd-12/patch-libvmmapi b/sysutils/bhyve+/files/freebsd-12/patch-libvmmapi
deleted file mode 100644
index 6131d5eaebcf..000000000000
--- a/sysutils/bhyve+/files/freebsd-12/patch-libvmmapi
+++ /dev/null
@@ -1,33 +0,0 @@
---- lib/libvmmapi/Makefile.orig
-+++ lib/libvmmapi/Makefile
-@@ -6,6 +6,7 @@
- INCS= vmmapi.h
-
- WARNS?= 2
-+SHLIB_MAJOR= %%VMMAPI_SHLIB_MAJOR%%
-
- LIBADD= util
-
---- usr.sbin/bhyvectl/Makefile.orig
-+++ usr.sbin/bhyvectl/Makefile
-@@ -8,7 +8,8 @@
-
- MAN= bhyvectl.8
-
--LIBADD= vmmapi util
-+LIBADD= util
-+LDADD= ../../lib/libvmmapi/libvmmapi.so.%%VMMAPI_SHLIB_MAJOR%%
-
- WARNS?= 3
-
---- usr.sbin/bhyveload/Makefile.orig
-+++ usr.sbin/bhyveload/Makefile
-@@ -5,7 +5,7 @@
- MAN= bhyveload.8
- PACKAGE= bhyve
-
--LIBADD= vmmapi
-+LDADD= ../../lib/libvmmapi/libvmmapi.so.%%VMMAPI_SHLIB_MAJOR%%
-
- WARNS?= 3
-
diff --git a/sysutils/bhyve+/files/freebsd-12/patch-msi-x-mappings b/sysutils/bhyve+/files/freebsd-12/patch-msi-x-mappings
deleted file mode 100644
index 76becc6a97a3..000000000000
--- a/sysutils/bhyve+/files/freebsd-12/patch-msi-x-mappings
+++ /dev/null
@@ -1,132 +0,0 @@
---- usr.sbin/bhyve/pci_emul.h.orig
-+++ usr.sbin/bhyve/pci_emul.h
-@@ -146,6 +146,7 @@ struct pci_devinst {
- struct msix_table_entry *table; /* allocated at runtime */
- void *pba_page;
- int pba_page_offset;
-+ void *table_page;
- } pi_msix;
-
- void *pi_arg; /* devemu-private data */
---- usr.sbin/bhyve/pci_passthru.c.orig
-+++ usr.sbin/bhyve/pci_passthru.c
-@@ -324,13 +324,14 @@ msix_table_read(struct passthru_softc *sc, uint64_t of
- return (data);
- }
-
-+ /* Should make this an assert. */
- if (offset < pi->pi_msix.table_offset)
- return (-1);
-
- offset -= pi->pi_msix.table_offset;
- index = offset / MSIX_TABLE_ENTRY_SIZE;
- if (index >= pi->pi_msix.table_count)
-- return (-1);
-+ goto readbar;
-
- entry = &pi->pi_msix.table[index];
- entry_offset = offset % MSIX_TABLE_ENTRY_SIZE;
-@@ -357,6 +358,33 @@ msix_table_read(struct passthru_softc *sc, uint64_t of
- }
-
- return (data);
-+
-+readbar:
-+ if (pi->pi_msix.table_page != NULL && offset < 4096) {
-+ switch(size) {
-+ case 1:
-+ src8 = (uint8_t *)(pi->pi_msix.table_page + offset);
-+ data = *src8;
-+ break;
-+ case 2:
-+ src16 = (uint16_t *)(pi->pi_msix.table_page + offset);
-+ data = *src16;
-+ break;
-+ case 4:
-+ src32 = (uint32_t *)(pi->pi_msix.table_page + offset);
-+ data = *src32;
-+ break;
-+ case 8:
-+ src64 = (uint64_t *)(pi->pi_msix.table_page + offset);
-+ data = *src64;
-+ break;
-+ default:
-+ return (-1);
-+ }
-+ return (data);
-+ }
-+
-+ return (-1);
- }
-
- static void
-@@ -403,13 +431,14 @@ msix_table_write(struct vmctx *ctx, int vcpu, struct p
- return;
- }
-
-+ /* Should make this an assert. */
- if (offset < pi->pi_msix.table_offset)
- return;
-
- offset -= pi->pi_msix.table_offset;
- index = offset / MSIX_TABLE_ENTRY_SIZE;
- if (index >= pi->pi_msix.table_count)
-- return;
-+ goto writebar;
-
- entry = &pi->pi_msix.table[index];
- entry_offset = offset % MSIX_TABLE_ENTRY_SIZE;
-@@ -432,6 +461,31 @@ msix_table_write(struct vmctx *ctx, int vcpu, struct p
- entry->msg_data, entry->vector_control);
- }
- }
-+
-+writebar:
-+ if (pi->pi_msix.table_page != NULL && offset < 4096) {
-+ switch(size) {
-+ case 1:
-+ dest8 = (uint8_t *)(pi->pi_msix.table_page + offset);
-+ *dest8 = data;
-+ break;
-+ case 2:
-+ dest16 = (uint16_t *)(pi->pi_msix.table_page + offset);
-+ *dest16 = data;
-+ break;
-+ case 4:
-+ dest32 = (uint32_t *)(pi->pi_msix.table_page + offset);
-+ *dest32 = data;
-+ break;
-+ case 8:
-+ dest64 = (uint64_t *)(pi->pi_msix.table_page + offset);
-+ *dest64 = data;
-+ break;
-+ default:
-+ break;
-+ }
-+ return;
-+ }
- }
-
- static int
-@@ -466,6 +520,21 @@ init_msix_table(struct vmctx *ctx, struct passthru_sof
- idx = pi->pi_msix.table_bar;
- start = pi->pi_bar[idx].addr;
- remaining = pi->pi_bar[idx].size;
-+
-+ /*
-+ * Some device (against better documentation of the spec)
-+ * are mapping other usable address space into the same page
-+ * as the end of the MSI-X tables.
-+ * At least Intel AX200 being one of them apparently.
-+ * Map the page and fall back to it for any reads/writes outside
-+ * the MSI-X table in msix_table_{read,write}.
-+ */
-+ pi->pi_msix.table_page = mmap(NULL, 4096, PROT_READ | PROT_WRITE,
-+ MAP_SHARED, memfd, sc->psc_bar[idx].addr + table_offset);
-+ if (pi->pi_msix.table_page == MAP_FAILED) {
-+ warn("Failed to map table page for MSI-X on %d/%d/%d", b, s, f);
-+ return (-1);
-+ }
-
- if (pi->pi_msix.pba_bar == pi->pi_msix.table_bar) {
- pba_offset = pi->pi_msix.pba_offset;
diff --git a/sysutils/bhyve+/files/freebsd-12/patch-virtio-9p b/sysutils/bhyve+/files/freebsd-12/patch-virtio-9p
deleted file mode 100644
index d24cd4db2fb4..000000000000
--- a/sysutils/bhyve+/files/freebsd-12/patch-virtio-9p
+++ /dev/null
@@ -1,385 +0,0 @@
---- usr.sbin/bhyve/Makefile.orig
-+++ usr.sbin/bhyve/Makefile
-@@ -3,6 +3,7 @@
- #
-
- .include <src.opts.mk>
-+CFLAGS+=-I${SRCTOP}/contrib/lib9p
- CFLAGS+=-I${SRCTOP}/sys
- .PATH: ${SRCTOP}/sys/cam/ctl
-
-@@ -43,6 +44,7 @@ SRCS= \
- pci_lpc.c \
- pci_nvme.c \
- pci_passthru.c \
-+ pci_virtio_9p.c \
- pci_virtio_block.c \
- pci_virtio_console.c \
- pci_virtio_net.c \
-@@ -71,7 +73,8 @@ SRCS= \
- .PATH: ${BHYVE_SYSDIR}/sys/amd64/vmm
- SRCS+= vmm_instruction_emul.c
-
--LIBADD= vmmapi md pthread z util sbuf cam
-+LIBADD= md pthread z util sbuf cam casper cap_pwd cap_grp
-+LDADD= ../../contrib/lib9p/lib9p.so.%%9P_SHLIB_MAJOR%% ../../lib/libvmmapi/libvmmapi.so.%%VMMAPI_SHLIB_MAJOR%%
-
- .if ${MK_INET_SUPPORT} != "no"
- CFLAGS+=-DINET
---- usr.sbin/bhyve/pci_virtio_9p.c.orig
-+++ usr.sbin/bhyve/pci_virtio_9p.c
-@@ -0,0 +1,344 @@
-+/*-
-+ * Copyright (c) 2015 iXsystems Inc.
-+ * Copyright (c) 2017-2018 Jakub Klama <jceel@FreeBSD.org>
-+ * All rights reserved.
-+ *
-+ * Redistribution and use in source and binary forms, with or without
-+ * modification, are permitted provided that the following conditions
-+ * are met:
-+ * 1. Redistributions of source code must retain the above copyright
-+ * notice, this list of conditions and the following disclaimer
-+ * in this position and unchanged.
-+ * 2. Redistributions in binary form must reproduce the above copyright
-+ * notice, this list of conditions and the following disclaimer in the
-+ * documentation and/or other materials provided with the distribution.
-+ *
-+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
-+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
-+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-+ * SUCH DAMAGE.
-+ */
-+
-+/*
-+ * VirtIO filesystem passthrough using 9p protocol.
-+ */
-+
-+#include <sys/cdefs.h>
-+__FBSDID("$FreeBSD$");
-+
-+#include <sys/param.h>
-+#include <sys/linker_set.h>
-+#include <sys/uio.h>
-+#include <sys/capsicum.h>
-+
-+#include <errno.h>
-+#include <fcntl.h>
-+#include <stdio.h>
-+#include <stdlib.h>
-+#include <string.h>
-+#include <unistd.h>
-+#include <assert.h>
-+#include <pthread.h>
-+
-+#include <lib9p.h>
-+#include <backend/fs.h>
-+
-+#include "bhyverun.h"
-+#include "pci_emul.h"
-+#include "virtio.h"
-+
-+#define VT9P_MAX_IOV 128
-+#define VT9P_RINGSZ 256
-+#define VT9P_MAXTAGSZ 256
-+#define VT9P_CONFIGSPACESZ (VT9P_MAXTAGSZ + sizeof(uint16_t))
-+
-+static int pci_vt9p_debug;
-+#define DPRINTF(params) if (pci_vt9p_debug) printf params
-+#define WPRINTF(params) printf params
-+
-+/*
-+ * Per-device softc
-+ */
-+struct pci_vt9p_softc {
-+ struct virtio_softc vsc_vs;
-+ struct vqueue_info vsc_vq;
-+ pthread_mutex_t vsc_mtx;
-+ uint64_t vsc_cfg;
-+ uint64_t vsc_features;
-+ char * vsc_rootpath;
-+ struct pci_vt9p_config * vsc_config;
-+ struct l9p_backend * vsc_fs_backend;
-+ struct l9p_server * vsc_server;
-+ struct l9p_connection * vsc_conn;
-+};
-+
-+struct pci_vt9p_request {
-+ struct pci_vt9p_softc * vsr_sc;
-+ struct iovec * vsr_iov;
-+ size_t vsr_niov;
-+ size_t vsr_respidx;
-+ size_t vsr_iolen;
-+ uint16_t vsr_idx;
-+};
-+
-+struct pci_vt9p_config {
-+ uint16_t tag_len;
-+ char tag[0];
-+} __attribute__((packed));
-+
-+static int pci_vt9p_send(struct l9p_request *, const struct iovec *,
-+ const size_t, const size_t, void *);
-+static void pci_vt9p_drop(struct l9p_request *, const struct iovec *, size_t,
-+ void *);
-+static void pci_vt9p_reset(void *);
-+static void pci_vt9p_notify(void *, struct vqueue_info *);
-+static int pci_vt9p_cfgread(void *, int, int, uint32_t *);
-+static void pci_vt9p_neg_features(void *, uint64_t);
-+
-+static struct virtio_consts vt9p_vi_consts = {
-+ "vt9p", /* our name */
-+ 1, /* we support 1 virtqueue */
-+ VT9P_CONFIGSPACESZ, /* config reg size */
-+ pci_vt9p_reset, /* reset */
-+ pci_vt9p_notify, /* device-wide qnotify */
-+ pci_vt9p_cfgread, /* read virtio config */
-+ NULL, /* write virtio config */
-+ pci_vt9p_neg_features, /* apply negotiated features */
-+ (1 << 0), /* our capabilities */
-+};
-+
-+
-+static void
-+pci_vt9p_reset(void *vsc)
-+{
-+ struct pci_vt9p_softc *sc;
-+
-+ sc = vsc;
-+
-+ DPRINTF(("vt9p: device reset requested !\n"));
-+ vi_reset_dev(&sc->vsc_vs);
-+}
-+
-+static void
-+pci_vt9p_neg_features(void *vsc, uint64_t negotiated_features)
-+{
-+ struct pci_vt9p_softc *sc = vsc;
-+
-+ sc->vsc_features = negotiated_features;
-+}
-+
-+static int
-+pci_vt9p_cfgread(void *vsc, int offset, int size, uint32_t *retval)
-+{
-+ struct pci_vt9p_softc *sc = vsc;
-+ void *ptr;
-+
-+ ptr = (uint8_t *)sc->vsc_config + offset;
-+ memcpy(retval, ptr, size);
-+ return (0);
-+}
-+
-+static int
-+pci_vt9p_get_buffer(struct l9p_request *req, struct iovec *iov, size_t *niov,
-+ void *arg)
-+{
-+ struct pci_vt9p_request *preq = req->lr_aux;
-+ size_t n = preq->vsr_niov - preq->vsr_respidx;
-+
-+ memcpy(iov, preq->vsr_iov + preq->vsr_respidx,
-+ n * sizeof(struct iovec));
-+ *niov = n;
-+ return (0);
-+}
-+
-+static int
-+pci_vt9p_send(struct l9p_request *req, const struct iovec *iov,
-+ const size_t niov, const size_t iolen, void *arg)
-+{
-+ struct pci_vt9p_request *preq = req->lr_aux;
-+ struct pci_vt9p_softc *sc = preq->vsr_sc;
-+
-+ preq->vsr_iolen = iolen;
-+
-+ pthread_mutex_lock(&sc->vsc_mtx);
-+ vq_relchain(&sc->vsc_vq, preq->vsr_idx, preq->vsr_iolen);
-+ vq_endchains(&sc->vsc_vq, 1);
-+ pthread_mutex_unlock(&sc->vsc_mtx);
-+ free(preq);
-+ return (0);
-+}
-+
-+static void
-+pci_vt9p_drop(struct l9p_request *req, const struct iovec *iov, size_t niov,
-+ void *arg)
-+{
-+ struct pci_vt9p_request *preq = req->lr_aux;
-+ struct pci_vt9p_softc *sc = preq->vsr_sc;
-+
-+ pthread_mutex_lock(&sc->vsc_mtx);
-+ vq_relchain(&sc->vsc_vq, preq->vsr_idx, 0);
-+ vq_endchains(&sc->vsc_vq, 1);
-+ pthread_mutex_unlock(&sc->vsc_mtx);
-+ free(preq);
-+}
-+
-+static void
-+pci_vt9p_notify(void *vsc, struct vqueue_info *vq)
-+{
-+ struct iovec iov[VT9P_MAX_IOV];
-+ struct pci_vt9p_softc *sc;
-+ struct pci_vt9p_request *preq;
-+ uint16_t idx, n, i;
-+ uint16_t flags[VT9P_MAX_IOV];
-+
-+ sc = vsc;
-+
-+ while (vq_has_descs(vq)) {
-+ n = vq_getchain(vq, &idx, iov, VT9P_MAX_IOV, flags);
-+ preq = calloc(1, sizeof(struct pci_vt9p_request));
-+ preq->vsr_sc = sc;
-+ preq->vsr_idx = idx;
-+ preq->vsr_iov = iov;
-+ preq->vsr_niov = n;
-+ preq->vsr_respidx = 0;
-+
-+ /* Count readable descriptors */
-+ for (i = 0; i < n; i++) {
-+ if (flags[i] & VRING_DESC_F_WRITE)
-+ break;
-+
-+ preq->vsr_respidx++;
-+ }
-+
-+ for (int i = 0; i < n; i++) {
-+ DPRINTF(("vt9p: vt9p_notify(): desc%d base=%p, "
-+ "len=%zu, flags=0x%04x\r\n", i, iov[i].iov_base,
-+ iov[i].iov_len, flags[i]));
-+ }
-+
-+ l9p_connection_recv(sc->vsc_conn, iov, preq->vsr_respidx, preq);
-+ }
-+}
-+
-+
-+static int
-+pci_vt9p_init(struct vmctx *ctx, struct pci_devinst *pi, char *opts)
-+{
-+ struct pci_vt9p_softc *sc;
-+ char *opt;
-+ char *sharename = NULL;
-+ char *rootpath = NULL;
-+ int rootfd;
-+ bool ro = false;
-+ cap_rights_t rootcap;
-+
-+ if (opts == NULL) {
-+ printf("virtio-9p: share name and path required\n");
-+ return (1);
-+ }
-+
-+ while ((opt = strsep(&opts, ",")) != NULL) {
-+ if (strchr(opt, '=') != NULL) {
-+ if (sharename != NULL) {
-+ printf("virtio-9p: more than one share name given\n");
-+ return (1);
-+ }
-+
-+ sharename = strsep(&opt, "=");
-+ rootpath = opt;
-+ continue;
-+ }
-+
-+ if (strcmp(opt, "ro") == 0) {
-+ DPRINTF(("read-only mount requested\r\n"));
-+ ro = true;
-+ continue;
-+ }
-+
-+ printf("virtio-9p: invalid option '%s'\n", opt);
-+ return (1);
-+ }
-+
-+ if (strlen(sharename) > VT9P_MAXTAGSZ) {
-+ printf("virtio-9p: share name too long\n");
-+ return (1);
-+ }
-+
-+ rootfd = open(rootpath, O_DIRECTORY);
-+ if (rootfd < 0)
-+ return (-1);
-+
-+ sc = calloc(1, sizeof(struct pci_vt9p_softc));
-+ sc->vsc_config = calloc(1, sizeof(struct pci_vt9p_config) +
-+ VT9P_MAXTAGSZ);
-+
-+ pthread_mutex_init(&sc->vsc_mtx, NULL);
-+
-+ cap_rights_init(&rootcap,
-+ CAP_LOOKUP, CAP_ACL_CHECK, CAP_ACL_DELETE, CAP_ACL_GET,
-+ CAP_ACL_SET, CAP_READ, CAP_WRITE, CAP_SEEK, CAP_FSTAT,
-+ CAP_CREATE, CAP_FCHMODAT, CAP_FCHOWNAT, CAP_FTRUNCATE,
-+ CAP_LINKAT_SOURCE, CAP_LINKAT_TARGET, CAP_MKDIRAT, CAP_MKNODAT,
-+ CAP_PREAD, CAP_PWRITE, CAP_RENAMEAT_SOURCE, CAP_RENAMEAT_TARGET,
-+ CAP_SEEK, CAP_SYMLINKAT, CAP_UNLINKAT, CAP_EXTATTR_DELETE,
-+ CAP_EXTATTR_GET, CAP_EXTATTR_LIST, CAP_EXTATTR_SET,
-+ CAP_FUTIMES, CAP_FSTATFS, CAP_FSYNC, CAP_FPATHCONF);
-+
-+ if (cap_rights_limit(rootfd, &rootcap) != 0)
-+ return (1);
-+
-+ sc->vsc_config->tag_len = (uint16_t)strlen(sharename);
-+ memcpy(sc->vsc_config->tag, sharename, sc->vsc_config->tag_len);
-+
-+ if (l9p_backend_fs_init(&sc->vsc_fs_backend, rootfd, ro) != 0) {
-+ errno = ENXIO;
-+ return (1);
-+ }
-+
-+ if (l9p_server_init(&sc->vsc_server, sc->vsc_fs_backend) != 0) {
-+ errno = ENXIO;
-+ return (1);
-+ }
-+
-+ if (l9p_connection_init(sc->vsc_server, &sc->vsc_conn) != 0) {
-+ errno = EIO;
-+ return (1);
-+ }
-+
-+ sc->vsc_conn->lc_msize = L9P_MAX_IOV * PAGE_SIZE;
-+ sc->vsc_conn->lc_lt.lt_get_response_buffer = pci_vt9p_get_buffer;
-+ sc->vsc_conn->lc_lt.lt_send_response = pci_vt9p_send;
-+ sc->vsc_conn->lc_lt.lt_drop_response = pci_vt9p_drop;
-+
-+ vi_softc_linkup(&sc->vsc_vs, &vt9p_vi_consts, sc, pi, &sc->vsc_vq);
-+ sc->vsc_vs.vs_mtx = &sc->vsc_mtx;
-+ sc->vsc_vq.vq_qsize = VT9P_RINGSZ;
-+
-+ /* initialize config space */
-+ pci_set_cfgdata16(pi, PCIR_DEVICE, VIRTIO_DEV_9P);
-+ pci_set_cfgdata16(pi, PCIR_VENDOR, VIRTIO_VENDOR);
-+ pci_set_cfgdata8(pi, PCIR_CLASS, PCIC_STORAGE);
-+ pci_set_cfgdata16(pi, PCIR_SUBDEV_0, VIRTIO_TYPE_9P);
-+ pci_set_cfgdata16(pi, PCIR_SUBVEND_0, VIRTIO_VENDOR);
-+
-+ if (vi_intr_init(&sc->vsc_vs, 1, fbsdrun_virtio_msix()))
-+ return (1);
-+ vi_set_io_bar(&sc->vsc_vs, 0);
-+
-+ return (0);
-+}
-+
-+struct pci_devemu pci_de_v9p = {
-+ .pe_emu = "virtio-9p",
-+ .pe_init = pci_vt9p_init,
-+ .pe_barwrite = vi_pci_write,
-+ .pe_barread = vi_pci_read
-+};
-+PCI_EMUL_SET(pci_de_v9p);
---- usr.sbin/bhyve/virtio.h.orig 2021-08-19 22:41:21 UTC
-+++ usr.sbin/bhyve/virtio.h
-@@ -216,6 +216,7 @@ struct vring_used {
- #define VIRTIO_DEV_CONSOLE 0x1003
- #define VIRTIO_DEV_RANDOM 0x1005
- #define VIRTIO_DEV_SCSI 0x1008
-+#define VIRTIO_DEV_9P 0x1009
-
- /*
- * PCI config space constants.
diff --git a/sysutils/dynamic_motd/Makefile b/sysutils/dynamic_motd/Makefile
index 56cdae0f78b1..24ebb329e7fc 100644
--- a/sysutils/dynamic_motd/Makefile
+++ b/sysutils/dynamic_motd/Makefile
@@ -10,8 +10,6 @@ WWW= https://github.com/sstallion/dynamic_motd
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-IGNORE_FreeBSD_12= requires FreeBSD 13.0 or later
-
NO_ARCH= yes
USE_GITHUB= yes
GH_ACCOUNT= sstallion
diff --git a/sysutils/egress-monitor/Makefile b/sysutils/egress-monitor/Makefile
index 85dcaed66b3d..9ceb2586f410 100644
--- a/sysutils/egress-monitor/Makefile
+++ b/sysutils/egress-monitor/Makefile
@@ -9,8 +9,6 @@ WWW= https://github.com/mekanix/egress-monitor
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN_FreeBSD_12= casper sysctl service works only in 13.0 and onward
-
USES= uidfix
USE_RC_SUBR= egress-monitor
SUB_FILES= pkg-message
diff --git a/sysutils/hammer2/Makefile b/sysutils/hammer2/Makefile
index c1e256d68cbe..61e4321a4fb6 100644
--- a/sysutils/hammer2/Makefile
+++ b/sysutils/hammer2/Makefile
@@ -10,8 +10,6 @@ WWW= https://github.com/kusumi/freebsd_hammer2
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
-IGNORE_FreeBSD_12= Not supported on FreeBSD 12
-
USES= kmod uidfix
USE_GITHUB= yes
diff --git a/sysutils/hid-tools/Makefile b/sysutils/hid-tools/Makefile
index 94b47e0663ad..df69734b8b32 100644
--- a/sysutils/hid-tools/Makefile
+++ b/sysutils/hid-tools/Makefile
@@ -8,7 +8,6 @@ WWW= https://gitlab.freedesktop.org/libevdev/hid-tools
LICENSE= GPLv2
-RUN_DEPENDS_FreeBSD_12= iichid>=0.0.6:sysutils/iichid
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>=0:devel/py-click@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}parse>=0:textproc/py-parse@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyudev>=0:devel/py-pyudev@${PY_FLAVOR} \
diff --git a/sysutils/mbgtools/Makefile b/sysutils/mbgtools/Makefile
index 0de8296059a0..c8884cd1f80d 100644
--- a/sysutils/mbgtools/Makefile
+++ b/sysutils/mbgtools/Makefile
@@ -10,7 +10,6 @@ WWW= https://www.meinbergglobal.com/english/sw/
LICENSE= BSD2CLAUSE
BROKEN_mips64= fails to compile: unused variables
-BROKEN_sparc64= fails to compile: error in structure definitions
USES= kmod uidfix
USE_RC_SUBR= mbgsvcd
diff --git a/sysutils/mtm/Makefile b/sysutils/mtm/Makefile
index fe7152acf70d..c163ae159e22 100644
--- a/sysutils/mtm/Makefile
+++ b/sysutils/mtm/Makefile
@@ -10,7 +10,7 @@ LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/README.rst
# NB: ncurses 6.1 is required.
-USES= localbase
+USES= localbase ncurses:base
USE_CSTD= gnu99
USE_GITHUB= yes
@@ -33,15 +33,4 @@ do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/mtm.ti ${STAGEDIR}${DATADIR}/mtm.ti
-.include <bsd.port.options.mk>
-
-.if make(makesum) || make(fetch) && "${NO_CHECKSUM}" == yes
-.else
-.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1300079
-USES+= ncurses:base
-.else
-USES+= ncurses:port
-.endif
-.endif
-
.include <bsd.port.mk>
diff --git a/sysutils/ocijail/Makefile b/sysutils/ocijail/Makefile
index 454333c54777..f1a5b730733d 100644
--- a/sysutils/ocijail/Makefile
+++ b/sysutils/ocijail/Makefile
@@ -9,8 +9,6 @@ WWW= https://github.com/dfr/ocijail
LICENSE= BSD3CLAUSE
-IGNORE_FreeBSD_12= Not supported on FreeBSD 12 (uses c++20)
-
BUILD_DEPENDS= bazel:devel/bazel5 bash:shells/bash
USE_GITHUB= yes
diff --git a/sysutils/openzfs-kmod/Makefile b/sysutils/openzfs-kmod/Makefile
index efe70503f18a..6377620d21f1 100644
--- a/sysutils/openzfs-kmod/Makefile
+++ b/sysutils/openzfs-kmod/Makefile
@@ -21,6 +21,7 @@ KMODTARGET?= openzfs.ko
PLIST_FILES= ${KMODDIR}/${KMODTARGET}
OPTIONS_DEFINE= DEBUG INVARIANTS GCOV
+OPTIONS_DEFAULT= DEBUG INVARIANTS
OPTIONS_SUB= yes
GCOV_DESC= Build kernel module with GCOV support (Requires gcc)
@@ -30,10 +31,6 @@ INVARIANTS_IMPLIES= DEBUG
.include <bsd.port.options.mk>
-.if ${OSVERSION} >= 1300000
-OPTIONS_DEFAULT= DEBUG INVARIANTS
-.endif
-
MAKE_OPTS+= SYSDIR=${SRC_BASE}/sys
.if ${PORT_OPTIONS:MDEBUG}
diff --git a/sysutils/plasma5-powerdevil/files/patch-daemon_backends_upower_freebsdbacklighthelper.cpp b/sysutils/plasma5-powerdevil/files/patch-daemon_backends_upower_freebsdbacklighthelper.cpp
deleted file mode 100644
index 6e79ebfdd181..000000000000
--- a/sysutils/plasma5-powerdevil/files/patch-daemon_backends_upower_freebsdbacklighthelper.cpp
+++ /dev/null
@@ -1,17 +0,0 @@
-Fix build on FreeBSD 12.x.
-
-/usr/include/sys/sysctl.h:1117:25: error: unknown type name 'u_int'; did you mean 'uint'?
-int sysctl(const int *, u_int, void *, size_t *, const void *, size_t);
- ^
---- daemon/backends/upower/freebsdbacklighthelper.cpp.orig 2023-12-11 05:59:31 UTC
-+++ daemon/backends/upower/freebsdbacklighthelper.cpp
-@@ -31,8 +31,8 @@
-
- #include <algorithm>
- #include <climits>
--#include <sys/sysctl.h>
- #include <sys/types.h>
-+#include <sys/sysctl.h>
- #include <sys/utsname.h>
-
- #define BACKLIGHT_PATH "/dev/backlight/"
diff --git a/sysutils/syslog-ng/Makefile b/sysutils/syslog-ng/Makefile
index 80cd1de562b3..ce2990fe0280 100644
--- a/sysutils/syslog-ng/Makefile
+++ b/sysutils/syslog-ng/Makefile
@@ -14,8 +14,6 @@ LICENSE= GPLv2+ LGPL21+
LICENSE_COMB= multi
LICENSE_FILE= ${WRKSRC}/COPYING
-BROKEN_sparc64= fails to link: Internal error: Segmentation fault (program ld)
-
LIB_DEPENDS= libpcre2-8.so:devel/pcre2 \
libuuid.so:misc/e2fsprogs-libuuid \
libivykis.so:devel/ivykis
diff --git a/sysutils/vector/Makefile b/sysutils/vector/Makefile
index 71862cdf9dd2..0c97baa7498d 100644
--- a/sysutils/vector/Makefile
+++ b/sysutils/vector/Makefile
@@ -12,7 +12,6 @@ LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_FreeBSD_13= error: could not compile `num-bigint` (lib) due to 4 previous errors
-BROKEN_FreeBSD_12_powerpc64= fails to link: /usr/local/bin/ld: cannot find -lc++
BUILD_DEPENDS= protoc:devel/protobuf
LIB_DEPENDS= libonig.so:devel/oniguruma \
diff --git a/sysutils/xen-tools/Makefile b/sysutils/xen-tools/Makefile
index aa38e286eb47..47db9b7ccc39 100644
--- a/sysutils/xen-tools/Makefile
+++ b/sysutils/xen-tools/Makefile
@@ -75,10 +75,6 @@ DOCS_INSTALL_TARGET= install-docs
IGNORE= only supported on FreeBSD
.endif
-.if ${PORT_OPTIONS:MSPICE} && ${OSVERSION} < 1300008
-BROKEN= SPICE support requires FreeBSD version 13.0 or higher
-.endif
-
post-extract:
${MV} ${WRKSRC_qemu} ${WRKSRC}/tools/qemu-xen
${RM} -rf ${WRKSRC}/tools/qemu-xen/dtc
diff --git a/sysutils/xnvme/Makefile b/sysutils/xnvme/Makefile
index 319092dde4cb..72b41ce9f814 100644
--- a/sysutils/xnvme/Makefile
+++ b/sysutils/xnvme/Makefile
@@ -11,7 +11,6 @@ LICENSE= BSD3CLAUSE
NOT_FOR_ARCHS= armv7 i386
NOT_FOR_ARCHS_REASON= use of types with platform-specific length
-BROKEN_FreeBSD_12= no member named 'aio_iov' in 'struct aiocb'
USES= meson
USE_LDCONFIG= yes
diff --git a/sysutils/zidrav/Makefile b/sysutils/zidrav/Makefile
index 4a7df7ffff27..c46b22c7447c 100644
--- a/sysutils/zidrav/Makefile
+++ b/sysutils/zidrav/Makefile
@@ -28,7 +28,7 @@ CFLAGS+= -Dcrc32_type=long
CFLAGS+= -Dcrc32_type=int
.endif
-.if ! empty(ARCH:Mmips*) || ${ARCH} == powerpc || ${ARCH} == powerpc64 || ${ARCH} == "sparc64"
+.if ! empty(ARCH:Mmips*) || ${ARCH} == powerpc || ${ARCH} == powerpc64
CFLAGS+= -DCPU_BIGENDIAN
.endif
diff --git a/textproc/apertium/Makefile b/textproc/apertium/Makefile
index bce28535aa00..2b753167aec8 100644
--- a/textproc/apertium/Makefile
+++ b/textproc/apertium/Makefile
@@ -10,8 +10,6 @@ WWW= https://www.apertium.org/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
-BROKEN_FreeBSD_12_powerpc64= fails to configure on powerpc64 elfv1: *** unable to locate pcrecpp library ***
-
BUILD_DEPENDS= bash:shells/bash \
utf8cpp3>0:devel/utf8cpp3
LIB_DEPENDS= libicudata.so:devel/icu \
diff --git a/textproc/p5-CSS-Sass/Makefile b/textproc/p5-CSS-Sass/Makefile
index 3708440d9dcc..dafe08a303a6 100644
--- a/textproc/p5-CSS-Sass/Makefile
+++ b/textproc/p5-CSS-Sass/Makefile
@@ -11,8 +11,6 @@ WWW= https://metacpan.org/release/OCBNET/CSS-Sass-3.4.12
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN_FreeBSD_12_powerpc64= fails to build: /usr/local/bin/ld: cannot find -lc++
-
BUILD_DEPENDS= p5-ExtUtils-CppGuess>=0.14:devel/p5-ExtUtils-CppGuess \
${RUN_DEPENDS}
RUN_DEPENDS= p5-Encode-Locale>=0.01:converters/p5-Encode-Locale \
diff --git a/textproc/py-ufal.udpipe/Makefile b/textproc/py-ufal.udpipe/Makefile
index 61946b3cd140..d751d1042785 100644
--- a/textproc/py-ufal.udpipe/Makefile
+++ b/textproc/py-ufal.udpipe/Makefile
@@ -11,7 +11,7 @@ WWW= https://ufal.mff.cuni.cz/udpipe
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
-NOT_FOR_ARCHS= mips mips64 powerpc powerpc64 powerpcspe sparc64
+NOT_FOR_ARCHS= mips mips64 powerpc powerpc64 powerpcspe
NOT_FOR_ARCHS_REASON= Only little endian systems are supported!
USES= compiler:c++11-lang python
diff --git a/textproc/senna/Makefile b/textproc/senna/Makefile
index d209bb5f423f..bfca3a95f4db 100644
--- a/textproc/senna/Makefile
+++ b/textproc/senna/Makefile
@@ -12,7 +12,6 @@ WWW= http://qwik.jp/senna/
BROKEN_aarch64= does not build: libsenna.so: undefined reference to SEN_ATOMIC_ADD_EX
BROKEN_armv6= does not build: libsenna.so: undefined reference to SEN_ATOMIC_ADD_EX
BROKEN_armv7= does not build: libsenna.so: undefined reference to SEN_ATOMIC_ADD_EX
-BROKEN_sparc64= does not build: libsenna.so: undefined reference to SEN_ATOMIC_ADD_EX
USES= compiler:c11 gmake libtool pathfix
GNU_CONFIGURE= yes
diff --git a/textproc/source-highlight/Makefile b/textproc/source-highlight/Makefile
index 16468294e255..43670ebe70a1 100644
--- a/textproc/source-highlight/Makefile
+++ b/textproc/source-highlight/Makefile
@@ -11,8 +11,6 @@ WWW= https://www.gnu.org/software/src-highlite/source-highlight.html
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
-BROKEN_sparc64= fails to compile with GCC 4.2
-
BUILD_DEPENDS= exctags:devel/ctags
LIB_DEPENDS= libboost_regex.so:devel/boost-libs
diff --git a/textproc/turboxsl/Makefile b/textproc/turboxsl/Makefile
index ba51888fe3cc..e5b330158424 100644
--- a/textproc/turboxsl/Makefile
+++ b/textproc/turboxsl/Makefile
@@ -10,7 +10,7 @@ WWW= https://github.com/Litres/turboxsl
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
-ONLY_FOR_ARCHS= aarch64 amd64 powerpc64 powerpc64le sparc64
+ONLY_FOR_ARCHS= aarch64 amd64 powerpc64 powerpc64le
LIB_DEPENDS= libck.so:devel/concurrencykit \
libmemcached.so:databases/libmemcached
diff --git a/textproc/uim/Makefile b/textproc/uim/Makefile
index ccda1647d0bf..22d336c247b4 100644
--- a/textproc/uim/Makefile
+++ b/textproc/uim/Makefile
@@ -76,7 +76,7 @@ PLIST_SUB+= X11=""
.include <bsd.port.pre.mk>
-.if ${ARCH} == "amd64" || ${ARCH} == "sparc64"
+.if ${ARCH} == "amd64"
CONFIGURE_ARGS+= --enable-storage=fatty
.endif
diff --git a/textproc/xmlwrapp/Makefile b/textproc/xmlwrapp/Makefile
index 457003639d9c..bb77752ff678 100644
--- a/textproc/xmlwrapp/Makefile
+++ b/textproc/xmlwrapp/Makefile
@@ -11,8 +11,6 @@ WWW= https://xmlwrapp.sourceforge.net/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN_FreeBSD_12_powerpc64= fails to configure: invalid value: boost_major_version=
-
LIB_DEPENDS= libboost_iostreams.so:devel/boost-libs
OPTIONS_DEFINE= XSLT DOCS
diff --git a/www/chromium/files/patch-third__party_wayland_include_config.h b/www/chromium/files/patch-third__party_wayland_include_config.h
index 6b7e5c6c9d9a..30297975c5e9 100644
--- a/www/chromium/files/patch-third__party_wayland_include_config.h
+++ b/www/chromium/files/patch-third__party_wayland_include_config.h
@@ -1,21 +1,6 @@
---- third_party/wayland/include/config.h.orig 2023-03-01 05:42:12 UTC
+--- third_party/wayland/include/config.h.orig 2023-12-06 23:00:58 UTC
+++ third_party/wayland/include/config.h
-@@ -9,7 +9,14 @@
-
- #define HAVE_BROKEN_MSG_CMSG_CLOEXEC 0
-
-+#if defined(__FreeBSD__)
-+#include <osreldate.h>
-+#if defined(__FreeBSD_version) && __FreeBSD_version < 1300048
-+#undef HAVE_MEMFD_CREATE
-+#else
- #define HAVE_MEMFD_CREATE
-+#endif
-+#endif
-
- #define HAVE_MKOSTEMP
-
-@@ -25,7 +32,11 @@
+@@ -25,11 +25,14 @@
#undef HAVE_SYS_PROCCTL_H
@@ -27,3 +12,7 @@
#define HAVE_XUCRED_CR_PID 0
+ #define PACKAGE "wayland"
+
+ #define PACKAGE_VERSION "1.21.0"
+-
diff --git a/www/chromium/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc b/www/chromium/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc
deleted file mode 100644
index 93077eaa7c04..000000000000
--- a/www/chromium/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc
+++ /dev/null
@@ -1,21 +0,0 @@
---- ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc.orig 2023-10-11 18:22:24 UTC
-+++ ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc
-@@ -226,6 +226,10 @@ void ZWPTextInputWrapperV1::SetSurroundingText(
- // so if it exceeds 16 bits, it may be broken.
- static constexpr size_t kSizeLimit = 60000;
- if (HasAdvancedSurroundingTextSupport() && text.length() > kSizeLimit) {
-+#if defined(__FreeBSD_version) && __FreeBSD_version < 1300048
-+ PLOG(ERROR) << "memfd is not supported";
-+ return;
-+#else
- base::ScopedFD memfd(memfd_create("surrounding_text", MFD_CLOEXEC));
- if (!memfd.get()) {
- PLOG(ERROR) << "Failed to create memfd";
-@@ -238,6 +242,7 @@ void ZWPTextInputWrapperV1::SetSurroundingText(
- zcr_extended_text_input_v1_set_large_surrounding_text(
- extended_obj_.get(), memfd.get(), text.length(),
- selection_range.start(), selection_range.end());
-+#endif
- } else {
- zwp_text_input_v1_set_surrounding_text(obj_.get(), text.c_str(),
- selection_range.start(),
diff --git a/www/edbrowse/Makefile b/www/edbrowse/Makefile
index c65a59d355f8..c8274684bdb0 100644
--- a/www/edbrowse/Makefile
+++ b/www/edbrowse/Makefile
@@ -31,13 +31,6 @@ PORTDOCS= *
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
-# Skip openssl.pc while using OpenSSL from base system on older FreeBSD versions which does not skip this file
-.if ${SSL_DEFAULT} == base && !exists(/usr/libdata/pkgconfig/openssl.pc)
-EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-openssl
-.endif
-
do-install:
${INSTALL_MAN} ${WRKSRC}/doc/man-edbrowse-freebsd.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/${PORTNAME}.1
${INSTALL_PROGRAM} ${WRKSRC}/src/edbrowse ${STAGEDIR}${PREFIX}/bin
diff --git a/www/edbrowse/files/extra-patch-openssl b/www/edbrowse/files/extra-patch-openssl
deleted file mode 100644
index 97786da57ebf..000000000000
--- a/www/edbrowse/files/extra-patch-openssl
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/makefile.orig 2023-11-17 18:00:41.589174000 +0100
-+++ src/makefile 2023-11-17 18:01:13.273125000 +0100
-@@ -9,7 +9,7 @@
- CFLAGS += $(PLATFORM_CFLAGS)
-
- # determine includes and linker flags
--DEPENDENCIES = libcurl:curl odbc libpcre2-8:pcre2-8 readline openssl
-+DEPENDENCIES = libcurl:curl odbc libpcre2-8:pcre2-8 readline
- INCLUDES = $(shell ./make-helper.sh pkg-config-includes $(DEPENDENCIES))
- LINKER_LIBS = $(shell ./make-helper.sh pkg-config-libs $(DEPENDENCIES))
- CFLAGS += $(INCLUDES)
diff --git a/www/firefox-esr/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc b/www/firefox-esr/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc
deleted file mode 100644
index 5af9e7ec2d70..000000000000
--- a/www/firefox-esr/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc
+++ /dev/null
@@ -1,23 +0,0 @@
-commit d1f5a45c1906e9f1e6a51f3b44c52d981bb3958c
-Author: Christoph Moench-Tegeder <cmt@burggraben.net>
-Date: Wed Oct 12 19:57:20 2022 +0200
-
- pull in sys/types.h for u_XXX typedefs on FreeBSD 12
-
- In file included from /wrkdirs/usr/ports/www/firefox/work/firefox-106.0/third_party/libwebrtc/rtc_base/ip_address.cc:20:
- /usr/include/netinet/ip.h:53:2: error: unknown type name 'u_char'; did you mean 'char'?
- u_char ip_hl:4, /* header length */
-
-diff --git third_party/libwebrtc/rtc_base/ip_address.cc third_party/libwebrtc/rtc_base/ip_address.cc
-index d544b611e149..ef9b742dac5f 100644
---- third_party/libwebrtc/rtc_base/ip_address.cc
-+++ third_party/libwebrtc/rtc_base/ip_address.cc
-@@ -11,6 +11,8 @@
- #if defined(WEBRTC_POSIX)
- #include <netinet/in.h>
- #include <sys/socket.h>
-+/* for u_char/u_short etc on FreeBSD 12 */
-+#include <sys/types.h>
-
- #include "absl/strings/string_view.h"
- #ifdef OPENBSD
diff --git a/www/firefox/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc b/www/firefox/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc
deleted file mode 100644
index 5af9e7ec2d70..000000000000
--- a/www/firefox/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc
+++ /dev/null
@@ -1,23 +0,0 @@
-commit d1f5a45c1906e9f1e6a51f3b44c52d981bb3958c
-Author: Christoph Moench-Tegeder <cmt@burggraben.net>
-Date: Wed Oct 12 19:57:20 2022 +0200
-
- pull in sys/types.h for u_XXX typedefs on FreeBSD 12
-
- In file included from /wrkdirs/usr/ports/www/firefox/work/firefox-106.0/third_party/libwebrtc/rtc_base/ip_address.cc:20:
- /usr/include/netinet/ip.h:53:2: error: unknown type name 'u_char'; did you mean 'char'?
- u_char ip_hl:4, /* header length */
-
-diff --git third_party/libwebrtc/rtc_base/ip_address.cc third_party/libwebrtc/rtc_base/ip_address.cc
-index d544b611e149..ef9b742dac5f 100644
---- third_party/libwebrtc/rtc_base/ip_address.cc
-+++ third_party/libwebrtc/rtc_base/ip_address.cc
-@@ -11,6 +11,8 @@
- #if defined(WEBRTC_POSIX)
- #include <netinet/in.h>
- #include <sys/socket.h>
-+/* for u_char/u_short etc on FreeBSD 12 */
-+#include <sys/types.h>
-
- #include "absl/strings/string_view.h"
- #ifdef OPENBSD
diff --git a/www/h2o-devel/Makefile b/www/h2o-devel/Makefile
index 49d731d58d6b..fb4319266318 100644
--- a/www/h2o-devel/Makefile
+++ b/www/h2o-devel/Makefile
@@ -13,7 +13,6 @@ LICENSE_COMB= multi
BROKEN_armv6= fails to compile: asm_arm.inc:139:36: '.syntax divided' arm assembly not supported
BROKEN_armv7= fails to compile: asm_arm.inc:139:36: '.syntax divided' arm assembly not supported
-BROKEN_FreeBSD_12_powerpc64= fails to link on powerpc64 elfv1: unrecognized option '-Wl,-rpath=/usr/local/lib/gcc6'
BUILD_DEPENDS= rubygem-rake>=0:devel/rubygem-rake
LIB_DEPENDS= libuv.so:devel/libuv
diff --git a/www/h2o/Makefile b/www/h2o/Makefile
index 1cd762f288ac..fe51682ffaea 100644
--- a/www/h2o/Makefile
+++ b/www/h2o/Makefile
@@ -17,7 +17,6 @@ LICENSE_COMB= multi
DEPRECATED= Upstream EOL confirmed on 2023-10-10, removal planned for 2023-12-30
BROKEN_armv6= fails to compile: asm_arm.inc:139:36: '.syntax divided' arm assembly not supported
BROKEN_armv7= fails to compile: asm_arm.inc:139:36: '.syntax divided' arm assembly not supported
-BROKEN_FreeBSD_12_powerpc64= fails to link: unrecognized option '-Wl,-rpath=/usr/local/lib/gcc6'
LIB_DEPENDS= libuv.so:devel/libuv
diff --git a/www/iridium/files/patch-third__party_wayland_include_config.h b/www/iridium/files/patch-third__party_wayland_include_config.h
index 4275b5ab44b4..40c25cadce67 100644
--- a/www/iridium/files/patch-third__party_wayland_include_config.h
+++ b/www/iridium/files/patch-third__party_wayland_include_config.h
@@ -1,21 +1,6 @@
---- third_party/wayland/include/config.h.orig 2023-03-13 07:33:08 UTC
+--- third_party/wayland/include/config.h.orig 2023-11-15 11:07:48 UTC
+++ third_party/wayland/include/config.h
-@@ -9,7 +9,14 @@
-
- #define HAVE_BROKEN_MSG_CMSG_CLOEXEC 0
-
-+#if defined(__FreeBSD__)
-+#include <osreldate.h>
-+#if defined(__FreeBSD_version) && __FreeBSD_version < 1300048
-+#undef HAVE_MEMFD_CREATE
-+#else
- #define HAVE_MEMFD_CREATE
-+#endif
-+#endif
-
- #define HAVE_MKOSTEMP
-
-@@ -25,7 +32,11 @@
+@@ -25,11 +25,14 @@
#undef HAVE_SYS_PROCCTL_H
@@ -27,3 +12,7 @@
#define HAVE_XUCRED_CR_PID 0
+ #define PACKAGE "wayland"
+
+ #define PACKAGE_VERSION "1.21.0"
+-
diff --git a/www/iridium/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc b/www/iridium/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc
deleted file mode 100644
index e187da9c1274..000000000000
--- a/www/iridium/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc
+++ /dev/null
@@ -1,21 +0,0 @@
---- ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc.orig 2023-10-21 11:51:27 UTC
-+++ ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc
-@@ -226,6 +226,10 @@ void ZWPTextInputWrapperV1::SetSurroundingText(
- // so if it exceeds 16 bits, it may be broken.
- static constexpr size_t kSizeLimit = 60000;
- if (HasAdvancedSurroundingTextSupport() && text.length() > kSizeLimit) {
-+#if defined(__FreeBSD_version) && __FreeBSD_version < 1300048
-+ PLOG(ERROR) << "memfd is not supported";
-+ return;
-+#else
- base::ScopedFD memfd(memfd_create("surrounding_text", MFD_CLOEXEC));
- if (!memfd.get()) {
- PLOG(ERROR) << "Failed to create memfd";
-@@ -238,6 +242,7 @@ void ZWPTextInputWrapperV1::SetSurroundingText(
- zcr_extended_text_input_v1_set_large_surrounding_text(
- extended_obj_.get(), memfd.get(), text.length(),
- selection_range.start(), selection_range.end());
-+#endif
- } else {
- zwp_text_input_v1_set_surrounding_text(obj_.get(), text.c_str(),
- selection_range.start(),
diff --git a/www/ladybird/Makefile b/www/ladybird/Makefile
index 2dbdde6f42d8..d486369b303e 100644
--- a/www/ladybird/Makefile
+++ b/www/ladybird/Makefile
@@ -24,7 +24,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
# see Userland/Libraries/LibWeb/Loader/ResourceLoader.h
ONLY_FOR_ARCHS= aarch64 amd64 i386 riscv64
ONLY_FOR_ARCHS_REASON= other architectures not recognised by build system
-BROKEN_FreeBSD_12= C++ template issues
BROKEN_i386= Userland/Libraries/LibJIT/GDBElf.cpp:29:24: bit cast source size does not equal destination size
BUILD_DEPENDS= ${LOCALBASE}/share/public_suffix_list/public_suffix_list.dat:dns/public_suffix_list
diff --git a/www/librewolf/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc b/www/librewolf/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc
deleted file mode 100644
index 5af9e7ec2d70..000000000000
--- a/www/librewolf/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc
+++ /dev/null
@@ -1,23 +0,0 @@
-commit d1f5a45c1906e9f1e6a51f3b44c52d981bb3958c
-Author: Christoph Moench-Tegeder <cmt@burggraben.net>
-Date: Wed Oct 12 19:57:20 2022 +0200
-
- pull in sys/types.h for u_XXX typedefs on FreeBSD 12
-
- In file included from /wrkdirs/usr/ports/www/firefox/work/firefox-106.0/third_party/libwebrtc/rtc_base/ip_address.cc:20:
- /usr/include/netinet/ip.h:53:2: error: unknown type name 'u_char'; did you mean 'char'?
- u_char ip_hl:4, /* header length */
-
-diff --git third_party/libwebrtc/rtc_base/ip_address.cc third_party/libwebrtc/rtc_base/ip_address.cc
-index d544b611e149..ef9b742dac5f 100644
---- third_party/libwebrtc/rtc_base/ip_address.cc
-+++ third_party/libwebrtc/rtc_base/ip_address.cc
-@@ -11,6 +11,8 @@
- #if defined(WEBRTC_POSIX)
- #include <netinet/in.h>
- #include <sys/socket.h>
-+/* for u_char/u_short etc on FreeBSD 12 */
-+#include <sys/types.h>
-
- #include "absl/strings/string_view.h"
- #ifdef OPENBSD
diff --git a/www/luakit-devel/Makefile b/www/luakit-devel/Makefile
index 484c51c1484f..5eb0029ff2c8 100644
--- a/www/luakit-devel/Makefile
+++ b/www/luakit-devel/Makefile
@@ -13,9 +13,6 @@ WWW= https://luakit.github.io
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING.GPLv3
-NOT_FOR_ARCHS= sparc64
-NOT_FOR_ARCHS_REASON_sparc64= Does not install on sparc64
-
BUILD_DEPENDS= help2man:misc/help2man \
${LUA_MODLIBDIR}/lfs.so:devel/luafilesystem@${LUA_FLAVOR}
LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib \
diff --git a/www/luakit/Makefile b/www/luakit/Makefile
index 06b1ad60ac83..543dea6d7344 100644
--- a/www/luakit/Makefile
+++ b/www/luakit/Makefile
@@ -11,9 +11,6 @@ WWW= https://luakit.github.io
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING.GPLv3
-NOT_FOR_ARCHS= sparc64
-NOT_FOR_ARCHS_REASON_sparc64= Does not install on sparc64
-
BUILD_DEPENDS= help2man:misc/help2man \
${LUA_MODLIBDIR}/lfs.so:devel/luafilesystem@${LUA_FLAVOR}
LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib \
diff --git a/www/nginx-devel/Makefile b/www/nginx-devel/Makefile
index db5d7e5ade6b..a10ae1556677 100644
--- a/www/nginx-devel/Makefile
+++ b/www/nginx-devel/Makefile
@@ -151,6 +151,8 @@ HTTP_IMAGE_FILTER_VARS= DSO_BASEMODS+=http_image_filter_module
HTTP_MP4_CONFIGURE_ON= --with-http_mp4_module
HTTP_PERL_CATEGORIES= perl5
HTTP_PERL_USES= perl5
+# Fix build failure on clang >= 12
+HTTP_PERL_CFLAGS= -Wno-compound-token-split-by-macro
HTTP_PERL_VARS= DSO_BASEMODS+=http_perl_module
HTTP_RANDOM_INDEX_CONFIGURE_ON= --with-http_random_index_module
HTTP_REALIP_CONFIGURE_ON= --with-http_realip_module
@@ -241,11 +243,6 @@ CFLAGS+= -DNDEBUG
CONFIGURE_ENV+= EXTRA_PRE_CXXFLAGS="-std=c++14"
.endif
-# Fix build failure on clang >= 12
-.if ${PORT_OPTIONS:MHTTP_PERL} && ${OSVERSION} >= 1301000
-CFLAGS+= -Wno-compound-token-split-by-macro
-.endif
-
.if empty(PORT_OPTIONS:MLUA) && empty(PORT_OPTIONS:MMODSECURITY3) && \
empty(PORT_OPTIONS:MPASSENGER)
CONFIGURE_ARGS+= --with-ld-opt="-L ${LOCALBASE}/lib"
diff --git a/www/nginx/Makefile b/www/nginx/Makefile
index cc09a0a1f60a..e18aca01d390 100644
--- a/www/nginx/Makefile
+++ b/www/nginx/Makefile
@@ -151,6 +151,8 @@ HTTP_IMAGE_FILTER_VARS= DSO_BASEMODS+=http_image_filter_module
HTTP_MP4_CONFIGURE_ON= --with-http_mp4_module
HTTP_PERL_CATEGORIES= perl5
HTTP_PERL_USES= perl5
+# Fix build failure on clang >= 12
+HTTP_PERL_CFLAGS= -Wno-compound-token-split-by-macro
HTTP_PERL_VARS= DSO_BASEMODS+=http_perl_module
HTTP_RANDOM_INDEX_CONFIGURE_ON= --with-http_random_index_module
HTTP_REALIP_CONFIGURE_ON= --with-http_realip_module
@@ -244,11 +246,6 @@ CFLAGS+= -DNDEBUG
CONFIGURE_ENV+= EXTRA_PRE_CXXFLAGS="-std=c++14"
.endif
-# Fix build failure on clang >= 12
-.if ${PORT_OPTIONS:MHTTP_PERL} && ${OSVERSION} >= 1301000
-CFLAGS+= -Wno-compound-token-split-by-macro
-.endif
-
.if empty(PORT_OPTIONS:MLUA) && empty(PORT_OPTIONS:MMODSECURITY3) && \
empty(PORT_OPTIONS:MPASSENGER)
CONFIGURE_ARGS+= --with-ld-opt="-L ${LOCALBASE}/lib"
diff --git a/www/osrm-backend/Makefile b/www/osrm-backend/Makefile
index 4a30f4f0226f..2b2c625515b8 100644
--- a/www/osrm-backend/Makefile
+++ b/www/osrm-backend/Makefile
@@ -31,17 +31,13 @@ OPTIONS_DEFINE= DEBUG
USE_RC_SUBR= osrm
+CXXFLAGS+= -Wno-range-loop-construct
+
USERS= osrm
GROUPS= osrm
CMAKE_ON= BUILD_STATIC_LIBS
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 1300084
-CXXFLAGS+= -Wno-range-loop-construct
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's|-Werror=all -Werror=extra|-Werror=extra|g' \
${PATCH_WRKSRC}/CMakeLists.txt
@@ -49,4 +45,4 @@ post-patch:
pre-install:
@${MKDIR} ${STAGEDIR}/var/db/osrm-backend
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/www/qt5-webengine/Makefile b/www/qt5-webengine/Makefile
index f7ac3d51ee88..e0789d04942a 100644
--- a/www/qt5-webengine/Makefile
+++ b/www/qt5-webengine/Makefile
@@ -124,7 +124,7 @@ QT_BINARIES= yes
.include <bsd.port.pre.mk>
-.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64
+.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*}
PLIST_SUB+= BE="" LE="@comment "
.else
PLIST_SUB+= BE="@comment " LE=""
@@ -152,7 +152,7 @@ post-patch:
@${REINPLACE_CMD} -E -e 's|^(MODULE_VERSION = ).*|\1${QT5_VERSION}|' \
${WRKSRC}/.qmake.conf
-.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64
+.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*}
@${REINPLACE_CMD} -e 's/icudtl.dat/icudtb.dat/' \
${WRKSRC}/src/core/core_module.pro
.endif
diff --git a/www/tor-browser/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc b/www/tor-browser/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc
deleted file mode 100644
index 5af9e7ec2d70..000000000000
--- a/www/tor-browser/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc
+++ /dev/null
@@ -1,23 +0,0 @@
-commit d1f5a45c1906e9f1e6a51f3b44c52d981bb3958c
-Author: Christoph Moench-Tegeder <cmt@burggraben.net>
-Date: Wed Oct 12 19:57:20 2022 +0200
-
- pull in sys/types.h for u_XXX typedefs on FreeBSD 12
-
- In file included from /wrkdirs/usr/ports/www/firefox/work/firefox-106.0/third_party/libwebrtc/rtc_base/ip_address.cc:20:
- /usr/include/netinet/ip.h:53:2: error: unknown type name 'u_char'; did you mean 'char'?
- u_char ip_hl:4, /* header length */
-
-diff --git third_party/libwebrtc/rtc_base/ip_address.cc third_party/libwebrtc/rtc_base/ip_address.cc
-index d544b611e149..ef9b742dac5f 100644
---- third_party/libwebrtc/rtc_base/ip_address.cc
-+++ third_party/libwebrtc/rtc_base/ip_address.cc
-@@ -11,6 +11,8 @@
- #if defined(WEBRTC_POSIX)
- #include <netinet/in.h>
- #include <sys/socket.h>
-+/* for u_char/u_short etc on FreeBSD 12 */
-+#include <sys/types.h>
-
- #include "absl/strings/string_view.h"
- #ifdef OPENBSD
diff --git a/www/ungoogled-chromium/files/patch-third__party_wayland_include_config.h b/www/ungoogled-chromium/files/patch-third__party_wayland_include_config.h
index 6b7e5c6c9d9a..14da7a98faf5 100644
--- a/www/ungoogled-chromium/files/patch-third__party_wayland_include_config.h
+++ b/www/ungoogled-chromium/files/patch-third__party_wayland_include_config.h
@@ -1,21 +1,6 @@
---- third_party/wayland/include/config.h.orig 2023-03-01 05:42:12 UTC
+--- third_party/wayland/include/config.h.orig 2023-11-28 23:10:47 UTC
+++ third_party/wayland/include/config.h
-@@ -9,7 +9,14 @@
-
- #define HAVE_BROKEN_MSG_CMSG_CLOEXEC 0
-
-+#if defined(__FreeBSD__)
-+#include <osreldate.h>
-+#if defined(__FreeBSD_version) && __FreeBSD_version < 1300048
-+#undef HAVE_MEMFD_CREATE
-+#else
- #define HAVE_MEMFD_CREATE
-+#endif
-+#endif
-
- #define HAVE_MKOSTEMP
-
-@@ -25,7 +32,11 @@
+@@ -25,11 +25,14 @@
#undef HAVE_SYS_PROCCTL_H
@@ -27,3 +12,7 @@
#define HAVE_XUCRED_CR_PID 0
+ #define PACKAGE "wayland"
+
+ #define PACKAGE_VERSION "1.21.0"
+-
diff --git a/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc b/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc
deleted file mode 100644
index a1493e4809a8..000000000000
--- a/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc
+++ /dev/null
@@ -1,21 +0,0 @@
---- ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc.orig 2023-10-13 13:20:35 UTC
-+++ ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc
-@@ -226,6 +226,10 @@ void ZWPTextInputWrapperV1::SetSurroundingText(
- // so if it exceeds 16 bits, it may be broken.
- static constexpr size_t kSizeLimit = 60000;
- if (HasAdvancedSurroundingTextSupport() && text.length() > kSizeLimit) {
-+#if defined(__FreeBSD_version) && __FreeBSD_version < 1300048
-+ PLOG(ERROR) << "memfd is not supported";
-+ return;
-+#else
- base::ScopedFD memfd(memfd_create("surrounding_text", MFD_CLOEXEC));
- if (!memfd.get()) {
- PLOG(ERROR) << "Failed to create memfd";
-@@ -238,6 +242,7 @@ void ZWPTextInputWrapperV1::SetSurroundingText(
- zcr_extended_text_input_v1_set_large_surrounding_text(
- extended_obj_.get(), memfd.get(), text.length(),
- selection_range.start(), selection_range.end());
-+#endif
- } else {
- zwp_text_input_v1_set_surrounding_text(obj_.get(), text.c_str(),
- selection_range.start(),
diff --git a/www/webkit2-gtk4/files/patch-Source_WTF_wtf_PlatformCPU.h b/www/webkit2-gtk4/files/patch-Source_WTF_wtf_PlatformCPU.h
deleted file mode 100644
index 3ca8ff6ffc9e..000000000000
--- a/www/webkit2-gtk4/files/patch-Source_WTF_wtf_PlatformCPU.h
+++ /dev/null
@@ -1,28 +0,0 @@
-https://bugs.webkit.org/show_bug.cgi?id=129963
-
-Index: Source/WTF/wtf/PlatformCPU.h
---- Source/WTF/wtf/PlatformCPU.h.orig
-+++ Source/WTF/wtf/PlatformCPU.h
-@@ -95,6 +95,13 @@
- #define WTF_CPU_KNOWN 1
- #endif
-
-+/* CPU(SPARC64) - SPARC V9 */
-+#if defined(__sparc64__)
-+#define WTF_CPU_KNOWN 1
-+#define WTF_CPU_SPARC64 1
-+#define WTF_CPU_BIG_ENDIAN 1
-+#endif
-+
- /* CPU(X86) - i386 / x86 32-bit */
- #if defined(__i386__) \
- || defined(i386) \
-@@ -295,7 +302,7 @@
- #define WTF_CPU_UNKNOWN 1
- #endif
-
--#if CPU(ARM) || CPU(MIPS) || CPU(RISCV64) || CPU(UNKNOWN)
-+#if CPU(ARM) || CPU(MIPS) || CPU(RISCV64) || CPU(SPARC64) || CPU(UNKNOWN)
- #define WTF_CPU_NEEDS_ALIGNED_ACCESS 1
- #endif
-
diff --git a/www/webkit2-gtk4/files/patch-Source_WTF_wtf_dtoa_utils.h b/www/webkit2-gtk4/files/patch-Source_WTF_wtf_dtoa_utils.h
deleted file mode 100644
index 2612dca3be93..000000000000
--- a/www/webkit2-gtk4/files/patch-Source_WTF_wtf_dtoa_utils.h
+++ /dev/null
@@ -1,12 +0,0 @@
-Index: Source/WTF/wtf/dtoa/utils.h
---- Source/WTF/wtf/dtoa/utils.h.orig
-+++ Source/WTF/wtf/dtoa/utils.h
-@@ -87,7 +87,7 @@ int main(int argc, char** argv) {
- defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__) || \
- defined(_POWER) || defined(_ARCH_PPC) || defined(_ARCH_PPC64) || \
- defined(__sparc__) || defined(__sparc) || defined(__s390__) || \
-- defined(__SH4__) || defined(__alpha__) || \
-+ defined(__SH4__) || defined(__alpha__) || defined(__sparc64__) || \
- defined(_MIPS_ARCH_MIPS32R2) || \
- defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__) || \
- defined(__riscv) || \
diff --git a/x11-servers/xorg-server/Makefile b/x11-servers/xorg-server/Makefile
index 2fbe0289c8ca..2ab565a32d2c 100644
--- a/x11-servers/xorg-server/Makefile
+++ b/x11-servers/xorg-server/Makefile
@@ -119,12 +119,6 @@ MESON_ARGS+= -Dsha1=libmd
LIB_DEPENDS+= libunwind.so:devel/libunwind
.endif
-.if ${ARCH} == "sparc64"
-PLIST_SUB+= SPARC64=""
-.else
-PLIST_SUB+= SPARC64="@comment "
-.endif
-
.if ${FLAVOR} == xorg
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/X11/xorg.conf.d
diff --git a/x11-servers/xorg-server/files/patch-hw_xfree86_os-support_bsd_bsd__init.c b/x11-servers/xorg-server/files/patch-hw_xfree86_os-support_bsd_bsd__init.c
index 09ab0b818b37..d4d17bda8014 100644
--- a/x11-servers/xorg-server/files/patch-hw_xfree86_os-support_bsd_bsd__init.c
+++ b/x11-servers/xorg-server/files/patch-hw_xfree86_os-support_bsd_bsd__init.c
@@ -1,4 +1,4 @@
---- hw/xfree86/os-support/bsd/bsd_init.c.orig 2023-03-29 12:55:03 UTC
+--- hw/xfree86/os-support/bsd/bsd_init.c.orig 2023-10-25 01:40:28 UTC
+++ hw/xfree86/os-support/bsd/bsd_init.c
@@ -48,6 +48,8 @@ static int initialVT = -1;
#if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT)
@@ -9,17 +9,7 @@
#endif
#ifdef PCCONS_SUPPORT
-@@ -230,6 +232,9 @@ xf86OpenConsole()
- * Add cases for other *BSD that behave the same.
- */
- #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
-+#if defined(__sparc64__)
-+ pci_system_init_dev_mem(fd);
-+#endif
- uname(&uts);
- i = atof(uts.release) * 100;
- if (i >= 310)
-@@ -253,6 +258,7 @@ xf86OpenConsole()
+@@ -253,6 +255,7 @@ xf86OpenConsole()
#endif
acquire_vt:
if (!xf86Info.ShareVTs) {
@@ -27,7 +17,7 @@
/*
* now get the VT
*/
-@@ -287,6 +293,26 @@ xf86OpenConsole()
+@@ -287,6 +290,26 @@ xf86OpenConsole()
if (ioctl(xf86Info.consoleFd, KDSETMODE, KD_GRAPHICS) < 0) {
FatalError("xf86OpenConsole: KDSETMODE KD_GRAPHICS failed");
}
@@ -54,7 +44,7 @@
}
else { /* xf86Info.ShareVTs */
close(xf86Info.consoleFd);
-@@ -303,7 +329,7 @@ xf86OpenConsole()
+@@ -303,7 +326,7 @@ xf86OpenConsole()
else {
/* serverGeneration != 1 */
#if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT)
@@ -63,7 +53,7 @@
(xf86Info.consType == SYSCONS || xf86Info.consType == PCVT)) {
if (ioctl(xf86Info.consoleFd, VT_ACTIVATE, xf86Info.vtno) != 0) {
xf86Msg(X_WARNING, "xf86OpenConsole: VT_ACTIVATE failed\n");
-@@ -594,6 +620,8 @@ xf86CloseConsole()
+@@ -594,6 +617,8 @@ xf86CloseConsole()
case SYSCONS:
case PCVT:
ioctl(xf86Info.consoleFd, KDSETMODE, KD_TEXT); /* Back to text mode */
@@ -72,7 +62,7 @@
if (ioctl(xf86Info.consoleFd, VT_GETMODE, &VT) != -1) {
VT.mode = VT_AUTO;
ioctl(xf86Info.consoleFd, VT_SETMODE, &VT); /* dflt vt handling */
-@@ -604,7 +632,7 @@ xf86CloseConsole()
+@@ -604,7 +629,7 @@ xf86CloseConsole()
strerror(errno));
}
#endif
diff --git a/x11-servers/xorg-server/pkg-plist b/x11-servers/xorg-server/pkg-plist
index 1277ba701dcf..f22d7b44f7a3 100644
--- a/x11-servers/xorg-server/pkg-plist
+++ b/x11-servers/xorg-server/pkg-plist
@@ -132,7 +132,6 @@ include/xorg/xf86PciInfo.h
include/xorg/xf86Priv.h
include/xorg/xf86Privstr.h
include/xorg/xf86RandR12.h
-%%SPARC64%%include/xorg/xf86Sbus.h
include/xorg/xf86VGAarbiter.h
include/xorg/xf86Xinput.h
include/xorg/xf86_OSlib.h
diff --git a/x11-toolkits/kf5-kirigami2/Makefile b/x11-toolkits/kf5-kirigami2/Makefile
index 296dbd176040..d8a8011d68fc 100644
--- a/x11-toolkits/kf5-kirigami2/Makefile
+++ b/x11-toolkits/kf5-kirigami2/Makefile
@@ -11,12 +11,4 @@ USE_QT= core concurrent dbus declarative graphicaleffects gui \
linguisttools network quickcontrols2 svg widgets \
buildtools:build qmake:build testlib:build
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 1300016
-# src/imagecolors.cpp:317:9: error: statement after '#pragma omp parallel for'
-# must be a for loop
-CFLAGS+= -fopenmp-version=50
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/x11-toolkits/movingmotif/Makefile b/x11-toolkits/movingmotif/Makefile
index a1645752e7e2..dc87f01cdd1a 100644
--- a/x11-toolkits/movingmotif/Makefile
+++ b/x11-toolkits/movingmotif/Makefile
@@ -15,8 +15,6 @@ USES= motif libtool
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
-CFLAGS_sparc64= -O0
-
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so
diff --git a/x11-toolkits/scintilla/Makefile b/x11-toolkits/scintilla/Makefile
index fa46755b533d..82d23da17b02 100644
--- a/x11-toolkits/scintilla/Makefile
+++ b/x11-toolkits/scintilla/Makefile
@@ -22,7 +22,7 @@ MAKEFILE= makefile
USE_LDCONFIG= yes
USE_GNOME= cairo gdkpixbuf2 gtk30
MAKE_ENV= LDFLAGS="${LDFLAGS}"
-CFLAGS+= -DPIC ${PICFLAG}
+CFLAGS+= -DPIC -fpic
MAKE_ARGS= GTK3=1
.if defined(WITH_DEBUG)
@@ -35,12 +35,6 @@ MAKE_ARGS+= DEBUG=1
MAKE_ARGS+= CLANG=1
.endif
-.if ${ARCH} == "sparc64"
-PICFLAG?= -fPIC
-.else
-PICFLAG?= -fpic
-.endif
-
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/include/scintilla
${INSTALL_DATA} ${WRKSRC}/../include/*.h \
diff --git a/x11-toolkits/vte3/Makefile b/x11-toolkits/vte3/Makefile
index 77d1a61653e4..d62988935b1a 100644
--- a/x11-toolkits/vte3/Makefile
+++ b/x11-toolkits/vte3/Makefile
@@ -51,18 +51,4 @@ GNUTLS_MESON_OFF= -Dgnutls=false
GTK4_USE= GNOME=gtk40
GTK4_MESON_ON= -Dgtk4=true
-.include <bsd.port.pre.mk>
-
-.if ${CHOSEN_COMPILER_TYPE} == clang && ${OPSYS} == FreeBSD && ${OSVERSION} < 1300109
-CPP= ${LOCALBASE}/bin/clang-cpp${_LLVM_VERSION}
-CC= ${LOCALBASE}/bin/clang${_LLVM_VERSION}
-CXX= ${LOCALBASE}/bin/clang++${_LLVM_VERSION}
-BUILD_DEPENDS+= llvm${_LLVM_VERSION}>=0:devel/llvm${_LLVM_VERSION}
-.if ${LLVM_DEFAULT} == 10
-_LLVM_VERSION= 11
-.else
-_LLVM_VERSION= ${LLVM_DEFAULT}
-.endif
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/x11-toolkits/wlroots/Makefile b/x11-toolkits/wlroots/Makefile
index 325ae62be320..5984d8155ef0 100644
--- a/x11-toolkits/wlroots/Makefile
+++ b/x11-toolkits/wlroots/Makefile
@@ -66,13 +66,5 @@ post-patch:
# Extract (snapshot) version from the port instead of meson.build
@${REINPLACE_CMD} "/STR/s/meson.project_version()/'${DISTVERSIONFULL}'/" \
${WRKSRC}/include/wlr/meson.build
-# XXX Drop after FreeBSD 12.4 EOL around 2023-12-31
-# https://cgit.freebsd.org/src/commit/?id=d7535fb3e3cb
- @if [ ${OPSYS} = FreeBSD -a ${OSVERSION} -lt 1300515 ]; then \
- ${REINPLACE_CMD} -e '/POSIX/s/199309/200112/' \
- ${WRKSRC}/render/gles2/pass.c \
- ${WRKSRC}/render/gles2/renderer.c \
- ${WRKSRC}/types/wlr_presentation_time.c; \
- fi
.include <bsd.port.mk>
diff --git a/x11-wm/hyprland/Makefile b/x11-wm/hyprland/Makefile
index 42f2d0676c36..da9d0dbf5ebe 100644
--- a/x11-wm/hyprland/Makefile
+++ b/x11-wm/hyprland/Makefile
@@ -14,8 +14,6 @@ WWW= https://hyprland.org/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN_FreeBSD_12= libc++ too old
-
BUILD_DEPENDS= cmake:devel/cmake-core \
evdev-proto>0:devel/evdev-proto \
wayland-protocols>=1.25:graphics/wayland-protocols \
diff --git a/x11-wm/wmii/Makefile b/x11-wm/wmii/Makefile
index 0c89e5474d24..c6a3b7f892e2 100644
--- a/x11-wm/wmii/Makefile
+++ b/x11-wm/wmii/Makefile
@@ -43,7 +43,7 @@ post-patch: .SILENT
${REINPLACE_CMD} -e 's|CFLAGS += -DIXPlint|& -DIXP_NEEDAPI=89|' \
${WRKSRC}/config.mk
# Fix brain-damaged piece of code which breaks on arches where `size_t'
-# is not 32-bit unsigned integer (e.g. amd64, sparc64)
+# is not 32-bit unsigned integer (e.g. amd64)
${REINPLACE_CMD} -e '/wmii_strlcat/d' ${WRKSRC}/include/util.h
${REINPLACE_CMD} -e 's|strlcat|wmii_&|' ${WRKSRC}/include/util.h \
${WRKSRC}/cmd/util.c ${WRKSRC}/cmd/wmii/client.c
diff --git a/x11/foot/Makefile b/x11/foot/Makefile
index 1c492bad3410..90cbf8bcff57 100644
--- a/x11/foot/Makefile
+++ b/x11/foot/Makefile
@@ -27,7 +27,6 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
OPTIONS_DEFINE= DOCS LTO NOTIFY PGO UTF8PROC XDG
OPTIONS_DEFAULT=LTO NOTIFY PGO UTF8PROC XDG
OPTIONS_EXCLUDE+= ${CC:T:Mgcc*:C/.+/LTO/} # undefined reference to `xstrdup'
-OPTIONS_EXCLUDE_FreeBSD_12= ${WAYLAND_DISPLAY:UPGO} # ./pgo hangs
DOCS_BUILD_DEPENDS= scdoc:textproc/scdoc
DOCS_MESON_ENABLED= docs
diff --git a/x11/kitty/Makefile b/x11/kitty/Makefile
index 245a84560e81..255af9fdd566 100644
--- a/x11/kitty/Makefile
+++ b/x11/kitty/Makefile
@@ -96,11 +96,6 @@ USES+= ncurses:port
USES+= ncurses
.endif
-# fix clang static_assert on 12.x releases, https://github.com/kovidgoyal/kitty/pull/5398
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000
-EXTRA_PATCHES= ${PATCHDIR}/extra-patch-kitty_data-types.h
-.endif
-
post-patch:
${REINPLACE_CMD} -i.bak -e "s:'go':'${GO_CMD}':1" ${WRKSRC}/setup.py
${REINPLACE_CMD} -i.bak -e "s:%%DATADIR%%:${DATADIR}:1" \
diff --git a/x11/kitty/files/extra-patch-kitty_data-types.h b/x11/kitty/files/extra-patch-kitty_data-types.h
deleted file mode 100644
index 3926ab024c92..000000000000
--- a/x11/kitty/files/extra-patch-kitty_data-types.h
+++ /dev/null
@@ -1,13 +0,0 @@
---- kitty/data-types.h.orig 2022-08-22 11:08:26 UTC
-+++ kitty/data-types.h
-@@ -159,6 +159,10 @@ typedef union CellAttrs {
- #define NUM_UNDERLINE_STYLES (5u)
- #define SGR_MASK (~(((CellAttrs){.width=WIDTH_MASK, .mark=MARK_MASK}).val))
-
-+#ifndef static_assert
-+#define static_assert _Static_assert
-+#endif
-+
- typedef struct {
- color_type fg, bg, decoration_fg;
- sprite_index sprite_x, sprite_y, sprite_z;
diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile
index f494e3c88cce..cb28a6a24b46 100644
--- a/x11/nvidia-driver/Makefile
+++ b/x11/nvidia-driver/Makefile
@@ -189,7 +189,7 @@ post-patch: .SILENT
${WRKSRC}/src/${NVSRC}/nvidia_subr.c
.endif
# Pull the right header after FreeBSD src r347984
-.if ${OSVERSION} >= 1300029 && ${NVVERSION} >= 358.009
+.if ${NVVERSION} >= 358.009
${REINPLACE_CMD} -e '/^#include/s:lock\.h:mutex.h:' \
${WRKSRC}/src/nvidia-modeset/nvidia-modeset-freebsd.c
.endif
diff --git a/x11/sandbar/Makefile b/x11/sandbar/Makefile
index 8a6a947a8376..9aaeab7e660d 100644
--- a/x11/sandbar/Makefile
+++ b/x11/sandbar/Makefile
@@ -10,8 +10,6 @@ WWW= https://github.com/kolunmi/sandbar
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN_FreeBSD_12= ld: error: undefined symbol: memfd_create
-
BUILD_DEPENDS= evdev-proto>0:devel/evdev-proto \
tllist>=1.0.1:devel/tllist \
wayland-protocols>0:graphics/wayland-protocols
diff --git a/x11/squeekboard/Makefile b/x11/squeekboard/Makefile
index 08d3993849ea..3c55ff22934c 100644
--- a/x11/squeekboard/Makefile
+++ b/x11/squeekboard/Makefile
@@ -14,7 +14,6 @@ WWW= https://gitlab.gnome.org/World/Phosh/squeekboard
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
-BROKEN_FreeBSD_12_powerpc64= fails to compile: rs.e2mg9us3-cgu.14:(.text.imservice_handle_commit_state+0x228): undefined reference to 'eekboard_context_service_show_keyboard'
BROKEN_FreeBSD_13_powerpc64= fails to link: ld: error: undefined symbol: eekboard_context_service_get_overlay
BUILD_DEPENDS= wayland-protocols>=1.12:graphics/wayland-protocols
diff --git a/x11/wl-mirror/Makefile b/x11/wl-mirror/Makefile
index 93fff29792b8..a43485907a55 100644
--- a/x11/wl-mirror/Makefile
+++ b/x11/wl-mirror/Makefile
@@ -10,8 +10,6 @@ WWW= https://github.com/Ferdi265/wl-mirror
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN_FreeBSD_12= ld: error: undefined symbol: memfd_create
-
BUILD_DEPENDS= wayland-protocols>0:graphics/wayland-protocols
LIB_DEPENDS= libepoll-shim.so:devel/libepoll-shim \
libwayland-egl.so:graphics/wayland
diff --git a/x11/xdg-desktop-portal-hyprland/Makefile b/x11/xdg-desktop-portal-hyprland/Makefile
index 76b47240825e..b4c9a1666180 100644
--- a/x11/xdg-desktop-portal-hyprland/Makefile
+++ b/x11/xdg-desktop-portal-hyprland/Makefile
@@ -10,8 +10,6 @@ WWW= https://github.com/hyprwm/xdg-desktop-portal-hyprland
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN_FreeBSD_12= libc++ too old
-
BUILD_DEPENDS= wayland-protocols>=1.31:graphics/wayland-protocols
LIB_DEPENDS= libsdbus-c++.so:devel/sdbus-cpp \
libdrm.so:graphics/libdrm \
diff --git a/x11/xdg-desktop-portal-luminous/Makefile b/x11/xdg-desktop-portal-luminous/Makefile
index 7f56f5240595..5c12331aea0b 100644
--- a/x11/xdg-desktop-portal-luminous/Makefile
+++ b/x11/xdg-desktop-portal-luminous/Makefile
@@ -11,8 +11,6 @@ WWW= https://github.com/waycrate/xdg-desktop-portal-luminous
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN_FreeBSD_12= ld: error: undefined symbol: memfd_create
-
LIB_DEPENDS= libpipewire-0.3.so:multimedia/pipewire \
libxkbcommon.so:x11/libxkbcommon
RUN_DEPENDS= slurp:x11/slurp