# # This file and its contents are supplied under the terms of the # Common Development and Distribution License ("CDDL"). You may # only use this file in accordance with the terms of the CDDL. # # A full copy of the text of the CDDL should have accompanied this # source. A copy of the CDDL is also available via the Internet at # http://www.illumos.org/license/CDDL. # # # Copyright 2016 Josef 'Jeff' Sipek # Copyright 2019 Andreas Wacknitz # Copyright 2022 Carsten Grzemba # BUILD_STYLE= cmake USE_PARALLEL_BUILD= yes USE_DEFAULT_TEST_TRANSFORMS= yes include ../../../make-rules/shared-macros.mk COMPONENT_NAME= keepassxc COMPONENT_VERSION= 2.7.9 COMPONENT_REVISION= 4 COMPONENT_SUMMARY= Cross-platform community-driven port of Keepass password manager COMPONENT_PROJECT_URL= https://keepassxc.org/ COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) COMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.xz COMPONENT_ARCHIVE_HASH= sha256:3c44e45f22c00ddac63d8bc11054b4b0ada0222ffac08d3ed70f196cb9ed46fd COMPONENT_ARCHIVE_URL= https://github.com/keepassxreboot/keepassxc/releases/download/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) COMPONENT_FMRI= desktop/$(COMPONENT_NAME) COMPONENT_CLASSIFICATION=Applications/System Utilities COMPONENT_LICENSE= GPL COMPONENT_LICENSE_FILE= COPYING include $(WS_MAKE_RULES)/common.mk LDFLAGS += -lsocket -lcurses CMAKE_OPTIONS += -DCMAKE_VERBOSE_MAKEFILE=ON CMAKE_OPTIONS += -DOVERRIDE_VERSION=$(COMPONENT_VERSION) CMAKE_OPTIONS += -DKEEPASSXC_BUILD_TYPE=Release CMAKE_OPTIONS += -DCMAKE_BUILD_TYPE=Release CMAKE_OPTIONS += -DWITH_XC_NETWORKING=ON CMAKE_OPTIONS += -DWITH_XC_UPDATECHECK=OFF CMAKE_OPTIONS += -DWITH_XC_BROWSER=ON CMAKE_OPTIONS += -DWITH_XC_BROWSER_PASSKEYS=ON CMAKE_OPTIONS += -DWITH_XC_FDOSECRETS=ON CMAKE_OPTIONS += -DWITH_XC_DOCS=off CMAKE_OPTIONS += -DWITH_XC_SSHAGENT=ON # GUI test don't work when run here #CMAKE_OPTIONS += -DWITH_GUI_TESTS=ON CMAKE_OPTIONS += -DQt5_DIR=$(QT5_LIBDIR)/cmake/Qt5/ CMAKE_OPTIONS += -DCMAKE_INSTALL_RPATH=$(QT5_LIBDIR) CMAKE_OPTIONS += -DCMAKE_LIBRARY_PATH=$(QT5_LIBDIR) # Manually added build dependencies REQUIRED_PACKAGES += x11/library/xcb-util-xrm # Auto-generated dependencies REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG) REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG) REQUIRED_PACKAGES += $(READLINE_PKG) REQUIRED_PACKAGES += library/libqrencode REQUIRED_PACKAGES += library/minizip-ng REQUIRED_PACKAGES += library/qt5 REQUIRED_PACKAGES += library/security/botan REQUIRED_PACKAGES += library/zlib REQUIRED_PACKAGES += security/argon2 REQUIRED_PACKAGES += system/library REQUIRED_PACKAGES += system/library/math REQUIRED_PACKAGES += x11/library/libx11 REQUIRED_PACKAGES += x11/library/libxtst