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 2016 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
13 # Copyright 2019 Andreas Wacknitz <a.wacknitz@gmx.de>
14 # Copyright 2022 Carsten Grzemba
18 USE_PARALLEL_BUILD
= yes
19 USE_DEFAULT_TEST_TRANSFORMS
= yes
20 include ..
/..
/..
/make-rules
/shared-macros.mk
22 COMPONENT_NAME
= keepassxc
23 COMPONENT_VERSION
= 2.7.9
25 COMPONENT_SUMMARY
= Cross-platform community-driven port of Keepass password manager
26 COMPONENT_PROJECT_URL
= https
://keepassxc.org
/
27 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
28 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
)-src.
tar.xz
29 COMPONENT_ARCHIVE_HASH
= sha256
:3c44e45f22c00ddac63d8bc11054b4b0ada0222ffac08d3ed70f196cb9ed46fd
30 COMPONENT_ARCHIVE_URL
= https
://github.com
/keepassxreboot
/keepassxc
/releases
/download
/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
31 COMPONENT_FMRI
= desktop
/$(COMPONENT_NAME
)
32 COMPONENT_CLASSIFICATION
=Applications
/System Utilities
33 COMPONENT_LICENSE
= GPL
34 COMPONENT_LICENSE_FILE
= COPYING
36 include $(WS_MAKE_RULES
)/common.mk
38 LDFLAGS
+= -lsocket
-lcurses
40 CMAKE_OPTIONS
+= -DCMAKE_VERBOSE_MAKEFILE
=ON
41 CMAKE_OPTIONS
+= -DOVERRIDE_VERSION
=$(COMPONENT_VERSION
)
42 CMAKE_OPTIONS
+= -DKEEPASSXC_BUILD_TYPE
=Release
43 CMAKE_OPTIONS
+= -DCMAKE_BUILD_TYPE
=Release
44 CMAKE_OPTIONS
+= -DWITH_XC_NETWORKING
=ON
45 CMAKE_OPTIONS
+= -DWITH_XC_UPDATECHECK
=OFF
46 CMAKE_OPTIONS
+= -DWITH_XC_BROWSER
=ON
47 CMAKE_OPTIONS
+= -DWITH_XC_BROWSER_PASSKEYS
=ON
48 CMAKE_OPTIONS
+= -DWITH_XC_FDOSECRETS
=ON
49 CMAKE_OPTIONS
+= -DWITH_XC_DOCS
=off
50 CMAKE_OPTIONS
+= -DWITH_XC_SSHAGENT
=ON
51 # GUI test don't work when run here
52 #CMAKE_OPTIONS += -DWITH_GUI_TESTS=ON
53 CMAKE_OPTIONS
+= -DQt5_DIR
=$(QT5_LIBDIR
)/cmake
/Qt5
/
54 CMAKE_OPTIONS
+= -DCMAKE_INSTALL_RPATH
=$(QT5_LIBDIR
)
55 CMAKE_OPTIONS
+= -DCMAKE_LIBRARY_PATH
=$(QT5_LIBDIR
)
57 # Manually added build dependencies
58 REQUIRED_PACKAGES
+= x11
/library
/xcb-util-xrm
60 # Auto-generated dependencies
61 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
62 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
63 REQUIRED_PACKAGES
+= $(READLINE_PKG
)
64 REQUIRED_PACKAGES
+= library
/libqrencode
65 REQUIRED_PACKAGES
+= library
/minizip-ng
66 REQUIRED_PACKAGES
+= library
/qt5
67 REQUIRED_PACKAGES
+= library
/security
/botan
68 REQUIRED_PACKAGES
+= library
/zlib
69 REQUIRED_PACKAGES
+= security
/argon2
70 REQUIRED_PACKAGES
+= system
/library
71 REQUIRED_PACKAGES
+= system
/library
/math
72 REQUIRED_PACKAGES
+= x11
/library
/libx11
73 REQUIRED_PACKAGES
+= x11
/library
/libxtst