easy-rsa: update to 3.2.1
[oi-userland.git] / components / library / fontconfig / Makefile
blob1afa66472b01c10da03f5088f1fcffc1b2708acf
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
16 USE_PARALLEL_BUILD= yes
17 USE_DEFAULT_TEST_TRANSFORMS= yes
18 include ../../../make-rules/shared-macros.mk
20 COMPONENT_NAME= fontconfig
21 COMPONENT_VERSION= 2.15.0
22 COMPONENT_REVISION= 1
23 COMPONENT_SUMMARY= Fontconfig - Font configuration and customization library
24 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
25 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
26 COMPONENT_ARCHIVE_HASH= sha256:63a0658d0e06e0fa886106452b58ef04f21f58202ea02a94c39de0d3335d7c0e
27 COMPONENT_PROJECT_URL= https://www.freedesktop.org/wiki/Software/fontconfig/
28 COMPONENT_ARCHIVE_URL= https://www.freedesktop.org/software/fontconfig/release/$(COMPONENT_ARCHIVE)
29 COMPONENT_FMRI= system/library/$(COMPONENT_NAME)
30 COMPONENT_CLASSIFICATION= System/Libraries
31 COMPONENT_LICENSE= MIT
32 COMPONENT_LICENSE_FILE= COPYING
34 include $(WS_MAKE_RULES)/common.mk
36 # Make gcc 14 accept the old code.
37 CFLAGS += -Wno-error=incompatible-pointer-types
38 CFLAGS += -Wno-error=int-conversion
40 COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
42 PATH= $(PATH.gnu)
44 COMPONENT_PREP_ACTION= ( cd $(@D); autoreconf )
46 # Gperf files should be regenerated
47 # https://bugs.freedesktop.org/show_bug.cgi?id=101280
48 COMPONENT_PRE_CONFIGURE_ACTION= ( $(RM) $(SOURCE_DIR)/src/fcobjshash.h )
50 CONFIGURE_OPTIONS += --with-baseconfigdir=$(ETCDIR)/fonts
51 CONFIGURE_OPTIONS += --with-default-fonts='/usr/share/fonts'
52 CONFIGURE_OPTIONS += --with-add-fonts='/etc/X11/fontpath.d,/usr/share/ghostscript/fonts,/usr/X11/lib/X11/fonts'
53 CONFIGURE_OPTIONS += --with-cache-dir=/var/cache/fontconfig
55 $(BUILD_DIR)/.fonts_installed: $(INSTALL_64)
56 $(RM) -r $(PROTO_DIR)/etc/fonts/conf.d
57 $(RM) -r $(PROTO_DIR)/etc/fonts/conf.avail
58 $(MKDIR) $(PROTO_DIR)/etc/fonts/conf.d
59 $(MV) $(PROTO_DIR)/usr/share/fontconfig/conf.avail $(PROTO_DIR)/etc/fonts/conf.avail
60 for i in $$(ls $(PROTO_DIR)/etc/fonts/conf.avail); do \
61 ln -s ../conf.avail/$$i $(PROTO_DIR)/etc/fonts/conf.d/$$i; \
62 done
63 $(TOUCH) $@
65 install: $(INSTALL_64) $(BUILD_DIR)/.fonts_installed
67 # Manually added build dependencies
68 REQUIRED_PACKAGES += developer/gperf
70 # Auto-generated dependencies
71 REQUIRED_PACKAGES += SUNWcs
72 REQUIRED_PACKAGES += library/expat
73 REQUIRED_PACKAGES += shell/ksh93
74 REQUIRED_PACKAGES += system/library
75 REQUIRED_PACKAGES += system/library/freetype-2