summaryrefslogtreecommitdiff
path: root/misc/onnx/Makefile
blob: fd1a58a598eac11a30c29150055913023ab29ab6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
PORTNAME=	onnx
DISTVERSIONPREFIX=	v
DISTVERSION=	1.14.0
CATEGORIES=	misc # machine-learning

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Open Neural Network eXchange
WWW=		https://onnx.ai/

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

#BUILD_DEPENDS=	bash:shells/bash
LIB_DEPENDS=	libprotobuf.so:devel/protobuf

USES=		cmake:testing compiler:c++11-lang python:build

USE_GITHUB=	yes

CMAKE_ON=	BUILD_SHARED_LIBS
CMAKE_OFF=	BUILD_ONNX_PYTHON
CMAKE_TESTING_ON=	ONNX_BUILD_TESTS
CMAKE_TESTING_TARGET=

post-install:
	@${FIND} ${STAGEDIR}${PREFIX}/include -type d -empty -delete

post-test:
	cd ${BUILD_WRKSRC} && ./onnx_gtests

.include <bsd.port.mk>