forked from pygame/pygame
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
manylinux: Add libxml2, wayland, wayland-protocols
SDL2 dependencies
- Loading branch information
Showing
8 changed files
with
114 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
buildconfig/manylinux-build/docker_base/libxml2/build-libxml2.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
set -e -x | ||
|
||
# wayland requirement | ||
# https://www.linuxfromscratch.org/blfs/view/svn/general/libxml2.html | ||
|
||
cd $(dirname `readlink -f "$0"`) | ||
|
||
LIBXML2_VER="2.10.3" | ||
LIBXML2="libxml2-${LIBXML2_VER}" | ||
curl -sL --retry 10 https://download.gnome.org/sources/libxml2/2.10/${LIBXML2}.tar.xz > ${LIBXML2}.xz | ||
|
||
sha512sum -c libxml2.sha512 | ||
|
||
tar xf ${LIBXML2}.xz | ||
cd $LIBXML2 | ||
./configure \ | ||
--sysconfdir=/etc \ | ||
--disable-static \ | ||
--with-history \ | ||
--with-python=no \ | ||
# --prefix=/usr \ | ||
# PYTHON=/usr/bin/python3 \ | ||
# --docdir=/usr/share/doc/libxml2-2.10.3 && | ||
make | ||
make install | ||
|
||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||
# Install to mac deps cache dir as well | ||
make install DESTDIR=${MACDEP_CACHE_PREFIX_PATH} | ||
fi | ||
|
||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
33bb87ae9a45c475c3de09477e5d94840d8f687f893ef7839408bc7267e57611c4f2b863ed8ec819a4b5f1ebd6a122db9f6054c73bceed427d37f3e67f62620c libxml2-2.10.3.xz |
54 changes: 54 additions & 0 deletions
54
buildconfig/manylinux-build/docker_base/wayland_libs/build-wayland-libs.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/bin/bash | ||
set -e -x | ||
|
||
# https://wayland.freedesktop.org/building.html | ||
# https://www.linuxfromscratch.org/blfs/view/svn/general/wayland.html | ||
# https://www.linuxfromscratch.org/blfs/view/svn/general/wayland-protocols.html | ||
|
||
cd $(dirname `readlink -f "$0"`) | ||
|
||
WAYLAND_VER="1.21.0" | ||
WAYLAND_PROTOCOLS_VER="1.31" | ||
WAYLAND="wayland-${WAYLAND_VER}" | ||
WAYLAND_PROTOCOLS="wayland-protocols-${WAYLAND_PROTOCOLS_VER}" | ||
|
||
curl -sL --retry 10 https://gitlab.freedesktop.org/wayland/wayland/-/releases/${WAYLAND_VER}/downloads/${WAYLAND}.tar.xz > ${WAYLAND}.tar.xz | ||
curl -sL --retry 10 https://gitlab.freedesktop.org/wayland/wayland-protocols/-/releases/${WAYLAND_PROTOCOLS_VER}/downloads/${WAYLAND_PROTOCOLS}.tar.xz > ${WAYLAND_PROTOCOLS}.tar.xz | ||
|
||
sha512sum -c wayland.sha512 | ||
|
||
tar xf ${WAYLAND}.tar.xz | ||
tar xf ${WAYLAND_PROTOCOLS}.tar.xz | ||
|
||
|
||
cd $WAYLAND | ||
mkdir build | ||
cd build | ||
meson setup .. \ | ||
--buildtype=release \ | ||
-Dtests=false \ | ||
-Dlibdir=lib \ | ||
-Ddocumentation=false | ||
ninja | ||
ninja install | ||
|
||
cd ../.. | ||
|
||
|
||
cd $WAYLAND_PROTOCOLS | ||
mkdir build | ||
cd build | ||
meson setup .. \ | ||
--buildtype=release \ | ||
-Dtests=false | ||
ninja | ||
ninja install | ||
|
||
cd ../.. | ||
|
||
# pkg-config --exists 'wayland-client >= 1.18' | ||
# pkg-config --exists wayland-scanner | ||
# pkg-config --exists wayland-egl | ||
# pkg-config --exists wayland-cursor | ||
# pkg-config --exists egl | ||
# pkg-config --exists 'xkbcommon >= 0.5.0' |
2 changes: 2 additions & 0 deletions
2
buildconfig/manylinux-build/docker_base/wayland_libs/wayland.sha512
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
fa0681fd9a63235c342444943053dfa0b0a1aded69c735d1a6895e48cfd06d6aee6fb53cae4cce3e7d557f830c562b10d6557b455979f34fc4009963a897efbc wayland-1.31.tar.gz | ||
fa0681fd9a63235c342444943053dfa0b0a1aded69c735d1a6895e48cfd06d6aee6fb53cae4cce3e7d557f830c562b10d6557b455979f34fc4009963a897efbc wayland-protocols-1.31.tar.gz |