json-c: add 32 bit library, needed in order to be able to build fontconfig in 32...
[oi-userland.git] / components / library / freetype / Makefile
blob865301971beaae45124eaa090af99d4df588803d
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 2016 Aurelien Larcher
15 # Copyright 2019 Michal Nowak
16 # Copyright 2024 Klaus Ziegler
19 BUILD_BITS= 64_and_32
20 include ../../../make-rules/shared-macros.mk
22 COMPONENT_NAME= freetype
23 COMPONENT_VERSION= 2.13.3
24 COMPONENT_REVISION= 2
25 COMPONENT_SUMMARY= FreeType 2 font engine
26 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
27 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
28 COMPONENT_ARCHIVE_HASH= sha256:0550350666d427c74daeb85d5ac7bb353acba5f76956395995311a9c6f063289
29 COMPONENT_ARCHIVE_URL= https://download.savannah.gnu.org/releases/freetype/$(COMPONENT_ARCHIVE)
30 COMPONENT_PROJECT_URL= https://freetype.org/
31 COMPONENT_FMRI= system/library/freetype-2
32 COMPONENT_CLASSIFICATION= System/Libraries
33 COMPONENT_LICENSE= The FreeType Project License
34 COMPONENT_LICENSE_FILE= LICENSE.TXT
36 COMPONENT_FMRI.$(COMPONENT_NAME)-2-32 = $(COMPONENT_FMRI)/32
37 COMPONENT_SUMMARY.$(COMPONENT_NAME)-32 = $(COMPONENT_SUMMARY) (32-bit)
39 TEST_TARGET= $(NO_TESTS)
40 include $(WS_MAKE_RULES)/common.mk
42 PATH= $(PATH.gnu)
44 CONFIGURE_OPTIONS += --disable-static
45 CONFIGURE_OPTIONS += --enable-shared
46 CONFIGURE_OPTIONS += --enable-freetype-config
47 CONFIGURE_OPTIONS += --with-zlib
48 CONFIGURE_OPTIONS += --with-bzip2
49 CONFIGURE_OPTIONS += --with-png
50 CONFIGURE_OPTIONS.32 += --with-harfbuzz=no
51 CONFIGURE_OPTIONS.64 += --with-harfbuzz=yes
52 CONFIGURE_OPTIONS += --with-pic
54 COMPONENT_PREP_ACTION = ( cd $(@D); \
55 $(GSED) -ri 's:.*(AUX_MODULES.*valid):\1:' modules.cfg && \
56 $(GSED) -r 's:.*(\#.*SUBPIXEL_RENDERING) .*:\1:' \
57 -i include/freetype/config/ftoption.h )
59 # Auto-generated dependencies
60 REQUIRED_PACKAGES += compress/bzip2
61 REQUIRED_PACKAGES += image/library/libpng16
62 REQUIRED_PACKAGES += library/brotli
63 REQUIRED_PACKAGES += library/c++/harfbuzz
64 REQUIRED_PACKAGES += library/zlib
65 REQUIRED_PACKAGES += shell/ksh93
66 REQUIRED_PACKAGES += system/library