summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
Diffstat (limited to 'rules')
-rw-r--r--rules/xorg-lib-Xfont.in100
-rw-r--r--rules/xorg-lib-Xfont.make58
2 files changed, 149 insertions, 9 deletions
diff --git a/rules/xorg-lib-Xfont.in b/rules/xorg-lib-Xfont.in
index cb505064e..f6c579a7a 100644
--- a/rules/xorg-lib-Xfont.in
+++ b/rules/xorg-lib-Xfont.in
@@ -1,13 +1,97 @@
-config XORG_LIB_XFONT
+# These are always required:
+# Requires: xproto fontsproto
+# Requires.private: fontenc
+# Libs.private: -lz -lm
+
+menuconfig XORG_LIB_XFONT
bool
- select FREETYPE
- select ZLIB
- select XORG_LIB_FONTENC
- select XORG_PROTO_FONTCACHE
select XORG_PROTO_X
- select XORG_LIB_XTRANS
select XORG_PROTO_FONTS
select XORG_LIB_FONTENC
- prompt "libXfont"
+ select ZLIB
+ select FREETYPE if XORG_LIB_XFONT_FREETYPE
+ select XORG_PROTO_FONTCACHE if XORG_LIB_XFONT_FONTCACHE
+ select XORG_LIB_XTRANS if XORG_LIB_XFONT_FONTSERVER
+ prompt "libXfont "
+ help
+ X font Library
+
+config XORG_LIB_XFONT_FREETYPE
+ depends on XORG_LIB_XFONT
+ bool
+ default n
+ prompt "Use freetype as rendering library"
+ help
+ This will enable freetype 2.x library.
+
+config XORG_LIB_XFONT_FONTCACHE
+ depends on XORG_LIB_XFONT
+ bool
+ default n
+ prompt "Use fontcache"
+ help
+ This will enable fontcache support
+
+config XORG_LIB_XFONT_FONTSERVER
+ depends on XORG_LIB_XFONT
+ bool
+ default n
+ prompt "Support font server connections"
+ help
+ This will support connections to font server.
+
+config XORG_LIB_XFONT_TYPE1_FONTS
+ depends on XORG_LIB_XFONT
+ bool
+ default n
+ prompt "Support type1 fonts"
+ help
+ Enable Type 1 fonts in this X server.
+
+config XORG_LIB_XFONT_CID_FONTS
+ depends on XORG_LIB_XFONT
+ bool
+ default n
+ prompt "Support CID fonts"
+ help
+ Enable CID fonts in this X server.
+
+config XORG_LIB_XFONT_SPEEDO_FONTS
+ depends on XORG_LIB_XFONT
+ bool
+ default n
+ prompt "Support Speedo fonts"
+ help
+ Enable Speedo fonts in this X server.
+
+config XORG_LIB_XFONT_PCF_FONTS
+ depends on XORG_LIB_XFONT
+ bool
+ default n
+ prompt "Support pcf format fonts"
+ help
+ Enable pcf format fonts in this X server.
+
+config XORG_LIB_XFONT_BDF_FONTS
+ depends on XORG_LIB_XFONT
+ bool
+ default n
+ prompt "Support bdf format fonts"
+ help
+ Enable bdf format fonts in this X server.
+
+config XORG_LIB_XFONT_SNF_FONTS
+ depends on XORG_LIB_XFONT
+ bool
+ default n
+ prompt "Support snf format fonts"
+ help
+ Enable snf format fonts in this X server.
+
+config XORG_LIB_XFONT_BUILTIN_FONTS
+ depends on XORG_LIB_XFONT
+ bool
+ default n
+ prompt "Support builtin fonts"
help
- FIXME
+ Builtins (gzipped pcf format in .text segment)
diff --git a/rules/xorg-lib-Xfont.make b/rules/xorg-lib-Xfont.make
index 8795566d9..5620faf16 100644
--- a/rules/xorg-lib-Xfont.make
+++ b/rules/xorg-lib-Xfont.make
@@ -83,13 +83,69 @@ XORG_LIB_XFONT_AUTOCONF += --enable-IPv6
else
XORG_LIB_XFONT_AUTOCONF += --disable-IPv6
endif
-
+#
+# Use the global switch here to support freetype when
+# its present in the system
+#
ifdef PTXCONF_FREETYPE
XORG_LIB_XFONT_AUTOCONF += --enable-freetype
else
XORG_LIB_XFONT_AUTOCONF += --disable-freetype
endif
+ifdef PTXCONF_XORG_LIB_XFONT_FONTCACHE
+XORG_LIB_XFONT_AUTOCONF += --enable-fontcache
+else
+XORG_LIB_XFONT_AUTOCONF += --disable-fontcache
+endif
+
+ifdef PTXCONF_XORG_LIB_XFONT_FONTSERVER
+XORG_LIB_XFONT_AUTOCONF += --enable-fc
+else
+XORG_LIB_XFONT_AUTOCONF += --disable-fc
+endif
+
+ifdef PTXCONF_XORG_LIB_XFONT_TYPE1_FONTS
+XORG_LIB_XFONT_AUTOCONF += --enable-type1
+else
+XORG_LIB_XFONT_AUTOCONF += --disable-type1
+endif
+
+ifdef PTXCONF_XORG_LIB_XFONT_CID_FONTS
+XORG_LIB_XFONT_AUTOCONF += --enable-cid
+else
+XORG_LIB_XFONT_AUTOCONF += --disable-cid
+endif
+
+ifdef PTXCONF_XORG_LIB_XFONT_SPEEDO_FONTS
+XORG_LIB_XFONT_AUTOCONF += --enable-speedo
+else
+XORG_LIB_XFONT_AUTOCONF += --disable-speedo
+endif
+
+ifdef PTXCONF_XORG_LIB_XFONT_PCF_FONTS
+XORG_LIB_XFONT_AUTOCONF += --enable-pcfformat
+else
+XORG_LIB_XFONT_AUTOCONF += --disable-pcfformat
+endif
+
+ifdef PTXCONF_XORG_LIB_XFONT_BDF_FONTS
+XORG_LIB_XFONT_AUTOCONF += --enable-bdfformat
+else
+XORG_LIB_XFONT_AUTOCONF += --disable-bdfformat
+endif
+
+ifdef PTXCONF_XORG_LIB_XFONT_SNF_FONTS
+XORG_LIB_XFONT_AUTOCONF += --enable-snfformat
+else
+XORG_LIB_XFONT_AUTOCONF += --disable-snfformat
+endif
+
+ifdef PTXCONF_XORG_LIB_XFONT_BUILTIN_FONTS
+XORG_LIB_XFONT_AUTOCONF += --enable-builtins
+else
+XORG_LIB_XFONT_AUTOCONF += --disable-builtins
+endif
$(STATEDIR)/xorg-lib-Xfont.prepare: $(xorg-lib-Xfont_prepare_deps_default)
@$(call targetinfo, $@)