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 2022 Niklas Poslovski
15 include ..
/..
/..
/make-rules
/shared-macros.mk
17 COMPONENT_NAME
= sqlcipher
18 COMPONENT_VERSION
= 4.6.1
19 COMPONENT_SUMMARY
= SQLite extension that provides transparent
256-bit AES encryption of database
20 COMPONENT_PROJECT_URL
= https
://www.zetetic.net
/sqlcipher
/
21 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
22 COMPONENT_ARCHIVE
= v
$(COMPONENT_VERSION
).
tar.gz
23 COMPONENT_ARCHIVE_URL
= https
://github.com
/$(COMPONENT_NAME
)/$(COMPONENT_NAME
)/archive
/refs
/tags/$(COMPONENT_ARCHIVE
)
24 COMPONENT_ARCHIVE_HASH
= sha256
:d8f9afcbc2f4b55e316ca4ada4425daf3d0b4aab25f45e11a802ae422b9f53a3
25 COMPONENT_FMRI
= database
/$(COMPONENT_NAME
)
26 COMPONENT_CLASSIFICATION
= Development
/Databases
27 COMPONENT_LICENSE
= BSD
28 COMPONENT_LICENSE_FILE
= LICENSE.md
30 CFLAGS
+= -DSQLITE_HAS_CODEC
31 LDFLAGS
+= -L
$(OPENSSL_LIBDIR
)
33 CONFIGURE_OPTIONS
+= --enable-tempstore
=yes
34 CONFIGURE_OPTIONS
+= LDFLAGS
=-L
$(OPENSSL_LIBDIR
)
35 CONFIGURE_OPTIONS
+= CPPFLAGS
=-I
$(OPENSSL_INCDIR
)
37 TEST_TARGET
= $(NO_TESTS
)
38 include $(WS_MAKE_RULES
)/common.mk
40 # Auto-generated dependencies
41 REQUIRED_PACKAGES
+= $(OPENSSL_PKG
)
42 REQUIRED_PACKAGES
+= library
/libedit
43 REQUIRED_PACKAGES
+= library
/zlib
44 REQUIRED_PACKAGES
+= system
/library
45 REQUIRED_PACKAGES
+= system
/library
/math