git: 47b36994fd58 - main - devel/ittapi: new port, Intel ITT and JIT API

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Sun, 12 Nov 2023 13:48:22 UTC
The branch main has been updated by thierry:

URL: https://cgit.FreeBSD.org/ports/commit/?id=47b36994fd5809d63b7d365016b193dc129b6aca

commit 47b36994fd5809d63b7d365016b193dc129b6aca
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2023-11-11 09:45:42 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2023-11-12 13:47:23 +0000

    devel/ittapi: new port, Intel ITT and JIT API
    
    ATM it is bundled in Julia.
---
 devel/Makefile         |  1 +
 devel/ittapi/Makefile  | 25 +++++++++++++++++++++++++
 devel/ittapi/distinfo  |  3 +++
 devel/ittapi/pkg-descr | 12 ++++++++++++
 devel/ittapi/pkg-plist | 11 +++++++++++
 5 files changed, 52 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index c72b6c82a2b0..72e4ff3d0821 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1030,6 +1030,7 @@
     SUBDIR += isfreedesktop
     SUBDIR += isl
     SUBDIR += ispc
+    SUBDIR += ittapi
     SUBDIR += ivykis
     SUBDIR += jam
     SUBDIR += jansson
diff --git a/devel/ittapi/Makefile b/devel/ittapi/Makefile
new file mode 100644
index 000000000000..44636dc01ce0
--- /dev/null
+++ b/devel/ittapi/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	ittapi
+PORTVERSION=	3.24.3
+DISTVERSIONPREFIX=	v
+CATEGORIES=	devel
+
+MAINTAINER=	thierry@FreeBSD.org
+COMMENT=	Instrumentation and Tracing Technology and Just-In-Time API
+WWW=		https://github.com/intel/ittapi
+
+LICENSE=	BSD3CLAUSE GPLv2
+LICENSE_COMB=	dual
+LICENSE_FILE_BSD3CLAUSE=${WRKSRC}/LICENSES/BSD-3-Clause.txt
+LICENSE_FILE_GPLv2=	${WRKSRC}/LICENSES/GPL-2.0-only.txt
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	intel
+
+USES=		cmake
+CMAKE_ARGS=	-DITT_API_IPT_SUPPORT:BOOL=ON
+
+# Note: Rust support is not yet enabled in this port
+OPTIONS_DEFINE=		FORTRAN
+FORTRAN_CMAKE_BOOL=	ITT_API_FORTRAN_SUPPORT
+
+.include <bsd.port.mk>
diff --git a/devel/ittapi/distinfo b/devel/ittapi/distinfo
new file mode 100644
index 000000000000..97d2f81fc51a
--- /dev/null
+++ b/devel/ittapi/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1699653045
+SHA256 (intel-ittapi-v3.24.3_GH0.tar.gz) = cf5903c1bf5c13bc808a04f2d7624eef064f44e76669688f779ebb8d26e9911f
+SIZE (intel-ittapi-v3.24.3_GH0.tar.gz) = 246256
diff --git a/devel/ittapi/pkg-descr b/devel/ittapi/pkg-descr
new file mode 100644
index 000000000000..3af47df703c7
--- /dev/null
+++ b/devel/ittapi/pkg-descr
@@ -0,0 +1,12 @@
+This ITT/JIT open source profiling API includes:
+
+- Instrumentation and Tracing Technology (ITT) API
+- Just-In-Time (JIT) Profiling API
+
+The Instrumentation and Tracing Technology (ITT) API enables your application to
+generate and control the collection of trace data during its execution across
+different Intel tools.
+
+ITT API consists of two parts: a static part and a dynamic part. The dynamic
+part is specific for a tool and distributed only with a particular tool. The
+static part is a common part shared between tools.
diff --git a/devel/ittapi/pkg-plist b/devel/ittapi/pkg-plist
new file mode 100644
index 000000000000..7800df035406
--- /dev/null
+++ b/devel/ittapi/pkg-plist
@@ -0,0 +1,11 @@
+include/advisor-annotate.h
+include/ittnotify-zca.h
+include/ittnotify.h
+include/jitprofiling.h
+include/legacy/ittnotify.h
+include/libittnotify.h
+lib/cmake/ittapi/ittapi-targets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/ittapi/ittapi-targets.cmake
+lib/cmake/ittapi/ittapiConfig.cmake
+lib/cmake/ittapi/ittapiConfigVersion.cmake
+lib/libittnotify.a