PKGNAME=dpdk
PKGSEC=libs
PKGDES="Data plane development kit"
PKGDEP="dtc libarchive libbsd jansson openssl libpcap rdma-core libbpf"
PKGSUG="cuda"
BUILDDEP="doxygen python-3 pyelftools"
BUILDDEP__AMD64="${BUILDDEP} cuda"
BUILDDEP__ARM64="${BUILDDEP} cuda"

ABTYPE=meson

MESON_AFTER="
	-Ddefault_library=shared
"

# x86-64-v2 = requires at least sse4.2/ssse3
# Running DPDK on even older HW just isn't practical or of any perf gain...
# DPDK will tell you that it doesn't support your CPU without SIGILL though.
MESON_AFTER__AMD64="
	${MESON_AFTER}
	-Dcpu_instruction_set=x86-64-v2
"
MESON_AFTER__ARM64="
	${MESON_AFTER}
	-Dplatform=generic
"
# FIXME: Lest the build system falls back to native for some reason...
MESON_AFTER__RISCV64="
        ${MESON_AFTER}
        -Dcpu_instruction_set=rv64gc
"

FAIL_ARCH="!(amd64|arm64|loongarch64|loongarch64_nosimd|ppc64el|riscv64)"
