mosquitto: fix build
[oi-userland.git] / components / desktop / fbreader / Makefile
blobd340a7d084353caa292dfcd013cc8a865a6cb50d
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2014 Alexander Pyhalov. All rights reserved.
14 # Copyright 2019 Michal Nowak
15 # Copyright 2022 Daniel Chan
18 BUILD_STYLE= justmake
19 include ../../../make-rules/shared-macros.mk
21 COMPONENT_NAME= fbreader
22 COMPONENT_VERSION= 0.99.4
23 COMPONENT_REVISION= 7
24 COMPONENT_SUMMARY= Powerful e-book reader
25 COMPONENT_PROJECT_URL= https://www.fbreader.org
26 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
27 COMPONENT_ARCHIVE= $(COMPONENT_NAME)-sources-$(COMPONENT_VERSION).tgz
28 COMPONENT_ARCHIVE_HASH= sha256:3d7c31d5ea314589d2a963290ad16f4d3d631a41e802b8b39f8be0c9f71eb8e9
29 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/files/desktop/$(COMPONENT_ARCHIVE)
30 COMPONENT_FMRI= desktop/fbreader
31 COMPONENT_CLASSIFICATION= Applications/Office
32 COMPONENT_LICENSE= GPLv2
34 include $(WS_MAKE_RULES)/common.mk
36 PATH= $(PATH.gnu):$(QT5_BINDIR)
38 ENV += TARGET_ARCH=desktop
39 ENV += UI_TYPE=qt4
40 ENV += TARGET_STATUS=release
41 ENV += CFLAGS="$(CFLAGS)"
42 ENV += LDFLAGS="$(LDFLAGS)"
43 ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH):$(QT5_PKG_CONFIG_PATH)"
44 ENV += QT_NO_OPENSSL=1
45 ENV += ZLSHARED=no
47 COMPONENT_POST_INSTALL_ACTION = \
48 /usr/bin/elfedit -e 'dyn:value -s RUNPATH "$(GCC_LIBDIR):$(QT5_LIBDIR)"' $(PROTO_DIR)/usr/bin/FBReader; \
49 /usr/bin/elfedit -e 'dyn:value -s RPATH "$(GCC_LIBDIR):$(QT5_LIBDIR)"' $(PROTO_DIR)/usr/bin/FBReader;
51 REQUIRED_PACKAGES += web/curl
53 # Auto-generated dependencies
54 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
55 REQUIRED_PACKAGES += compress/bzip2
56 REQUIRED_PACKAGES += database/sqlite-3
57 REQUIRED_PACKAGES += library/expat
58 REQUIRED_PACKAGES += library/fribidi
59 REQUIRED_PACKAGES += library/libunibreak
60 REQUIRED_PACKAGES += library/qt5
61 REQUIRED_PACKAGES += library/zlib
62 REQUIRED_PACKAGES += system/library