mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
ports: libxkbcommon, xdotool and missing patches
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
diff --git luit-clean/configure.ac luit-workdir/configure.ac
|
||||
index c214d85..ba7b129 100644
|
||||
--- luit-clean/configure.ac
|
||||
+++ luit-workdir/configure.ac
|
||||
@@ -59,10 +59,10 @@ case $host_os in
|
||||
darwin*)
|
||||
OS_CFLAGS=
|
||||
;;
|
||||
- linux*)
|
||||
+ linux* | astral*)
|
||||
AC_CHECK_HEADERS([poll.h])
|
||||
AC_CHECK_FUNCS([poll])
|
||||
- OS_CFLAGS="-D_XOPEN_SOURCE=500"
|
||||
+ OS_CFLAGS="-D_XOPEN_SOURCE=600"
|
||||
;;
|
||||
*)
|
||||
AC_CHECK_HEADERS([poll.h])
|
||||
@@ -0,0 +1,14 @@
|
||||
diff --git xdotool-clean/xdo.h xdotool-workdir/xdo.h
|
||||
index 24d9865..b5ccac7 100644
|
||||
--- xdotool-clean/xdo.h
|
||||
+++ xdotool-workdir/xdo.h
|
||||
@@ -8,6 +8,9 @@
|
||||
#define __USE_XOPEN
|
||||
#endif /* __USE_XOPEN */
|
||||
|
||||
+typedef unsigned int useconds_t;
|
||||
+
|
||||
+#include <time.h>
|
||||
#include <sys/types.h>
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/X.h>
|
||||
@@ -0,0 +1,13 @@
|
||||
diff --git xhost-clean/xhost.c xhost-workdir/xhost.c
|
||||
index 7a5e41a..c7a0711 100644
|
||||
--- xhost-clean/xhost.c
|
||||
+++ xhost-workdir/xhost.c
|
||||
@@ -171,7 +171,7 @@ XFamily(int af)
|
||||
}
|
||||
#endif /* NEEDSOCKETS */
|
||||
|
||||
-#if defined(__CYGWIN__) || defined(WIN32)
|
||||
+#if defined(__CYGWIN__) || defined(WIN32) || defined(__astral__)
|
||||
void sethostent(int x)
|
||||
{}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
name=libxkbcommon
|
||||
revision=1
|
||||
from_source=libxkbcommon
|
||||
imagedeps="gcc meson ninja-build"
|
||||
hostdeps="xgcc xbinutils pkgconfig automake autoconf util-macros libtool"
|
||||
deps="base xkeyboardconfig libxcb libxml"
|
||||
|
||||
configure() {
|
||||
meson --cross-file ${base_dir}/util/crossfile --prefix=${prefix} ${source_dir} -Denable-wayland=false
|
||||
}
|
||||
|
||||
build() {
|
||||
ninja
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR=${dest_dir} ninja install
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
name=xdotool
|
||||
revision=1
|
||||
from_source=xdotool
|
||||
imagedeps="meson build-essential"
|
||||
hostdeps="xgcc xbinutils pkgconfig"
|
||||
deps="base libx11 libxi libxkbcommon libxtst libxinerama"
|
||||
|
||||
configure() {
|
||||
cp -rp ${source_dir}/* .
|
||||
}
|
||||
|
||||
build() {
|
||||
make -j${parallelism} WITHOUT_RPATH_FIX=1 CC=x86_64-astral-gcc
|
||||
}
|
||||
|
||||
package() {
|
||||
make DESTDIR=${dest_dir} PREFIX=/usr install
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
name=libxkbcommon
|
||||
version=1.13.1
|
||||
source_method=tarball
|
||||
tarball_url="https://github.com/lfs-book/libxkbcommon/archive/v${version}/libxkbcommon-${version}.tar.gz"
|
||||
tarball_sha512="7cee7fc498c9bae19fc09356d0c989f1a3bb1f60f56768bc2e8bad9b2e89b9ccac9539228f5e14efe151f0b55b2b52db4fe047e166541121511a991e260bce4b"
|
||||
@@ -0,0 +1,5 @@
|
||||
name=xdotool
|
||||
version=4.20260303.1
|
||||
source_method=tarball
|
||||
tarball_url="https://github.com/jordansissel/xdotool/archive/refs/tags/v${version}.tar.gz"
|
||||
tarball_sha512="2ec84a0856797d24c3fe7aa75cb643e37d1b2a2ff7dc332a11f9e88321592c4f0e2aa7a7e981ca98ca624fc120d1abb0021d97537555c43be77afc1b9a72803c"
|
||||
Reference in New Issue
Block a user