Marcel Telka
2022-01-31 b7ef23180b8258d99f0990e953e0eddbaaab32a5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 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 2015 Alexander Pyhalov
# Copyright 2019 Michal Nowak
# Copyright 2020, 2021 Andreas Wacknitz
#
 
BUILD_BITS=                64_and_32
BUILD_STYLE=            meson
include ../../../make-rules/shared-macros.mk
 
COMPONENT_NAME=            pango
COMPONENT_VERSION_MAJOR=    1
COMPONENT_VERSION_MINOR=    50
COMPONENT_VERSION_MICRO=    3
COMPONENT_VERSION_DL=    $(COMPONENT_VERSION_MAJOR).$(COMPONENT_VERSION_MINOR)
COMPONENT_VERSION=        $(COMPONENT_VERSION_DL).$(COMPONENT_VERSION_MICRO)
COMPONENT_SUMMARY=        GNOME core text and font handling libraries
COMPONENT_SRC=            $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=        $(COMPONENT_SRC).tar.xz
COMPONENT_ARCHIVE_HASH= sha256:4add05edf51c1fb375a1ccde7498914120e23cb280dd7395b1aeb441f1838a4c
COMPONENT_ARCHIVE_URL=    https://download.gnome.org/sources/$(COMPONENT_NAME)/$(COMPONENT_VERSION_DL)/$(COMPONENT_ARCHIVE)
COMPONENT_PROJECT_URL=    https://www.pango.org/
COMPONENT_FMRI=            library/desktop/pango
COMPONENT_CLASSIFICATION=    Desktop (GNOME)/Libraries
COMPONENT_LICENSE=        LGPLv2
COMPONENT_LICENSE_FILE=    COPYING
 
include $(WS_MAKE_RULES)/common.mk
 
PATH=$(PATH.gnu)
 
CONFIGURE_OPTIONS += -Dinstall-tests=true
 
CONFIGURE_OPTIONS.32 += -Dintrospection=disabled
 
COMPONENT_BUILD_ENV += CC="$(CC)"
COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
 
COMPONENT_POST_INSTALL_ACTION.32 = ( $(RM) -fr $(PROTO_DIR)/etc/pango && $(MKDIR) $(PROTO_DIR)/etc/pango &&\
    $(ENV) LD_LIBRARY_PATH=$(PROTO_DIR)/usr/lib \
    $(PROTO_DIR)/usr/bin/pango-querymodules \
      $(PROTO_DIR)/usr/lib/pango/*/modules/*.so   | sed -e "s:$(PROTO_DIR)::" \
      > $(PROTO_DIR)/etc/pango/pango.modules )
 
COMPONENT_POST_INSTALL_ACTION.64 = ( $(RM) -fr $(PROTO_DIR)/etc/$(MACH64)/pango && $(MKDIR) $(PROTO_DIR)/etc/$(MACH64)/pango &&\
    $(ENV) LD_LIBRARY_PATH=$(PROTO_DIR)/usr/lib/$(MACH64) \
    $(PROTO_DIR)/usr/bin/$(MACH64)/pango-querymodules \
      $(PROTO_DIR)/usr/lib/$(MACH64)/pango/*/modules/*.so | sed -e "s:$(PROTO_DIR)::" \
      > $(PROTO_DIR)/etc/$(MACH64)/pango/pango.modules )
 
COMPONENT_POST_INSTALL_ACTION=$(COMPONENT_POST_INSTALL_ACTION.$(BITS))
 
# For test suites to pass
unexport SHELLOPTS
 
# cp boundaries.utf8 to tests directory in the build area
COMPONENT_PRE_TEST_ACTION += cp $(SOURCE_DIR)/tests/boundaries.utf8 \
      $(BUILD_DIR_$(BITS))/tests/
COMPONENT_TEST_TARGETS += ; cd tests; ./cxx-test; ./markup-parse; \
        ./test-break; ./test-converage; ./test-font ; ./test-ot-tags; \
        ./testboundaries; ./testcolor; ./testiter; ./testscript; \
    ./test-ellipsize; ./test-harfbuzz; ./test-itemize; ./test-layout; \
    ./test-pangocairo-threads; ./test-shape; ./testmisc; ./testattributes;
COMPONENT_TEST_TRANSFORMS += '-e "s/      [0-9].[0-9][0-9]s//" '
COMPONENT_TEST_TRANSFORMS += '-e "s/      [0-9][0-9].[0-9][0-9]s//" '
COMPONENT_TEST_TRANSFORMS += \
        '-e "s/[0-2][0-3]\:[0-9]*\:[0-9]*\.[0-9]*//" ' \
        '-e "s/test-layout\:[0-9]*/test-layout/" ' \
        '-n ' \
        '-e "/Failures/d" ' \
        '-e "/OK/p" ' \
        '-e "/Ok/p" ' \
        '-e "/Fail/p" ' \
        '-e "/Pass/p" ' \
        '-e "/Skipped/p" '
 
# Auto-generated dependencies
REQUIRED_PACKAGES += library/c++/harfbuzz
REQUIRED_PACKAGES += library/desktop/cairo
REQUIRED_PACKAGES += library/fribidi
REQUIRED_PACKAGES += library/glib2
REQUIRED_PACKAGES += system/input-method/library/libthai
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/fontconfig
REQUIRED_PACKAGES += system/library/freetype-2
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += x11/library/libx11
REQUIRED_PACKAGES += x11/library/libxft
REQUIRED_PACKAGES += x11/library/libxrender