mirror of https://git.wownero.com/dsc/mxe.git
Merge pull request #1505 from LuaAndC/ragel
add native package ragel and use it in hyperscan
This commit is contained in:
commit
def1d93e11
|
@ -2493,6 +2493,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
|
|||
<td class="package">qwtplot3d</td>
|
||||
<td class="website"><a href="http://qwtplot3d.sourceforge.net/">QwtPlot3D</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="package">ragel</td>
|
||||
<td class="website"><a href="https://www.colm.net/open-source/ragel/">Ragel</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="package">readline</td>
|
||||
<td class="website"><a href="http://tiswww.case.edu/php/chet/readline/rltop.html">Readline</a></td>
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -9,6 +9,7 @@ $(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)_DEPS := gcc boost
|
||||
# $(PKG)_NATIVE_DEPS := ragel
|
||||
|
||||
define $(PKG)_UPDATE
|
||||
$(call MXE_GET_GITHUB_TAGS, 01org/hyperscan, v)
|
||||
|
@ -20,6 +21,7 @@ define $(PKG)_BUILD
|
|||
# -DCMAKE_C_FLAGS="-march=core2" -DCMAKE_CXX_FLAGS="-march=core2"
|
||||
cd '$(1).build' && '$(TARGET)-cmake' \
|
||||
-DBUILD_SHARED_LIBS=$(if $(BUILD_STATIC),OFF,ON) \
|
||||
-DRAGEL='$(PREFIX)/$(BUILD)/bin/ragel' \
|
||||
'$(1)'
|
||||
$(MAKE) -C '$(1).build' -j '$(JOBS)'
|
||||
$(MAKE) -C '$(1).build' -j 1 install
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
# This file is part of MXE. See LICENSE.md for licensing information.
|
||||
|
||||
PKG := ragel
|
||||
$(PKG)_IGNORE := 7%
|
||||
$(PKG)_VERSION := 6.9
|
||||
$(PKG)_CHECKSUM := 6e07be0fab5ca1d9c2d9e177718a018fc666141f594a5d6e7025658620cf660a
|
||||
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
|
||||
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
|
||||
$(PKG)_URL := https://www.colm.net/files/ragel/$($(PKG)_FILE)
|
||||
$(PKG)_TARGETS := $(BUILD)
|
||||
$(PKG)_DEPS :=
|
||||
|
||||
define $(PKG)_UPDATE
|
||||
$(WGET) -q -O- 'https://www.colm.net/open-source/ragel/' | \
|
||||
$(SED) -n 's,.*ragel-\([0-9.]*\)\.tar.*,\1,p' | \
|
||||
$(SORT) -V | \
|
||||
tail -1
|
||||
endef
|
||||
|
||||
define $(PKG)_BUILD_$(BUILD)
|
||||
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
|
||||
--prefix='$(PREFIX)/$(BUILD)'
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
|
||||
endef
|
Loading…
Reference in New Issue