Files
ports/misc/onnx/Makefile
T
2026-06-17 08:28:55 -07:00

40 lines
847 B
Makefile

PORTNAME= onnx
DISTVERSIONPREFIX= v
DISTVERSION= 1.22.0
CATEGORIES= misc # machine-learning
MAINTAINER= yuri@FreeBSD.org
COMMENT= Open Neural Network eXchange
WWW= https://onnx.ai \
https://github.com/onnx/onnx
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
#BUILD_DEPENDS= bash:shells/bash
LIB_DEPENDS= libabsl_base.so:devel/abseil \
libprotobuf.so:devel/protobuf
USES= cmake:testing compiler:c++17-lang python:build
USE_GITHUB= yes
CMAKE_ON= BUILD_SHARED_LIBS
CMAKE_OFF= ONNX_BUILD_PYTHON
CMAKE_TESTING_ON= ONNX_BUILD_TESTS
CMAKE_TESTING_TARGET=
CXXFLAGS+= -Dstat64=stat
post-install:
@${FIND} ${STAGEDIR}${PREFIX}/include -type d -empty -delete
post-test:
cd ${BUILD_WRKSRC} && ./onnx_gtests
# tests as of 1.22.0:
# [==========] 100 tests from 15 test suites ran. (42 ms total)
# [ PASSED ] 100 tests.
.include <bsd.port.mk>