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
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
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_SUMMARY
= Fontconfig
- Font configuration and customization library
23 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
24 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
25 COMPONENT_ARCHIVE_HASH
= sha256
:63a0658d0e06e0fa886106452b58ef04f21f58202ea02a94c39de0d3335d7c0e
26 COMPONENT_PROJECT_URL
= https
://www.freedesktop.org
/wiki
/Software
/fontconfig
/
27 COMPONENT_ARCHIVE_URL
= https
://www.freedesktop.org
/software
/fontconfig
/release
/$(COMPONENT_ARCHIVE
)
28 COMPONENT_FMRI
= system
/library
/$(COMPONENT_NAME
)
29 COMPONENT_CLASSIFICATION
= System
/Libraries
30 COMPONENT_LICENSE
= MIT
31 COMPONENT_LICENSE_FILE
= COPYING
33 include $(WS_MAKE_RULES
)/common.mk
37 COMPONENT_PREP_ACTION
= ( cd
$(@D
); autoreconf
)
39 # Gperf files should be regenerated
40 # https://bugs.freedesktop.org/show_bug.cgi?id=101280
41 COMPONENT_PRE_CONFIGURE_ACTION
= ( $(RM
) $(SOURCE_DIR
)/src
/fcobjshash.h
)
43 CONFIGURE_OPTIONS
+= --sysconfdir
=$(ETCDIR
)
44 CONFIGURE_OPTIONS
+= --with-baseconfigdir
=$(ETCDIR
)/fonts
45 CONFIGURE_OPTIONS
+= --with-default-fonts
='/usr/share/fonts'
46 CONFIGURE_OPTIONS
+= --with-add-fonts
='/etc/X11/fontpath.d,/usr/share/ghostscript/fonts,/usr/X11/lib/X11/fonts'
47 CONFIGURE_OPTIONS
+= --with-cache-dir
=/var
/cache
/fontconfig
49 $(BUILD_DIR
)/.fonts_installed
: $(INSTALL_64
)
50 $(RM
) -r
$(PROTO_DIR
)/etc
/fonts
/conf.d
51 $(RM
) -r
$(PROTO_DIR
)/etc
/fonts
/conf.avail
52 $(MKDIR
) $(PROTO_DIR
)/etc
/fonts
/conf.d
53 $(MV
) $(PROTO_DIR
)/usr
/share
/fontconfig
/conf.avail
$(PROTO_DIR
)/etc
/fonts
/conf.avail
54 for i in
$$(ls
$(PROTO_DIR
)/etc
/fonts
/conf.avail
); do \
55 ln
-s ..
/conf.avail
/$$i $(PROTO_DIR
)/etc
/fonts
/conf.d
/$$i; \
59 install: $(INSTALL_64
) $(BUILD_DIR
)/.fonts_installed
61 # This is necessary to pass tests
64 # Manually added build dependencies
65 REQUIRED_PACKAGES
+= developer
/gperf
67 # Auto-generated dependencies
68 REQUIRED_PACKAGES
+= SUNWcs
69 REQUIRED_PACKAGES
+= library
/expat
70 REQUIRED_PACKAGES
+= shell/ksh93
71 REQUIRED_PACKAGES
+= system
/library
72 REQUIRED_PACKAGES
+= system
/library
/freetype-2