Skip to content

Commit

Permalink
New X libraries.
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Apr 12, 2024
1 parent 291c685 commit 04cff23
Show file tree
Hide file tree
Showing 7 changed files with 128 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,23 @@
url = https://gitlab.freedesktop.org/xorg/lib/libxrender.git
ignore = dirty
shallow = true
[submodule "ext/libxtst"]
path = ext/libxtst
url = https://gitlab.freedesktop.org/xorg/lib/libxtst.git
ignore = dirty
shallow = true
[submodule "ext/libxext"]
path = ext/libxext
url = https://gitlab.freedesktop.org/xorg/lib/libxext.git
ignore = dirty
shallow = true
[submodule "ext/libxi"]
path = ext/libxi
url = https://gitlab.freedesktop.org/xorg/lib/libxi.git
ignore = dirty
shallow = true
[submodule "ext/libxfixes"]
path = ext/libxfixes
url = https://gitlab.freedesktop.org/xorg/lib/libxfixes.git
ignore = dirty
shallow = true
1 change: 1 addition & 0 deletions ext/libxext
Submodule libxext added at efdcbb
1 change: 1 addition & 0 deletions ext/libxfixes
Submodule libxfixes added at 84df9c
1 change: 1 addition & 0 deletions ext/libxi
Submodule libxi added at b87c31
1 change: 1 addition & 0 deletions ext/libxtst
Submodule libxtst added at 9f5621
4 changes: 4 additions & 0 deletions linux/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ crosstool-ng
*/libffi
*/ncurses
*/libxrender
*/libxi
*/libxtst
*/libxfixes
*/libxext
100 changes: 100 additions & 0 deletions linux/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,106 @@ then
popd
fi

# build libxext
if [ ! -f $home/libxext/stamp ]
then
pushd $ext/libxext
NOCONFIGURE=1 ./autogen.sh --prefix=$dist
popd

mkdir -p $home/libxext
pushd $home/libxext
PKG_CONFIG_PATH=$dist/lib/pkgconfig:$dist/share/pkgconfig \
PKG_CONFIG_SYSROOT_DIR=$dist \
LDFLAGS="--sysroot=$dist" \
$ext/libxext/configure \
--host=$SDK_TARGET \
--target=$SDK_TARGET \
--prefix="" \
--with-sysroot=$dist \
--enable-malloc0returnsnull \
$SDK_LIBXEXT_ARGS
make
make DESTDIR=$dist install
touch stamp
popd
fi

# build libxfixes
if [ ! -f $home/libxfixes/stamp ]
then
pushd $ext/libxfixes
NOCONFIGURE=1 ./autogen.sh --prefix=$dist
popd

mkdir -p $home/libxfixes
pushd $home/libxfixes
PKG_CONFIG_PATH=$dist/lib/pkgconfig:$dist/share/pkgconfig \
PKG_CONFIG_SYSROOT_DIR=$dist \
LDFLAGS="--sysroot=$dist" \
$ext/libxfixes/configure \
--host=$SDK_TARGET \
--target=$SDK_TARGET \
--prefix="" \
--with-sysroot=$dist \
--enable-malloc0returnsnull \
$SDK_LIBXFIXES_ARGS
make
make DESTDIR=$dist install
touch stamp
popd
fi

# build libxi
if [ ! -f $home/libxi/stamp ]
then
pushd $ext/libxi
NOCONFIGURE=1 ./autogen.sh --prefix=$dist
popd

mkdir -p $home/libxi
pushd $home/libxi
PKG_CONFIG_PATH=$dist/lib/pkgconfig:$dist/share/pkgconfig \
PKG_CONFIG_SYSROOT_DIR=$dist \
LDFLAGS="--sysroot=$dist" \
$ext/libxi/configure \
--host=$SDK_TARGET \
--target=$SDK_TARGET \
--prefix="" \
--with-sysroot=$dist \
--enable-malloc0returnsnull \
$SDK_LIBXI_ARGS
make
make DESTDIR=$dist install
touch stamp
popd
fi

# build libxtst
if [ ! -f $home/libxtst/stamp ]
then
pushd $ext/libxtst
NOCONFIGURE=1 ./autogen.sh --prefix=$dist
popd

mkdir -p $home/libxtst
pushd $home/libxtst
PKG_CONFIG_PATH=$dist/lib/pkgconfig:$dist/share/pkgconfig \
PKG_CONFIG_SYSROOT_DIR=$dist \
LDFLAGS="--sysroot=$dist" \
$ext/libxtst/configure \
--host=$SDK_TARGET \
--target=$SDK_TARGET \
--prefix="" \
--with-sysroot=$dist \
--enable-malloc0returnsnull \
$SDK_LIBXTST_ARGS
make
make DESTDIR=$dist install
touch stamp
popd
fi

# adjust symlinks to relative paths
symlinks -cr $dist

Expand Down

0 comments on commit 04cff23

Please sign in to comment.