Building ClamAV with CMake (v0.104 and newer)
https://docs.clamav.net/manual/Installing/Installing-from-source-Unix.html
従来は experimental features を有効にしてビルドする場合は configure スクリプトに --enable-experimental を付ければよかったのですが、CMake の場合は -D ENABLE_EXPERIMENTAL=ON を付ける必要があります。
そこで、パッケージ管理システムとして MacPorts を利用している場合は、Portfile に
--- Portfile.ORG 2021-09-17 05:59:32.000000000 +0900のようなパッチを当て、以下のように実行してビルド&インストールします。
+++ Portfile 2021-09-17 18:41:21.000000000 +0900
@@ -62,6 +62,10 @@
configure.args-append -D OPTIMIZE=OFF
}
+variant exp description {build with experimental features} {
+ configure.args-append -D ENABLE_EXPERIMENTAL=ON
+ }
+
variant clamav_milter description {build with libmilter support} {
depends_lib-append port:libmilter
configure.args-append -D ENABLE_MILTER=ON
sudo port install clamav +exp