Fonts: - fonts/hack: Hack 3.003 (Expat + Bitstream Vera, from Debian fonts-hack), installed to dt/fonts; config/fonts.conf (the system's fontconfig plus that directory) exported by Xsession.d/0070.dtfonts and Dtlogin*environment. - sys.resources and dtlogin Xresources: Xft render tables in Hack 10 for renderTable, textRenderTable, labelRenderTable, buttonRenderTable (a render table wins over sys.font's *FontList; dtterm and text fields read the text table). dtterm (ported from MakroDE -- setlocale and the Xft renderer -- then fixed): - configure: Xft on by default, --disable-xft for machines without it. - TermPrimRenderXft.c: reads wchar_t in multibyte locales (it read the buffer as UTF-8 bytes: three boxes after every character), places every character in its cell on the baseline, fills the background, draws underline/overstrike/secure, wcwidth for wide and combining characters, borrows glyphs from fontconfig fallbacks (check mark, CJK), and makes its XftDraw at the first drawing (made in Initialize it was window 0, and the first string a BadDrawable that ended dtterm). - TermPrim.c AdjustWindowUnits: the cell from the renderer's extents when there is no XFontStruct (crashed with Xft); _DtTermPrimRenderFontExtents. - TermPrimRenderFont.c: with setlocale the buffer is wchar_t in UTF-8, the single-font renderer draws it as XChar2b (it drew boxes too). Screenshots: build/mcde-shots/dtterm-utf8b-crop.png, dtterm-classic-crop.png. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
184 lines
4.2 KiB
Makefile
184 lines
4.2 KiB
Makefile
|
|
AM_CPPFLAGS = -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
|
|
-DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
|
|
-DCDE_LOGFILES_TOP=$(CDE_LOGFILES_TOP) \
|
|
-DFONTALIASESCONFDIR=$(sysconfdir)/$(PACKAGE_TARNAME)/fontaliases \
|
|
-DFONTALIASESDATADIR=$(pkgdatadir)/fontaliases \
|
|
-DKORNSHELL=$(KSH)
|
|
|
|
CPP_TARGETS = 0060.dtsysenv Dtlogin Xaccess Xconfig Xconfig.con \
|
|
Xconfig.nc Xfailsafe Xreset Xresources Xresources.ive \
|
|
Xservers Xservers.con Xservers.nc Xsession Xsession.ive \
|
|
Xsetup Xstartup current.session display.current.session \
|
|
display.home.session dtlslocale dtprofile home.session \
|
|
sys.dtprofile
|
|
|
|
|
|
|
|
if HAS_PAM_LIBRARY
|
|
CPP_TARGETS += dtlogin
|
|
dist_pam_DATA = dtlogin
|
|
if FREEBSD
|
|
pamdir = @MCDE_PAMDIR@
|
|
PAM_AUTHENTICATION_MODULE = /usr/local/lib/security/pam_pwauth_suid.so
|
|
AM_CPPFLAGS += -DPAM_AUTHENTICATION_MODULE=$(PAM_AUTHENTICATION_MODULE)
|
|
else
|
|
pamdir = @MCDE_PAMDIR@
|
|
if NETBSD
|
|
PAM_AUTHENTICATION_MODULE = /usr/pkg/lib/security/pam_pwauth_suid.so
|
|
AM_CPPFLAGS += -DPAM_AUTHENTICATION_MODULE=$(PAM_AUTHENTICATION_MODULE)
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
if LINUX
|
|
AM_CPPFLAGS += -DXPROJECTROOT="/usr" -Dlinux -D__linux__
|
|
endif
|
|
|
|
if FREEBSD
|
|
AM_CPPFLAGS += -DFREEBSD -DXPROJECTROOT="/usr/local" -D__FreeBSD__
|
|
endif
|
|
|
|
if SOLARIS
|
|
AM_CPPFLAGS += -DXPROJECTROOT="/usr" -Dsun
|
|
endif
|
|
|
|
if OPENBSD
|
|
AM_CPPFLAGS += -DXPROJECTROOT="/usr/X11R6" -D__OpenBSD__
|
|
endif
|
|
|
|
if NETBSD
|
|
AM_CPPFLAGS += -DXPROJECTROOT="/usr/X11R7" -D__NetBSD__
|
|
endif
|
|
|
|
if BSD
|
|
AM_CPPFLAGS += -DCSRG_BASED
|
|
endif
|
|
|
|
AM_CPPFLAGS += -DSESSREG=$(SESSREG)
|
|
|
|
if SET_UTMP_FILE
|
|
AM_CPPFLAGS += -DUTMP_FLAG="-u\ $(UTMP_FILE)"
|
|
endif
|
|
|
|
if SET_WTMP_FILE
|
|
AM_CPPFLAGS += -DWTMP_FLAG="-w\ $(WTMP_FILE)"
|
|
endif
|
|
|
|
BUILT_SOURCES = $(CPP_TARGETS)
|
|
CLEANFILES = $(CPP_TARGETS)
|
|
|
|
# Some of these are installed here, others are installed via
|
|
# programs/localization/
|
|
|
|
configsdir=$(CDE_INSTALLATION_TOP)/config
|
|
dist_configs_DATA = Xaccess Xconfig Xfailsafe Xservers
|
|
dist_configs_SCRIPTS = sys.dtprofile Xfailsafe Xreset Xsetup Xstartup
|
|
|
|
xsessdir=$(CDE_INSTALLATION_TOP)/config/Xsession.d
|
|
dist_xsess_SCRIPTS = 0060.dtsysenv 0070.dtfonts 0080.dtlaunch
|
|
|
|
dist_bin_SCRIPTS = Xsession
|
|
|
|
# fake - installed under a different name
|
|
sys.dtprofile: dtprofile
|
|
$(RM) $@
|
|
$(LN_S) $< $@
|
|
|
|
# regular targets
|
|
0060.dtsysenv: 0060.dtsysenv.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
|
|
|
|
Dtlogin: Dtlogin.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
|
|
|
|
Xaccess: Xaccess.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
|
|
|
|
Xconfig: Xconfig.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
|
|
|
|
Xconfig.con: Xconfig.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
|
|
|
|
Xconfig.nc: Xconfig.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) -DNO_CONSOLE $< > $@
|
|
|
|
Xfailsafe: Xfailsafe.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
|
|
|
|
Xreset: Xreset.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
|
|
|
|
Xresources: Xresources.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
|
|
|
|
Xresources.ive: Xresources.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) -DIVE $< > $@
|
|
|
|
Xservers: Xservers.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
|
|
|
|
Xservers.con: Xservers.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
|
|
|
|
Xservers.nc: Xservers.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) -DNO_CONSOLE $< > $@
|
|
|
|
Xsession: Xsession.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
|
|
|
|
Xsession.ive: Xsession.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) -DIVE $< > $@
|
|
|
|
Xsetup: Xsetup.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
|
|
|
|
Xstartup: Xstartup.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
|
|
|
|
current.session: current.session.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
|
|
|
|
display.current.session: display.current.session.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
|
|
|
|
display.home.session: display.home.session.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
|
|
|
|
dtlslocale: dtlslocale.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
|
|
|
|
dtprofile: dtprofile.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
|
|
|
|
home.session: home.session.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
|
|
|
|
dtlogin: dtlogin.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
|