Skip to content

Commit 291c685

Browse files
committedApr 12, 2024
Add libxrender.
1 parent ca09514 commit 291c685

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed
 

‎.gitmodules

+5
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,8 @@
128128
url = https://github.com/mirror/ncurses.git
129129
ignore = dirty
130130
shallow = true
131+
[submodule "ext/libxrender"]
132+
path = ext/libxrender
133+
url = https://gitlab.freedesktop.org/xorg/lib/libxrender.git
134+
ignore = dirty
135+
shallow = true

‎ext/libxrender

Submodule libxrender added at 845716f

‎linux/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ crosstool-ng
3131
*/cpython
3232
*/libffi
3333
*/ncurses
34+
*/libxrender

‎linux/build.sh

+25
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,31 @@ then
652652
popd
653653
fi
654654

655+
# build libxrender
656+
if [ ! -f $home/libxrender/stamp ]
657+
then
658+
pushd $ext/libxrender
659+
NOCONFIGURE=1 ./autogen.sh --prefix=$dist
660+
popd
661+
662+
mkdir -p $home/libxrender
663+
pushd $home/libxrender
664+
PKG_CONFIG_PATH=$dist/lib/pkgconfig:$dist/share/pkgconfig \
665+
PKG_CONFIG_SYSROOT_DIR=$dist \
666+
LDFLAGS="--sysroot=$dist" \
667+
$ext/libxrender/configure \
668+
--host=$SDK_TARGET \
669+
--target=$SDK_TARGET \
670+
--prefix="" \
671+
--with-sysroot=$dist \
672+
--enable-malloc0returnsnull \
673+
$SDK_LIBXRENDER_ARGS
674+
make
675+
make DESTDIR=$dist install
676+
touch stamp
677+
popd
678+
fi
679+
655680
# adjust symlinks to relative paths
656681
symlinks -cr $dist
657682

0 commit comments

Comments
 (0)