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
1a429016
Unverified
Commit
1a429016
authored
Nov 11, 2018
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'uli42-pr/fix_font_defines_once_more2' into 3.6.x
Attributes GH PR #736:
https://github.com/ArcticaProject/nx-libs/pull/736
parents
93c9b886
f78a8b3e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
82 additions
and
53 deletions
+82
-53
Makefile
Makefile
+50
-53
nxcompile.def
nx-X11/config/cf/nxcompile.def
+30
-0
xorg.cf
nx-X11/config/cf/xorg.cf
+2
-0
No files found.
Makefile
View file @
1a429016
...
@@ -14,6 +14,7 @@ SYMLINK_FILE=ln -f -s
...
@@ -14,6 +14,7 @@ SYMLINK_FILE=ln -f -s
# helpers for "clean" and "uninstall" targets
# helpers for "clean" and "uninstall" targets
RM_FILE
=
rm
-f
RM_FILE
=
rm
-f
RM_DIR
=
rmdir
-p
--ignore-fail-on-non-empty
RM_DIR
=
rmdir
-p
--ignore-fail-on-non-empty
RM_DIR_REC
=
rm
-Rf
ETCDIR_NX
?=
/etc/nxagent
ETCDIR_NX
?=
/etc/nxagent
PREFIX
?=
/usr/local
PREFIX
?=
/usr/local
...
@@ -25,36 +26,13 @@ USRLIBDIR ?= $(NXLIBDIR)/X11
...
@@ -25,36 +26,13 @@ USRLIBDIR ?= $(NXLIBDIR)/X11
INCLUDEDIR
?=
$(PREFIX)
/include
INCLUDEDIR
?=
$(PREFIX)
/include
CONFIGURE
?=
./configure
--prefix
=
"
$(PREFIX)
"
CONFIGURE
?=
./configure
--prefix
=
"
$(PREFIX)
"
# use Xfont2 if available in the build env
FONT_DEFINES
?=
$(
shell
pkg-config
--modversion
xfont2 1>/dev/null 2>/dev/null
&&
echo
"-DHAS_XFONT2"
)
$(
shell
pkg-config
--exists
'xfont < 1.4.2'
1>/dev/null 2>/dev/null
&&
echo
"-DLEGACY_XFONT1"
)
XFONTLIB
?=
$(
shell
pkg-config
--modversion
xfont2 1>/dev/null 2>/dev/null
&&
echo
"-lXfont2"
||
echo
"-lXfont"
)
IMAKE_FONT_DEFINES
?=
$(
shell
pkg-config
--modversion
xfont2 1>/dev/null 2>/dev/null
&&
echo
"-DHasXfont2=YES"
||
echo
"-DHasXfont2=NO"
)
# 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"
)
# check if the xkbcomp devel pkg is available - we need it for the next step
# check if the xkbcomp devel pkg is available - we need it for the next step
HAS_XKBCOMP_DEVEL
=
"yes"
ifneq
($(shell
pkg-config
--exists
xkbcomp
&&
echo
yes),
yes)
ifneq
($(shell
pkg-config
--exists
xkbcomp
&&
echo
yes),
yes)
$(warning
xkbcomp
devel
package
missing,
using
default
values)
$(warning
xkbcomp
devel
package
missing,
using
imake
default
values)
HAS_XKBCOMP_DEVEL
=
"no"
endif
# the system's directory with the xkb data files (this needs to be
# independent of Imake's ProjectRoot or the configure prefix.)
ifeq
($(HAS_XKBCOMP_DEVEL),yes)
XKB_SYS_DEFINES
?=
-DSystemXkbConfigDir
=
$(
shell
pkg-config xkbcomp
--variable
=
xkbconfigdir
)
-DSystemXkbBinDir
=
$(
shell
pkg-config xkbcomp
--variable
=
prefix
)
/bin
else
XKB_SYS_DEFINES
?=
-DSystemXkbConfigDir
=
/usr/share/X11/xkb
-DSystemXkbBinDir
=
/usr/bin
endif
endif
IMAKE_DEFINES
?=
IMAKE_DEFINES
?=
NX_VERSION_MAJOR
=
$(
shell
./version.sh 1
)
NX_VERSION_MINOR
=
$(
shell
./version.sh 2
)
NX_VERSION_MICRO
=
$(
shell
./version.sh 3
)
NX_VERSION_PATCH
=
$(
shell
./version.sh 4
)
SHELL
:=
/bin/bash
SHELL
:=
/bin/bash
NX_X11_HEADERS
=
\
NX_X11_HEADERS
=
\
...
@@ -84,21 +62,22 @@ NX_XTRANS_HEADERS = \
...
@@ -84,21 +62,22 @@ NX_XTRANS_HEADERS = \
all
:
build
all
:
build
clean
:
clean
:
if
test
-f
nxcomp/Makefile
;
then
${
MAKE
}
-C
nxcomp clean
;
fi
test
-f
nxcomp/Makefile
&&
${
MAKE
}
-C
nxcomp clean
if
test
-f
nxproxy/Makefile
;
then
${
MAKE
}
-C
nxproxy clean
;
fi
test
-f
nxproxy/Makefile
&&
${
MAKE
}
-C
nxproxy clean
if
test
-f
nx-X11/lib/Makefile
;
then
${
MAKE
}
-C
nx-X11/lib clean
;
fi
test
-f
nx-X11/lib/Makefile
&&
${
MAKE
}
-C
nx-X11/lib clean
if
test
-f
nxcompshad/Makefile
;
then
${
MAKE
}
-C
nxcompshad clean
;
fi
test
-f
nxcompshad/Makefile
&&
${
MAKE
}
-C
nxcompshad clean
if
test
-d
nx-X11
;
then
${
MAKE
}
clean-env
;
fi
test
-d
nx-X11
&&
${
MAKE
}
clean-env
distclean
:
clean
distclean
:
clean
if
test
-f
nxcomp/Makefile
;
then
${
MAKE
}
-C
nxcomp distclean
;
fi
test
-f
nxcomp/Makefile
&&
${
MAKE
}
-C
nxcomp distclean
if
test
-f
nxproxy/Makefile
;
then
${
MAKE
}
-C
nxproxy distclean
;
fi
test
-f
nxproxy/Makefile
&&
${
MAKE
}
-C
nxproxy distclean
if
test
-f
nx-X11/lib/Makefile
;
then
${
MAKE
}
-C
nx-X11/lib distclean
;
fi
test
-f
nx-X11/lib/Makefile
&&
${
MAKE
}
-C
nx-X11/lib distclean
if
test
-f
nxcompshad/Makefile
;
then
${
MAKE
}
-C
nxcompshad distclean
;
fi
test
-f
nxcompshad/Makefile
&&
${
MAKE
}
-C
nxcompshad distclean
if
test
-d
nx-X11
;
then
${
MAKE
}
-C
nx-X11 distclean
;
fi
test
-d
nx-X11
&&
${
MAKE
}
-C
nx-X11 distclean
if
[
-x
./mesa-quilt
]
;
then
./mesa-quilt pop
-a
;
fi
test
-x
./mesa-quilt
&&
./mesa-quilt pop
-a
rm
-Rf
nx-X11/extras/Mesa/.pc/
$(RM_DIR_REC)
nx-X11/extras/Mesa/.pc/
rm
-f
nx-X11/config/cf/nxversion.def
$(RM_FILE)
nx-X11/config/cf/nxversion.def
$(RM_FILE)
nx-X11/config/cf/nxconfig.def
test
:
test
:
echo
"No testing for NX (redistributed)"
echo
"No testing for NX (redistributed)"
...
@@ -106,16 +85,34 @@ test:
...
@@ -106,16 +85,34 @@ test:
version
:
version
:
# prepare nx-X11/config/cf/nxversion.def
# prepare nx-X11/config/cf/nxversion.def
sed
\
sed
\
-e
's/###NX_VERSION_MAJOR###/
$(
NX_VERSION_MAJOR
)
/'
\
-e
's/###NX_VERSION_MAJOR###/
$(
shell
./version.sh 1
)
/'
\
-e
's/###NX_VERSION_MINOR###/
$(
NX_VERSION_MINOR
)
/'
\
-e
's/###NX_VERSION_MINOR###/
$(
shell
./version.sh 2
)
/'
\
-e
's/###NX_VERSION_MICRO###/
$(
NX_VERSION_MICRO
)
/'
\
-e
's/###NX_VERSION_MICRO###/
$(
shell
./version.sh 3
)
/'
\
-e
's/###NX_VERSION_PATCH###/
$(
NX_VERSION_PATCH
)
/'
\
-e
's/###NX_VERSION_PATCH###/
$(
shell
./version.sh 4
)
/'
\
nx-X11/config/cf/nxversion.def.in
\
nx-X11/config/cf/nxversion.def.in
\
>
nx-X11/config/cf/nxversion.def
>
nx-X11/config/cf/nxversion.def
build-env
:
version
imakeconfig
:
# auto-config some setting
# check if system supports Xfont2
(echo
"#define HasXfont2 `pkg-config --exists xfont2 && echo YES || echo NO`"
)
>nx-X11/config/cf/nxconfig.def
# check if system has an _old_ release of Xfont1
(echo
"#define HasLegacyXfont1 `pkg-config --exists 'xfont < 1.4.2' && echo YES || echo NO`"
)
>>nx-X11/config/cf/nxconfig.def
# check if system has an _old_ release of XextProto
(echo
"#define HasLegacyXextProto `pkg-config --exists 'xextproto < 7.1.0' && echo YES || echo NO`"
)
>>nx-X11/config/cf/nxconfig.def
# the system's directory with the xkb data and binary files (these
# needs to be independent of Imake's ProjectRoot or the configure
# prefix.)
(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
build-env
:
version imakeconfig
# 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)
$(XKB_SYS
_DEFINES)
"
${
MAKE
}
-j1
-C
nx-X11 BuildIncludes
IMAKE_DEFINES
=
"
$(IMAKE
_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/
...
@@ -140,7 +137,7 @@ clean-env: version
...
@@ -140,7 +137,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)
$(XKB_SYS
_DEFINES)
"
${MAKE}
-j1
-C
nx-X11
clean
IMAKE_DEFINES
=
"
$(IMAKE
_DEFINES)
"
build-lite
:
build-lite
:
cd
nxcomp
&&
autoreconf
-vfsi
&&
(
${
CONFIGURE
}
)
&&
${
MAKE
}
cd
nxcomp
&&
autoreconf
-vfsi
&&
(
${
CONFIGURE
}
)
&&
${
MAKE
}
...
@@ -164,8 +161,8 @@ build-full: build-env
...
@@ -164,8 +161,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)
$(XKB_SYS
_DEFINES)
"
${MAKE}
-j1
-C
nx-X11
BuildDependsOnly
IMAKE_DEFINES
=
"
$(IMAKE
_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)
"
${MAKE}
-C
nx-X11
World
USRLIBDIR
=
"
$(USRLIBDIR)
"
SHLIBDIR
=
"
$(SHLIBDIR)
"
IMAKE_DEFINES
=
"
$(IMAKE
_DEFINES)
"
# build nxproxy fifth
# build nxproxy fifth
cd
nxproxy
&&
autoreconf
-vfsi
&&
(${CONFIGURE})
&&
${MAKE}
cd
nxproxy
&&
autoreconf
-vfsi
&&
(${CONFIGURE})
&&
${MAKE}
...
@@ -209,7 +206,7 @@ install-full:
...
@@ -209,7 +206,7 @@ install-full:
gzip
$(DESTDIR)$(PREFIX)/share/man/man1/*.1
gzip
$(DESTDIR)$(PREFIX)/share/man/man1/*.1
# create a clean nx-X11/.build-exports space
# create a clean nx-X11/.build-exports space
rm
-Rf
nx-X11/.build-exports
$(RM_DIR_REC)
nx-X11/.build-exports
mkdir
-p
nx-X11/.build-exports/include
mkdir
-p
nx-X11/.build-exports/include
mkdir
-p
nx-X11/.build-exports/lib
mkdir
-p
nx-X11/.build-exports/lib
...
@@ -252,20 +249,20 @@ uninstall:
...
@@ -252,20 +249,20 @@ uninstall:
[
!
-d
nx-X11
]
||
$(MAKE)
uninstall-full
[
!
-d
nx-X11
]
||
$(MAKE)
uninstall-full
uninstall-lite
:
uninstall-lite
:
if
test
-f
nxcomp/Makefile
;
then
${
MAKE
}
-C
nxcomp
"
$@
"
;
fi
test
-f
nxcomp/Makefile
&&
${
MAKE
}
-C
nxcomp
"
$@
"
if
test
-f
nxproxy/Makefile
;
then
${
MAKE
}
-C
nxproxy
"
$@
"
;
fi
test
-f
nxproxy/Makefile
&&
${
MAKE
}
-C
nxproxy
"
$@
"
$(RM_FILE)
$(DESTDIR)$(PREFIX)/share/nx/VERSION.nxproxy
$(RM_FILE)
$(DESTDIR)$(PREFIX)/share/nx/VERSION.nxproxy
$(RM_DIR)
$(DESTDIR)$(PREFIX)/share/nx/
$(RM_DIR)
$(DESTDIR)$(PREFIX)/share/nx/
uninstall-full
:
uninstall-full
:
if
test
-f
nxcompshad/Makefile
;
then
${
MAKE
}
-C
nxcompshad
"
$@
"
;
fi
test
-f
nxcompshad/Makefile
&&
${
MAKE
}
-C
nxcompshad
"
$@
"
if
test
-f
nx-X11/lib/Makefile
;
then
${
MAKE
}
-C
nx-X11/lib
"
$@
"
;
fi
test
-f
nx-X11/lib/Makefile
&&
${
MAKE
}
-C
nx-X11/lib
"
$@
"
$(RM_FILE)
$(DESTDIR)$(BINDIR)/nxagent
$(RM_FILE)
$(DESTDIR)$(BINDIR)/nxagent
$(RM_FILE)
$(DESTDIR)$(PREFIX)/share/nx/VERSION.nxagent
$(RM_FILE)
$(DESTDIR)$(PREFIX)/share/nx/VERSION.nxagent
$(RM_DIR)
$(DESTDIR)$(PREFIX)/share/nx/
$(RM_DIR)
$(DESTDIR)$(PREFIX)/share/nx/
if
test
-d
$(DESTDIR)$(NXLIBDIR);
then
rm
-rf
$(DESTDIR)$(NXLIBDIR);
fi
$(RM_DIR_REC)
$(DESTDIR)$(NXLIBDIR)
if
test
-d
$(DESTDIR)$(INCLUDEDIR)/nx;
then
rm
-rf
$(DESTDIR)$(INCLUDEDIR)/nx;
fi
$(RM_DIR_REC)
$(DESTDIR)$(INCLUDEDIR)/nx
nx-X11/config/cf/nxcompile.def
0 → 100644
View file @
1a429016
/*
Rules to have a much cleaner compilation output
derived from Imake.rules
*/
#define RemoveFileQuiet(file) @$(RM) -f file \&>/dev/null
#define RunPrintIfFailed(cmd) @cmd || { echo failed command: cmd; exit 1; }
#define ObjectCompile(options) RemoveFileQuiet($@) @@\
ClearmakeOSName \
@echo \ \ CC $*.c @@\
RunPrintIfFailed($(CC) -c $(CFLAGS) options $*.c)
#define NormalLibraryTarget(libname,objlist) @@\
AllTarget(LibraryTargetName(libname)) @@\
@@\
LibraryTargetName(libname): objlist $(EXTRALIBRARYDEPS) @@\
@echo \ \ CCLD $@ @@\
RemoveFileQuiet($@) @@\
RunPrintIfFailed(MakeLibrary($@,objlist)) @@\
RunPrintIfFailed(RanLibrary($@)) @@\
RunPrintIfFailed(_LinkBuildLibrary($@))
#define DependTarget() @@\
DependDependency() @@\
@@\
depend:: @@\
RunPrintIfFailed($(DEPEND) $(DEPENDFLAGS) -- $(ALLDEFINES) $(DEPEND_DEFINES) -- $(SRCS))
nx-X11/config/cf/xorg.cf
View file @
1a429016
...
@@ -52,6 +52,8 @@ XORG_VERSION_CURRENT = XorgVersion
...
@@ -52,6 +52,8 @@ XORG_VERSION_CURRENT = XorgVersion
RELEASE_VERSION = ReleaseVersion
RELEASE_VERSION = ReleaseVersion
#if NXAgentServer
#if NXAgentServer
#include "nxconfig.def"
#include "nxcompile.def"
#include "nxversion.def"
#include "nxversion.def"
#if !defined(nxVersionString) && \
#if !defined(nxVersionString) && \
...
...
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