Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Dec 2019 22:52:05 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r520150 - head/misc/tvm
Message-ID:  <201912142252.xBEMq53Z039840@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sat Dec 14 22:52:05 2019
New Revision: 520150
URL: https://svnweb.freebsd.org/changeset/ports/520150

Log:
  misc/tvm: Add the LLVM option to enable LLVM-based model compilation

Modified:
  head/misc/tvm/Makefile

Modified: head/misc/tvm/Makefile
==============================================================================
--- head/misc/tvm/Makefile	Sat Dec 14 22:48:35 2019	(r520149)
+++ head/misc/tvm/Makefile	Sat Dec 14 22:52:05 2019	(r520150)
@@ -3,6 +3,7 @@
 PORTNAME=	tvm
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.6.0
+PORTREVISION=	1
 CATEGORIES=	misc # machine-learning
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -23,5 +24,13 @@ GH_TUPLE=	dmlc:dlpack:0acb731:dlpack/3rdparty/dlpack \
 USE_LDCONFIG=	yes
 
 LDFLAGS+=	/usr/lib/libexecinfo.so
+
+OPTIONS_DEFINE=		LLVM
+OPTIONS_DEFAULT=	LLVM
+
+LLVM_DESC=		With LLVM support for model compillation
+LLVM_CMAKE_ON=		-DUSE_LLVM=${LOCALBASE}/bin/llvm-config${LLVM_DEFAULT}
+LLVM_BUILD_DEPENDS=	llvm-config${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
+LLVM_RUN_DEPENDS=	llvm-config${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912142252.xBEMq53Z039840>