Skip to content

Commit

Permalink
Update xmake.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
c8ef authored Jul 13, 2024
1 parent aa21c9c commit a56e814
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/h/hyperscan/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ package("hyperscan")
"https://github.com/intel/hyperscan.git")
add_versions("v5.4.2", "32b0f24b3113bbc46b6bfaa05cf7cf45840b6b59333d078cc1f624e4c40b2b99")

add_deps("cmake", "boost", "ragel")
add_deps("cmake", "boost", "ragel", "python")

on_install(function (package)
on_install("linux", "windows|x64", function (package)
io.replace("Makefile", "prefix ?= /usr/local", "prefix ?= " .. package:installdir(), {plain = true})
local configs = {}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
Expand Down

0 comments on commit a56e814

Please sign in to comment.