Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
78a16245
Commit
78a16245
authored
Apr 23, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
May 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto-determine system font path and add to list of font paths
This will help on non-supported platforms as it will add a path the current code might not be aware of.
parent
898f04e4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
0 deletions
+12
-0
Makefile
Makefile
+5
-0
Imake.tmpl
nx-X11/config/cf/Imake.tmpl
+5
-0
Font.c
nx-X11/programs/Xserver/hw/nxagent/Font.c
+1
-0
Imakefile
nx-X11/programs/Xserver/hw/nxagent/Imakefile
+1
-0
No files found.
Makefile
View file @
78a16245
...
...
@@ -30,6 +30,9 @@ CONFIGURE ?= ./configure --prefix="$(PREFIX)"
ifneq
($(shell
pkg-config
--exists
xkbcomp
&&
echo
yes),
yes)
$(warning
xkbcomp
devel
package
missing,
using
imake
default
values)
endif
ifneq
($(shell
pkg-config
--exists
fontutil
&&
echo
yes),
yes)
$(warning
fontutil
devel
package
missing,
using
imake
default
values)
endif
IMAKE_DEFINES
?=
...
...
@@ -112,6 +115,8 @@ imakeconfig:
(pkg-config --exists xkbcomp && echo "#define SystemXkbConfigDir `pkg-config xkbcomp --variable=xkbconfigdir`";
:
) >>nx-X11/config/cf/nxconfig.def
(
pkg-config
--exists
xkbcomp
&&
echo
"#define SystemXkbBinDir
`
pkg-config xkbcomp
--variable
=
prefix
`
/bin"
;
:
)
>>
nx-X11/config/cf/nxconfig.def
(pkg-config --exists fontutil && echo "#define SystemFontRootDir `pkg-config fontutil --variable=fontrootdir`";
:
) >>nx-X11/config/cf/nxconfig.def
# let's create the nx-X11 Makefiles now, once everything has been defined
$(MAKE)
-j1
-C
nx-X11
Makefiles
IMAKE_DEFINES
=
"
$(IMAKE_DEFINES)
"
...
...
nx-X11/config/cf/Imake.tmpl
View file @
78a16245
...
...
@@ -791,6 +791,10 @@ TCLIBDIR = TclLibDir
#define SystemXkbBinDir /usr/bin
#endif
#ifndef SystemFontDir
#define SystemFontDir /usr/share/fonts/X11
#endif
#ifndef ShLibDir
#define ShLibDir UsrLibDir
#endif
...
...
@@ -1668,6 +1672,7 @@ TCLIBDIR = TclLibDir
SYSTEMUSRINCDIR = SystemUsrIncDir /* system's "/usr/include" */
SYSTEMXKBCONFDIR = SystemXkbConfigDir /* system's "/usr/share/xkb" */
SYSTEMXKBBINDIR = SystemXkbBinDir /* system's "/usr/bin" */
SYSTEMFONTDIR = SystemFontDir /* system's "/usr/share/fonts/X11" */
SHLIBDIR = ShLibDir /* shared libraries */
LINTLIBDIR = LintlibDir /* lint libraries */
MANPATH = ManPath /* top of manual page tree */
...
...
nx-X11/programs/Xserver/hw/nxagent/Font.c
View file @
78a16245
...
...
@@ -72,6 +72,7 @@ is" without express or implied warranty.
#undef DEBUG
const
char
*
nxagentFontDirs
[]
=
{
SYSTEMFONTDIR
,
"/usr/share/nx/fonts"
,
"/usr/share/X11/fonts"
,
"/usr/share/fonts/X11"
,
...
...
nx-X11/programs/Xserver/hw/nxagent/Imakefile
View file @
78a16245
...
...
@@ -255,6 +255,7 @@ DEFINES = \
-DRANDR_15_INTERFACE=1 \
-DPANORAMIX \
-UDEBUG_TREE \
-DSYSTEMFONTDIR=\"$(SYSTEMFONTDIR)\" \
$(NULL)
all:: $(OBJS)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment