easy-rsa: update to 3.2.1
[oi-userland.git] / components / library / pango / Makefile
blob7775ac991ea10b316fb753a5981440c440093440
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 2015 Alexander Pyhalov
14 # Copyright 2019 Michal Nowak
15 # Copyright 2020, 2021 Andreas Wacknitz
18 BUILD_STYLE= meson
19 USE_DEFAULT_TEST_TRANSFORMS= yes
20 include ../../../make-rules/shared-macros.mk
22 COMPONENT_NAME= pango
23 COMPONENT_MJR_VERSION= 1.55
24 COMPONENT_VERSION= $(COMPONENT_MJR_VERSION).5
25 COMPONENT_SUMMARY= GNOME core text and font handling libraries
26 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
27 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
28 COMPONENT_ARCHIVE_HASH= sha256:e396126ea08203cbd8ef12638e6222e2e1fd8aa9cac6743072fedc5f2d820dd8
29 COMPONENT_ARCHIVE_URL= https://download.gnome.org/sources/pango/$(COMPONENT_MJR_VERSION)/$(COMPONENT_ARCHIVE)
30 COMPONENT_PROJECT_URL= https://www.pango.org/
31 COMPONENT_FMRI= library/desktop/pango
32 COMPONENT_CLASSIFICATION=Desktop (GNOME)/Libraries
33 COMPONENT_LICENSE= LGPLv2
34 COMPONENT_LICENSE_FILE= COPYING
36 include $(WS_MAKE_RULES)/common.mk
38 PATH= $(PATH.gnu)
40 COMPONENT_BUILD_ENV += CC="$(CC)"
41 COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
43 COMPONENT_POST_INSTALL_ACTION = ( \
44 $(RM) -fr $(PROTO_DIR)/etc/$(MACH64)/pango && $(MKDIR) $(PROTO_DIR)/etc/$(MACH64)/pango &&\
45 $(ENV) LD_LIBRARY_PATH=$(PROTO_DIR)/usr/lib/$(MACH64) \
46 $(PROTO_DIR)/usr/bin/$(MACH64)/pango-querymodules \
47 $(PROTO_DIR)/usr/lib/$(MACH64)/pango/*/modules/*.so | sed -e "s:$(PROTO_DIR)::" \
48 > $(PROTO_DIR)/etc/$(MACH64)/pango/pango.modules )
50 # cp boundaries.utf8 to tests directory in the build area
51 COMPONENT_PRE_TEST_ACTION += \
52 cp $(SOURCE_DIR)/tests/boundaries.utf8 $(BUILD_DIR_$(BITS))/tests/
54 COMPONENT_TEST_TARGETS += ; cd tests; ./cxx-test; ./markup-parse; \
55 ./test-break; ./test-converage; ./test-font ; ./test-ot-tags; \
56 ./testboundaries; ./testcolor; ./testiter; ./testscript; \
57 ./test-ellipsize; ./test-harfbuzz; ./test-itemize; ./test-layout; \
58 ./test-pangocairo-threads; ./test-shape; ./testmisc; ./testattributes;
60 COMPONENT_TEST_TRANSFORMS += \
61 '-e "s/ [0-9].[0-9][0-9]s//" ' \
62 '-e "s/ [0-9][0-9].[0-9][0-9]s//" ' \
63 '-e "s/[0-9]*\:[0-9]*\:[0-9]*\.[0-9]*//" ' \
64 '-e "s/test-layout\:[0-9]*/test-layout/" '
66 # Auto-generated dependencies
67 REQUIRED_PACKAGES += library/c++/harfbuzz
68 REQUIRED_PACKAGES += library/desktop/cairo
69 REQUIRED_PACKAGES += library/fribidi
70 REQUIRED_PACKAGES += library/glib2
71 REQUIRED_PACKAGES += system/input-method/library/libthai
72 REQUIRED_PACKAGES += system/library
73 REQUIRED_PACKAGES += system/library/fontconfig
74 REQUIRED_PACKAGES += system/library/freetype-2
75 REQUIRED_PACKAGES += system/library/math
76 REQUIRED_PACKAGES += x11/library/libx11
77 REQUIRED_PACKAGES += x11/library/libxft
78 REQUIRED_PACKAGES += x11/library/libxrender