+DEB_DEPENDS += lcov chrpath autoconf indent clang-format libnuma-dev
+DEB_DEPENDS += python-all python3-all python3-setuptools
+DEB_DEPENDS += python-virtualenv python-pip check
+DEB_DEPENDS += libboost-all-dev libffi-dev python3-ply libmbedtls-dev
+DEB_DEPENDS += cmake ninja-build uuid-dev python3-jsonschema python3-yaml
+DEB_DEPENDS += python3-venv # ensurepip
+DEB_DEPENDS += python3-dev # needed for python3 -m pip install psutil
+# python3.6 on 16.04 requires python36-dev
+
+LIBFFI=libffi6 # works on all but 20.04
+
+ifeq ($(OS_VERSION_ID),16.04)
+ DEB_DEPENDS += python-dev
+ DEB_DEPENDS += libssl-dev
+else ifeq ($(OS_VERSION_ID),18.04)
+ DEB_DEPENDS += python-dev
+ DEB_DEPENDS += libssl-dev
+ DEB_DEPENDS += gcc-8
+else ifeq ($(OS_VERSION_ID),20.04)
+ LIBFFI=libffi7
+else ifeq ($(OS_ID)-$(OS_VERSION_ID),debian-8)
+ DEB_DEPENDS += libssl-dev
+ APT_ARGS = -t jessie-backports
+else ifeq ($(OS_ID)-$(OS_VERSION_ID),debian-9)
+ DEB_DEPENDS += libssl1.0-dev
+else
+ DEB_DEPENDS += libssl-dev
+endif
+
+DEB_DEPENDS += $(LIBFFI)
+
+RPM_DEPENDS = redhat-lsb glibc-static
+RPM_DEPENDS += apr-devel
+RPM_DEPENDS += numactl-devel
+RPM_DEPENDS += check check-devel
+RPM_DEPENDS += boost boost-devel
+RPM_DEPENDS += selinux-policy selinux-policy-devel
+RPM_DEPENDS += ninja-build
+RPM_DEPENDS += libuuid-devel
+RPM_DEPENDS += mbedtls-devel
+
+ifeq ($(OS_ID),fedora)
+ RPM_DEPENDS += dnf-utils
+ RPM_DEPENDS += subunit subunit-devel
+ RPM_DEPENDS += compat-openssl10-devel
+ RPM_DEPENDS += python3-devel # needed for python3 -m pip install psutil
+ RPM_DEPENDS += python3-ply # for vppapigen
+ RPM_DEPENDS += python3-virtualenv python3-jsonschema
+ RPM_DEPENDS += cmake
+ RPM_DEPENDS_GROUPS = 'C Development Tools and Libraries'
+else ifeq ($(OS_ID)-$(OS_VERSION_ID),centos-8)
+ RPM_DEPENDS += yum-utils
+ RPM_DEPENDS += compat-openssl10
+ RPM_DEPENDS += python36-devel python3-ply
+ RPM_DEPENDS += python3-virtualenv python3-jsonschema
+ RPM_DEPENDS += cmake
+ RPM_DEPENDS_GROUPS = 'Development Tools'