forked from Freetz/freetz
-
-
Notifications
You must be signed in to change notification settings - Fork 107
/
pango.mk
73 lines (58 loc) · 2.76 KB
/
pango.mk
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
$(call PKG_INIT_LIB, 1.54.0)
$(PKG)_LIB_VERSION:=0.5400.0
$(PKG)_MAJOR_VERSION:=1.0
$(PKG)_SOURCE:=pango-$($(PKG)_VERSION).tar.xz
$(PKG)_HASH:=8a9eed75021ee734d7fc0fdf3a65c3bba51dfefe4ae51a9b414a60c70b2d1ed8
$(PKG)_SITE:=https://download.gnome.org/sources/pango/$(call GET_MAJOR_VERSION,$($(PKG)_VERSION))
### WEBSITE:=https://www.pango.org/
### MANPAGE:=https://docs.gtk.org/Pango/
### CHANGES:=https://gitlab.gnome.org/GNOME/pango/blob/main/NEWS
### CVSREPO:=https://gitlab.gnome.org/GNOME/pango
$(PKG)_LIBNAMES_SHORT := pango pangoft2 pangocairo
$(PKG)_LIBNAMES_LONG := $($(PKG)_LIBNAMES_SHORT:%=lib%-$($(PKG)_MAJOR_VERSION).so.$($(PKG)_LIB_VERSION))
$(PKG)_LIBS_BUILD_DIR := $($(PKG)_LIBNAMES_LONG:%=$($(PKG)_DIR)/builddir/pango/%)
$(PKG)_LIBS_STAGING_DIR := $($(PKG)_LIBNAMES_LONG:%=$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/%)
$(PKG)_LIBS_TARGET_DIR := $($(PKG)_LIBNAMES_LONG:%=$($(PKG)_TARGET_DIR)/%)
$(PKG)_DEPENDS_ON += meson-host glib2 harfbuzz fribidi fontconfig freetype cairo
$(PKG)_CONFIGURE_OPTIONS += -D debug=false
$(PKG)_CONFIGURE_OPTIONS += -D buildtype=release
$(PKG)_CONFIGURE_OPTIONS += -D build-examples=false
$(PKG)_CONFIGURE_OPTIONS += -D build-testsuite=false
$(PKG)_CONFIGURE_OPTIONS += -D cairo=enabled
$(PKG)_CONFIGURE_OPTIONS += -D documentation=false
$(PKG)_CONFIGURE_OPTIONS += -D fontconfig=enabled
$(PKG)_CONFIGURE_OPTIONS += -D freetype=enabled
$(PKG)_CONFIGURE_OPTIONS += -D gtk_doc=false
$(PKG)_CONFIGURE_OPTIONS += -D introspection=disabled
$(PKG)_CONFIGURE_OPTIONS += -D libthai=disabled
$(PKG)_CONFIGURE_OPTIONS += -D sysprof=disabled
$(PKG)_CONFIGURE_OPTIONS += -D xft=disabled
$(PKG)_EXTRA_CFLAGS += -I$(TARGET_TOOLCHAIN_STAGING_DIR)/include/glib-2.0
$(PKG)_EXTRA_CFLAGS += -I$(TARGET_TOOLCHAIN_STAGING_DIR)/lib/glib-2.0/include
$(PKG_SOURCE_DOWNLOAD)
$(PKG_UNPACKED)
$(PKG_CONFIGURED_MESON)
$($(PKG)_LIBS_BUILD_DIR): $($(PKG)_DIR)/.configured
$(SUBMESON) compile \
-C $(PANGO_DIR)/builddir/
#meson $(MESON) configure $(PANGO_DIR)/builddir/
$($(PKG)_LIBS_STAGING_DIR): $($(PKG)_LIBS_BUILD_DIR)
$(SUBMESON) install \
--destdir "$(TARGET_TOOLCHAIN_STAGING_DIR)" \
-C $(PANGO_DIR)/builddir/
$(PKG_FIX_LIBTOOL_LA) \
$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/pkgconfig/pango*.pc
#meson $(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/libpango*.la
$($(PKG)_LIBS_TARGET_DIR): $($(PKG)_TARGET_DIR)/%: $(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/%
$(INSTALL_LIBRARY_STRIP)
$(pkg): $($(PKG)_LIBS_STAGING_DIR)
$(pkg)-precompiled: $($(PKG)_LIBS_TARGET_DIR)
$(pkg)-clean:
-$(SUBNINJA) -C $(PANGO_DIR)/builddir/ clean
$(RM) -r \
$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/libpango* \
$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/include/pango/ \
$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/pkgconfig/pango*.pc
$(pkg)-uninstall:
$(RM) $(PANGO_TARGET_DIR)/libpango*.so*
$(PKG_FINISH)