vim: update to 9.1.0984
[oi-userland.git] / components / library / hyperscan / Makefile
blobd93e6d40fc4a42672cd2ccedefe37740955073cf
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright (c) 2023, Friedrich Kink
25 BUILD_STYLE= cmake
26 include ../../../make-rules/shared-macros.mk
28 COMPONENT_NAME= hyperscan
29 COMPONENT_VERSION= 5.4.2
30 COMPONENT_REVISION= 1
31 COMPONENT_SUMMARY= Hyperscan is a high-performance multiple regex matching library.
32 COMPONENT_PROJECT_URL= https://www.hyperscan.io/
33 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
34 COMPONENT_ARCHIVE= $(COMPONENT_VERSION).tar.gz
35 COMPONENT_ARCHIVE_HASH= sha256:32b0f24b3113bbc46b6bfaa05cf7cf45840b6b59333d078cc1f624e4c40b2b99
36 COMPONENT_ARCHIVE_URL= https://github.com/intel/$(COMPONENT_NAME)/archive/refs/tags/v$(COMPONENT_ARCHIVE)
37 COMPONENT_CLASSIFICATION=Development/C
38 COMPONENT_FMRI= library/hyperscan
39 COMPONENT_CLASSIFICATION= Development/C
40 COMPONENT_LICENSE= BSD
41 COMPONENT_LICENSE_FILE= LICENSE
43 TEST_TARGET = $(NO_TESTS)
44 include $(WS_MAKE_RULES)/common.mk
46 PATH = $(PATH.gnu)
48 # turn on largefile support
49 CFLAGS += $(CPP_LARGEFILES)
51 # to avoid to modern CPU's when build automatically on newer hardware
52 CMAKE_OPTIONS += -DCMAKE_C_FLAGS="-march=corei7"
53 CMAKE_OPTIONS += -DCMAKE_BUILD_TYPE=Release
54 CMAKE_OPTIONS += -DFAT_RUNTIME=OFF
55 CMAKE_OPTIONS += -DBUILD_SHARED_LIBS=ON
57 # manually added
58 REQUIRED_PACKAGES += developer/ragel
60 # Auto-generated dependencies
61 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
62 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
63 REQUIRED_PACKAGES += system/library
64 REQUIRED_PACKAGES += system/library/math