From 6cda465a67f238c8cc080209056f257c6386e2a7 Mon Sep 17 00:00:00 2001 From: Marko Semet Date: Sat, 31 Aug 2019 23:44:40 +0200 Subject: [PATCH] Add udev support --- Platform/v1.0/README.md | 2 +- Platform/v1.0/platform/libudev.yaml | 61 ++++++++++++++++++++++++++++ Platform/v1.0/platform/platform.yaml | 1 + 3 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 Platform/v1.0/platform/libudev.yaml diff --git a/Platform/v1.0/README.md b/Platform/v1.0/README.md index adde899..5685a65 100644 --- a/Platform/v1.0/README.md +++ b/Platform/v1.0/README.md @@ -1,6 +1,7 @@ # Supported - libGLU - libpcap +- libudev - MinGW # Missing @@ -15,7 +16,6 @@ # TODO - libsane -- libudev - libFAudio - vkd3d - libldap (OpenLDAP) diff --git a/Platform/v1.0/platform/libudev.yaml b/Platform/v1.0/platform/libudev.yaml new file mode 100644 index 0000000..a6785be --- /dev/null +++ b/Platform/v1.0/platform/libudev.yaml @@ -0,0 +1,61 @@ +name: libudev-meta +modules: + - name: libudev-platform + sources: + - type: archive + url: https://www.kernel.org/pub/linux/utils/kernel/hotplug/udev-175.tar.bz2 + sha256: 4c7937fe5a1521316ea571188745b9a00a9fdf314228cffc53a7ba9e5968b7ab + builddir: true + config-opts: + - --disable-gudev + - --disable-hwdb + - --disable-introspection + - --disable-keymap + - --disable-logging + - --disable-mtd_probe + - CFLAGS=-include sys/sysmacros.h + build-options: + make-install-args: + - DESTDIR=/usr/tmp_udev + - install + post-install: + - rm -rfv /usr/tmp_udev/usr/share + - mv /usr/tmp_udev/usr/sbin /usr/tmp_udev/usr/bin + - cp -rav /usr/tmp_udev/usr / + - rm -rfv /usr/tmp_udev + cleanup-platform: + - "*.la" + - "*.a" + - "/include" + - name: libudev-32bit + sources: + - type: archive + url: https://www.kernel.org/pub/linux/utils/kernel/hotplug/udev-175.tar.bz2 + sha256: 4c7937fe5a1521316ea571188745b9a00a9fdf314228cffc53a7ba9e5968b7ab + builddir: true + config-opts: + - --build=i686-unknown-linux + - --libdir=/usr/lib32 + - --disable-gudev + - --disable-hwdb + - --disable-introspection + - --disable-keymap + - --disable-logging + - --disable-mtd_probe + - CFLAGS=-include sys/sysmacros.h -m32 + - CXXFLAGS=-m32 + - LDFLAGS=-m32 + build-options: + make-install-args: + - DESTDIR=/usr/tmp_udev + - install + post-install: + - rm -rfv /usr/tmp_udev/usr/share /usr/tmp_udev/usr/sbin /usr/tmp_udev/usr/libexec + - cp -rav /usr/tmp_udev/usr / + - rm -rfv /usr/tmp_udev + cleanup-platform: + - "*.la" + - "*.a" + - "/include" + only-arches: + - x86_64 diff --git a/Platform/v1.0/platform/platform.yaml b/Platform/v1.0/platform/platform.yaml index 9771895..05710a5 100644 --- a/Platform/v1.0/platform/platform.yaml +++ b/Platform/v1.0/platform/platform.yaml @@ -6,3 +6,4 @@ modules: - winetricks.yaml - libglu.yaml - libpcap.yaml + - libudev.yaml