# Implementation of OPC UA (OPC Unified Architecture). https://open62541.org/

[buildout]
parts = open62541
extends =
  ../cmake/buildout.cfg
  ../patch/buildout.cfg

[open62541]
recipe = slapos.recipe.cmmi
shared = true
url = https://github.com/open62541/open62541/archive/refs/heads/pack/v1.3.zip
md5sum = c2e9938f082b027110fba538de76684c
patch-options = -p1
patches =
  ${:_profile_base_location_}/ipv6_bugfix.patch#355bec02adee4ea73ff5a56ba6971ad2
configure-command =
  ${cmake:location}/bin/cmake
configure-options =
  -DBUILD_SHARED_LIBS=ON
  -DCMAKE_BUILD_TYPE=Release
  -DCMAKE_INSTALL_PREFIX=@@LOCATION@@
  -DUA_ENABLE_PUBSUB=ON
  -DUA_ENABLE_SUBSCRIPTIONS=ON
  -DUA_NAMESPACE_ZERO=REDUCED
post-install =
  cp src/pubsub/*.h deps/open62541_queue.h @@LOCATION@@/include
environement =
  PATH=${patch:location}/bin:%(PATH)s
