2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2015 Adam Stevko
13 # Copyright 2021, 2024 Andreas Wacknitz
16 USE_PARALLEL_BUILD
= yes
17 include ..
/..
/..
/make-rules
/shared-macros.mk
20 COMPONENT_VERSION
= 3.6.1
21 COMPONENT_SUMMARY
= Crypto and TLS for Modern C
++
22 COMPONENT_PROJECT_URL
= https
://botan.randombit.net
/
23 COMPONENT_SRC
= Botan-
$(COMPONENT_VERSION
)
24 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
25 COMPONENT_ARCHIVE_HASH
= sha256
:7cb8575d88d232c77174769d7f9e24bb44444160585986eebd66e749cb9a9089
26 COMPONENT_ARCHIVE_URL
= https
://botan.randombit.net
/releases
/$(COMPONENT_ARCHIVE
)
27 COMPONENT_FMRI
= library
/security
/botan
28 COMPONENT_CLASSIFICATION
= System
/Security
29 COMPONENT_LICENSE
= BSD-2-Clause
30 COMPONENT_LICENSE_FILE
= license.txt
32 # add for using variable in manifest
33 PKG_VARS
+= PYTHON_VERSION
35 include $(WS_MAKE_RULES
)/common.mk
37 COMPONENT_PRE_CONFIGURE_ACTION
= ( $(CLONEY
) $(SOURCE_DIR
) $(@D
) )
39 COMPONENT_POST_INSTALL_ACTION
= ( \
41 mkdir
-p .
$(PYTHON_LIB
) && \
42 mv usr
/lib
/$(MACH64
)/python
$(PYTHON_VERSION
)/site-packages
/botan3.py .
$(PYTHON_LIB
) && \
43 $(CONFIG_SHELL
) -m py_compile .
$(PYTHON_LIB
)/botan3.py
)
45 CONFIG_SHELL
= $(PYTHON
)
46 CONFIGURE_SCRIPT
= $(SOURCE_DIR
)/configure.py
48 # cleanup CONFIGURE_OPTIONS presettings to prevent
49 # ERROR:root:Unhandled option(s): CC= CXX= F77= FC= CFLAGS= CXXFLAGS= FFLAGS= FCFLAGS= LDFLAGS= PKG_CONFIG_PATH=
51 CONFIGURE_OPTIONS
+= --prefix=$(USRDIR
)
52 ifeq ($(strip $(MACH
)),i386
)
53 CONFIGURE_OPTIONS
+= --cpu
=x86_64
55 CONFIGURE_OPTIONS
+= --cpu
=sparc64
58 CONFIGURE_OPTIONS
+= --disable-static-library
59 CONFIGURE_OPTIONS
+= --libdir=$(CONFIGURE_LIBDIR.
$(BITS
))
60 CONFIGURE_OPTIONS
+= --os solaris
61 CONFIGURE_OPTIONS
+= --with-bzip2
62 CONFIGURE_OPTIONS
+= --with-lzma
63 CONFIGURE_OPTIONS
+= --with-zlib
64 CONFIGURE_OPTIONS
+= --with-sqlite3
65 CONFIGURE_OPTIONS
+= --with-python-versions
=$(PYTHON_VERSION
)
66 # Make documentation consistent
67 CONFIGURE_OPTIONS
+= --without-sphinx
69 COMPONENT_TEST_TRANSFORMS
+= \
70 ' -e "s/in [0-9]*.[0-9]* msec //" ' \
71 ' -e "s/in [0-9]*.[0-9]* sec //" ' \
76 # Manually added dependencies
77 PYTHON_REQUIRED_PACKAGES
+= runtime
/python
79 # Auto-generated dependencies
80 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
81 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
82 REQUIRED_PACKAGES
+= compress
/bzip2
83 REQUIRED_PACKAGES
+= compress
/xz
84 REQUIRED_PACKAGES
+= database
/sqlite-3
85 REQUIRED_PACKAGES
+= library
/zlib
86 REQUIRED_PACKAGES
+= system
/library
87 REQUIRED_PACKAGES
+= system
/library
/math