ports: add mtdev and xf86-input-evdev

This commit is contained in:
2026-04-26 10:51:40 -03:00
committed by Matheus
parent 2ceaa52bb6
commit 173f36bdc3
5 changed files with 69 additions and 0 deletions
@@ -0,0 +1,13 @@
diff --git xf86-input-evdev-clean/configure.ac xf86-input-evdev-workdir/configure.ac
index 378faa2..b2ca6d5 100644
--- xf86-input-evdev-clean/configure.ac
+++ xf86-input-evdev-workdir/configure.ac
@@ -45,7 +45,7 @@ XORG_DEFAULT_OPTIONS
# Obtain compiler/linker options from server and required extensions
PKG_CHECK_MODULES(XORG, [xorg-server >= 1.18] xproto [inputproto >= 2.1.99.3])
-PKG_CHECK_MODULES(UDEV, libudev, [AC_DEFINE(HAVE_LIBUDEV, 1,[libudev support])])
+PKG_CHECK_MODULES(UDEV, libudev, [AC_DEFINE(HAVE_LIBUDEV, 1,[libudev support])], [:])
PKG_CHECK_MODULES(LIBEVDEV, [libevdev >= 0.4])
PKG_CHECK_MODULES(MTDEV, mtdev)
+18
View File
@@ -0,0 +1,18 @@
name=mtdev
revision=1
from_source=mtdev
imagedeps="gcc"
hostdeps="xgcc xbinutils pkgconfig automake autoconf"
deps="base xorg-server"
configure() {
${source_dir}/configure --prefix=${prefix} --host=x86_64-astral --disable-static
}
build() {
make -j${parallelism}
}
package() {
make DESTDIR=${dest_dir} install
}
+18
View File
@@ -0,0 +1,18 @@
name=xf86-input-evdev
revision=1
from_source=xf86-input-evdev
imagedeps="gcc"
hostdeps="xgcc xbinutils pkgconfig automake autoconf util-macros libtool"
deps="base xorg-server libevdev mtdev"
configure() {
${source_dir}/configure --prefix=${prefix} --host=x86_64-astral --disable-static --with-sdkdir=${prefix}/include/xorg
}
build() {
make -j${parallelism}
}
package() {
make DESTDIR=${dest_dir} install
}
+10
View File
@@ -0,0 +1,10 @@
name=mtdev
version=1.1.7
source_method=tarball
tarball_url="https://bitmath.org/code/mtdev/mtdev-${version}.tar.bz2"
tarball_sha512="e6174a38cf67a7f12a3b91e4e27bf74a18d6b40a956950ebb748b0ff87092333daa07e647b26038a5a533f8c48e845d649848e6ba99ea009ab87fd96ed188152"
hostdeps="autoconf automake libtool pkgconfig"
prepare() {
autoreconf -fvi
}
+10
View File
@@ -0,0 +1,10 @@
name=xf86-input-evdev
version=2.11.0
source_method=tarball
tarball_url="https://gitlab.freedesktop.org/xorg/driver/xf86-input-evdev/-/archive/xf86-input-evdev-2.11.0/xf86-input-evdev-xf86-input-evdev-2.11.0.tar.gz"
tarball_sha512="c61de2bec1fb57624d3051e02f4f442852b1e3abe766bbfbb031ff48ccf880ac52b0d7d0b4bcb9971cf4a8601493ff159e5ee55b78583bd9f24d6d73b1d43150"
hostdeps="autoconf automake libtool pkgconfig util-macros"
prepare() {
autoreconf -fvi
}