newer OpenSSL API that LibreSSL also provides. Use X509_check_issued instead of missing API until LibreSSL developers implement a more compatible solution. OK tb@
64 lines
1.5 KiB
Makefile
64 lines
1.5 KiB
Makefile
COMMENT = library implementation of OPC UA
|
|
|
|
VERSION = 1.3.4
|
|
REVISION = 0
|
|
DISTNAME = open62541-${VERSION}
|
|
PKGNAME = open62541-${VERSION}
|
|
|
|
SHARED_LIBS = open62541 3.0
|
|
|
|
CATEGORIES = misc
|
|
|
|
HOMEPAGE = https://open62541.org/
|
|
|
|
MAINTAINER = Alexander Bluhm <bluhm@openbsd.org>
|
|
|
|
# Mozilla Public License v2.0
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB = c crypto m pthread ssl tls
|
|
|
|
MASTER_SITES = https://github.com/open62541/open62541/
|
|
MASTER_SITES0 = https://github.com/OPCFoundation/UA-Nodeset/archive/
|
|
DISTFILES = open62541-{archive/refs/tags/v}${VERSION}.tar.gz \
|
|
UA-1.04.10-2021-09-15.tar.gz:0
|
|
|
|
MODULES = devel/cmake
|
|
|
|
# needed to build unit tests and documentation
|
|
BUILD_DEPENDS = devel/check \
|
|
math/graphviz \
|
|
print/texlive/base \
|
|
print/texlive/texmf,-main \
|
|
print/texlive/texmf,-full \
|
|
textproc/py-sphinx,python3 \
|
|
textproc/py-sphinx_rtd_theme,python3
|
|
|
|
CONFIGURE_ARGS = -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DOPEN62541_VERSION=v${VERSION} \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DUA_ENABLE_ENCRYPTION=LIBRESSL \
|
|
-DUA_ENABLE_AMALGAMATION=OFF \
|
|
-DUA_PACK_DEBIAN=ON \
|
|
-DUA_BUILD_TOOLS=ON \
|
|
-DUA_BUILD_UNIT_TESTS=ON
|
|
|
|
DEBUG_PACKAGES = ${BUILD_PACKAGES}
|
|
|
|
FLAVORS = ns0_full
|
|
FLAVOR ?=
|
|
|
|
.if ${FLAVOR:Mns0_full}
|
|
CONFIGURE_ARGS += -DUA_NAMESPACE_ZERO=FULL
|
|
.else
|
|
CONFIGURE_ARGS += -DUA_NAMESPACE_ZERO=REDUCED
|
|
.endif
|
|
|
|
.if ${FLAVOR:Mns0_full}
|
|
post-extract:
|
|
rmdir ${WRKSRC}/deps/ua-nodeset/
|
|
mv ${WRKDIR}/UA-Nodeset-UA-*/ ${WRKSRC}/deps/ua-nodeset/
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|