2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2016-05-18 19:08:45 +01:00
|
|
|
|
|
|
|
PKG := hyperscan
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_WEBSITE := https://01.org/hyperscan
|
|
|
|
$(PKG)_DESCR := Hyperscan
|
2016-05-18 19:08:45 +01:00
|
|
|
$(PKG)_IGNORE :=
|
2016-11-15 23:45:06 +00:00
|
|
|
$(PKG)_VERSION := 4.3.2
|
|
|
|
$(PKG)_CHECKSUM := 6cd5820d6da51d6fe4ab12066d1efd9afecc1bc6fb7d6eca9c98f76fd391dbd5
|
2017-11-09 06:13:49 +00:00
|
|
|
$(PKG)_GH_CONF := 01org/hyperscan/tags, v
|
2016-05-18 19:08:45 +01:00
|
|
|
$(PKG)_DEPS := gcc boost
|
2016-08-24 19:44:48 +01:00
|
|
|
# $(PKG)_NATIVE_DEPS := ragel
|
2016-05-18 19:08:45 +01:00
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
2016-06-05 16:54:00 +01:00
|
|
|
# Add the following options to run on (virtual) machine without AVX2
|
|
|
|
# -DCMAKE_C_FLAGS="-march=core2" -DCMAKE_CXX_FLAGS="-march=core2"
|
2017-03-21 08:26:25 +00:00
|
|
|
cd '$(BUILD_DIR)' && $(TARGET)-cmake \
|
2016-08-24 19:44:48 +01:00
|
|
|
-DRAGEL='$(PREFIX)/$(BUILD)/bin/ragel' \
|
2017-07-25 12:15:46 +01:00
|
|
|
-DMXE_DISABLE_INCLUDE_SYSTEM_FLAG=TRUE \
|
2017-03-21 08:26:25 +00:00
|
|
|
'$(SOURCE_DIR)'
|
|
|
|
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
|
|
|
|
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
|
2016-05-18 19:08:45 +01:00
|
|
|
|
|
|
|
'$(TARGET)-gcc' \
|
|
|
|
'$(1)/examples/simplegrep.c' \
|
|
|
|
-o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
|
|
|
|
`$(TARGET)-pkg-config --cflags --libs libhs`
|
|
|
|
endef
|