hyperscan: use GH_CONF and BUILD_DIR/SOURCE_DIR

This commit is contained in:
Tony Theodore 2017-03-21 19:26:25 +11:00
parent 1e5d0b33a3
commit bb09a999f6
1 changed files with 5 additions and 12 deletions

View File

@ -6,25 +6,18 @@ $(PKG)_DESCR := Hyperscan
$(PKG)_IGNORE :=
$(PKG)_VERSION := 4.3.2
$(PKG)_CHECKSUM := 6cd5820d6da51d6fe4ab12066d1efd9afecc1bc6fb7d6eca9c98f76fd391dbd5
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz
$(PKG)_URL := https://github.com/01org/$(PKG)/archive/v$($(PKG)_VERSION).tar.gz
$(PKG)_GH_CONF := 01org/hyperscan, v
$(PKG)_DEPS := gcc boost
# $(PKG)_NATIVE_DEPS := ragel
define $(PKG)_UPDATE
$(call MXE_GET_GITHUB_TAGS, 01org/hyperscan, v)
endef
define $(PKG)_BUILD
mkdir '$(1).build'
# Add the following options to run on (virtual) machine without AVX2
# -DCMAKE_C_FLAGS="-march=core2" -DCMAKE_CXX_FLAGS="-march=core2"
cd '$(1).build' && '$(TARGET)-cmake' \
cd '$(BUILD_DIR)' && $(TARGET)-cmake \
-DRAGEL='$(PREFIX)/$(BUILD)/bin/ragel' \
'$(1)'
$(MAKE) -C '$(1).build' -j '$(JOBS)'
$(MAKE) -C '$(1).build' -j 1 install
'$(SOURCE_DIR)'
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
'$(TARGET)-gcc' \
'$(1)/examples/simplegrep.c' \