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
f23189e7
Commit
f23189e7
authored
Oct 25, 2018
by
Ulrich Sibiller
Committed by
Mike Gabriel
Nov 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make: Automatically determine xkb dir
parent
824b6297
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
5 deletions
+25
-5
Makefile
Makefile
+13
-4
control
debian/control
+1
-0
Imake.tmpl
nx-X11/config/cf/Imake.tmpl
+8
-0
Imakefile
nx-X11/programs/Xserver/xkb/Imakefile
+1
-1
nx-libs.spec
nx-libs.spec
+2
-0
No files found.
Makefile
View file @
f23189e7
...
@@ -33,6 +33,15 @@ IMAKE_FONT_DEFINES ?= $(shell pkg-config --modversion xfont2 1>/dev/null 2>/dev/
...
@@ -33,6 +33,15 @@ IMAKE_FONT_DEFINES ?= $(shell pkg-config --modversion xfont2 1>/dev/null 2>/dev/
# Support older libXext versions.
# Support older libXext versions.
XEXT_EXTRA_DEFINES
?=
$(
shell
pkg-config
--exists
'xextproto < 7.1.0'
1>/dev/null 2>/dev/null
&&
echo
"-DLEGACY_XEXT_PROTO"
)
XEXT_EXTRA_DEFINES
?=
$(
shell
pkg-config
--exists
'xextproto < 7.1.0'
1>/dev/null 2>/dev/null
&&
echo
"-DLEGACY_XEXT_PROTO"
)
# check if the xkbcomp devel pkg is available - we need it for the next step
ifneq
($(shell
pkg-config
--exists
xkbcomp
&&
echo
yes),
yes)
$(error
required
xkbcomp
devel
package
missing)
endif
# the system's directory with the xkb data files (this needs to be
# independent of Imake's ProjectRoot or the configure prefix.)
XKB_SYS_DEFINES
?=
-DSystemXkbConfigDir
=
$(
shell
pkg-config xkbcomp
--variable
=
xkbconfigdir
)
-DSystemXkbBinDir
=
$(
shell
pkg-config xkbcomp
--variable
=
prefix
)
/bin
IMAKE_DEFINES
?=
IMAKE_DEFINES
?=
NX_VERSION_MAJOR
=
$(
shell
./version.sh 1
)
NX_VERSION_MAJOR
=
$(
shell
./version.sh 1
)
...
@@ -100,7 +109,7 @@ version:
...
@@ -100,7 +109,7 @@ version:
build-env
:
version
build-env
:
version
# prepare Makefiles and the nx-X11 symlinking magic
# prepare Makefiles and the nx-X11 symlinking magic
${
MAKE
}
-j1
-C
nx-X11 BuildIncludes
FONT_DEFINES
=
"
$(FONT_DEFINES)
"
XEXT_EXTRA_DEFINES
=
"
$(XEXT_EXTRA_DEFINES)
"
IMAKE_DEFINES
=
"
$(IMAKE_DEFINES)
$(IMAKE_FONT_DEFINES)
"
${
MAKE
}
-j1
-C
nx-X11 BuildIncludes
FONT_DEFINES
=
"
$(FONT_DEFINES)
"
XEXT_EXTRA_DEFINES
=
"
$(XEXT_EXTRA_DEFINES)
"
IMAKE_DEFINES
=
"
$(IMAKE_DEFINES)
$(IMAKE_FONT_DEFINES)
$(XKB_SYS_DEFINES)
"
# set up environment for libNX_X11 build (X11 header files)
# set up environment for libNX_X11 build (X11 header files)
mkdir
-p
nx-X11/exports/include/nx-X11/
mkdir
-p
nx-X11/exports/include/nx-X11/
...
@@ -125,7 +134,7 @@ clean-env: version
...
@@ -125,7 +134,7 @@ clean-env: version
[ -d exports/include/nx-X11/Xtrans ] && $(RM_DIR) exports/include/nx-X11/Xtrans/ ||
:
[ -d exports/include/nx-X11/Xtrans ] && $(RM_DIR) exports/include/nx-X11/Xtrans/ ||
:
[
-d
exports/include/nx-X11/
]
&&
$(RM_DIR)
exports/include/nx-X11/
||
:
[
-d
exports/include/nx-X11/
]
&&
$(RM_DIR)
exports/include/nx-X11/
||
:
${MAKE}
-j1
-C
nx-X11
clean
FONT_DEFINES
=
"
$(FONT_DEFINES)
"
XEXT_EXTRA_DEFINES
=
"
$(XEXT_EXTRA_DEFINES)
"
IMAKE_DEFINES
=
"
$(IMAKE_DEFINES)
$(IMAKE_FONT_DEFINES)
"
${MAKE}
-j1
-C
nx-X11
clean
FONT_DEFINES
=
"
$(FONT_DEFINES)
"
XEXT_EXTRA_DEFINES
=
"
$(XEXT_EXTRA_DEFINES)
"
IMAKE_DEFINES
=
"
$(IMAKE_DEFINES)
$(IMAKE_FONT_DEFINES)
$(XKB_SYS_DEFINES)
"
build-lite
:
build-lite
:
cd
nxcomp
&&
autoreconf
-vfsi
&&
(
${
CONFIGURE
}
)
&&
${
MAKE
}
cd
nxcomp
&&
autoreconf
-vfsi
&&
(
${
CONFIGURE
}
)
&&
${
MAKE
}
...
@@ -149,8 +158,8 @@ build-full: build-env
...
@@ -149,8 +158,8 @@ build-full: build-env
# build nxagent fourth
# build nxagent fourth
./mesa-quilt
push
-a
./mesa-quilt
push
-a
${MAKE}
-j1
-C
nx-X11
BuildDependsOnly
FONT_DEFINES
=
"
$(FONT_DEFINES)
"
XEXT_EXTRA_DEFINES
=
"
$(XEXT_EXTRA_DEFINES)
"
IMAKE_DEFINES
=
"
$(IMAKE_DEFINES)
$(IMAKE_FONT_DEFINES)
"
${MAKE}
-j1
-C
nx-X11
BuildDependsOnly
FONT_DEFINES
=
"
$(FONT_DEFINES)
"
XEXT_EXTRA_DEFINES
=
"
$(XEXT_EXTRA_DEFINES)
"
IMAKE_DEFINES
=
"
$(IMAKE_DEFINES)
$(IMAKE_FONT_DEFINES)
$(XKB_SYS_DEFINES)
"
${MAKE}
-C
nx-X11
World
USRLIBDIR
=
"
$(USRLIBDIR)
"
SHLIBDIR
=
"
$(SHLIBDIR)
"
FONT_DEFINES
=
"
$(FONT_DEFINES)
"
XFONTLIB
=
"
$(XFONTLIB)
"
XEXT_EXTRA_DEFINES
=
"
$(XEXT_EXTRA_DEFINES)
"
IMAKE_DEFINES
=
"
$(IMAKE_DEFINES)
$(IMAKE_FONT_DEFINES)
"
${MAKE}
-C
nx-X11
World
USRLIBDIR
=
"
$(USRLIBDIR)
"
SHLIBDIR
=
"
$(SHLIBDIR)
"
FONT_DEFINES
=
"
$(FONT_DEFINES)
"
XFONTLIB
=
"
$(XFONTLIB)
"
XEXT_EXTRA_DEFINES
=
"
$(XEXT_EXTRA_DEFINES)
"
IMAKE_DEFINES
=
"
$(IMAKE_DEFINES)
$(IMAKE_FONT_DEFINES)
$(XKB_SYS_DEFINES)
"
# build nxproxy fifth
# build nxproxy fifth
cd
nxproxy
&&
autoreconf
-vfsi
&&
(${CONFIGURE})
&&
${MAKE}
cd
nxproxy
&&
autoreconf
-vfsi
&&
(${CONFIGURE})
&&
${MAKE}
...
...
debian/control
View file @
f23189e7
...
@@ -27,6 +27,7 @@ Build-Depends:
...
@@ -27,6 +27,7 @@ Build-Depends:
libxtst-dev,
libxtst-dev,
pkg-config,
pkg-config,
quilt (>= 0.46-7~),
quilt (>= 0.46-7~),
x11-xkb-utils,
x11proto-core-dev,
x11proto-core-dev,
xutils-dev,
xutils-dev,
zlib1g-dev,
zlib1g-dev,
...
...
nx-X11/config/cf/Imake.tmpl
View file @
f23189e7
...
@@ -784,6 +784,12 @@ TCLIBDIR = TclLibDir
...
@@ -784,6 +784,12 @@ TCLIBDIR = TclLibDir
#ifndef SystemUsrIncDir
#ifndef SystemUsrIncDir
#define SystemUsrIncDir /usr/include
#define SystemUsrIncDir /usr/include
#endif
#endif
#ifndef SystemXkbConfigDir
#define SystemXkbConfigDir /usr/share/X11/xkb
#endif
#ifndef SystemXkbBinDir
#define SystemXkbBinDir /usr/bin
#endif
#ifndef ShLibDir
#ifndef ShLibDir
#define ShLibDir UsrLibDir
#define ShLibDir UsrLibDir
...
@@ -1660,6 +1666,8 @@ TCLIBDIR = TclLibDir
...
@@ -1660,6 +1666,8 @@ TCLIBDIR = TclLibDir
VARLIBDIR = VarLibDir /* xdm runtime files */
VARLIBDIR = VarLibDir /* xdm runtime files */
SYSTEMUSRLIBDIR = SystemUsrLibDir /* system's "/usr/lib" */
SYSTEMUSRLIBDIR = SystemUsrLibDir /* system's "/usr/lib" */
SYSTEMUSRINCDIR = SystemUsrIncDir /* system's "/usr/include" */
SYSTEMUSRINCDIR = SystemUsrIncDir /* system's "/usr/include" */
SYSTEMXKBCONFDIR = SystemXkbConfigDir /* system's "/usr/share/xkb" */
SYSTEMXKBBINDIR = SystemXkbBinDir /* system's "/usr/bin" */
SHLIBDIR = ShLibDir /* shared libraries */
SHLIBDIR = ShLibDir /* shared libraries */
LINTLIBDIR = LintlibDir /* lint libraries */
LINTLIBDIR = LintlibDir /* lint libraries */
MANPATH = ManPath /* top of manual page tree */
MANPATH = ManPath /* top of manual page tree */
...
...
nx-X11/programs/Xserver/xkb/Imakefile
View file @
f23189e7
...
@@ -40,7 +40,7 @@ XKB_DDXDEFS = XkbServerDefines
...
@@ -40,7 +40,7 @@ XKB_DDXDEFS = XkbServerDefines
LINTLIBS = ../dix/llib-ldix.ln ../os/llib-los.ln
LINTLIBS = ../dix/llib-ldix.ln ../os/llib-los.ln
DEFINES = $(XKB_DDXDEFS) $(NX_DEFINES)
DEFINES = $(XKB_DDXDEFS) $(NX_DEFINES)
XKB_DEFINES = -DXKB_BASE_DIRECTORY=\"
/usr/share/X11/xkb\" -DXKB_BIN_DIRECTORY=\"/usr/bin
\" -DXKB_DFLT_RULES_FILE=\"base\" -DXKB_DFLT_KB_LAYOUT=\"us\" -DXKB_DFLT_KB_MODEL=\"pc102\" $(XKB_DISABLE)
XKB_DEFINES = -DXKB_BASE_DIRECTORY=\"
$(SYSTEMXKBCONFDIR)\" -DXKB_BIN_DIRECTORY=\"$(SYSTEMXKBBINDIR)
\" -DXKB_DFLT_RULES_FILE=\"base\" -DXKB_DFLT_KB_LAYOUT=\"us\" -DXKB_DFLT_KB_MODEL=\"pc102\" $(XKB_DISABLE)
NormalLibraryObjectRule()
NormalLibraryObjectRule()
NormalLibraryTarget(xkb,$(OBJS))
NormalLibraryTarget(xkb,$(OBJS))
...
...
nx-libs.spec
View file @
f23189e7
...
@@ -32,6 +32,8 @@ BuildRequires: pkgconfig
...
@@ -32,6 +32,8 @@ BuildRequires: pkgconfig
%if 0%{?suse_version} && 0%{?suse_version} < 1210
%if 0%{?suse_version} && 0%{?suse_version} < 1210
BuildRequires: xorg-x11-util-devel
BuildRequires: xorg-x11-util-devel
%else
%else
# we need xkbcomp.pc
BuildRequires: xorg-x11-xkb-utils-devel
BuildRequires: imake
BuildRequires: imake
%endif
%endif
...
...
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