-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5414d71
commit 618babc
Showing
1 changed file
with
66 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -885,6 +885,72 @@ packages: | |
DESTDIR: '@THIS_COLLECT_DIR@' | ||
quiet: true | ||
|
||
- name: libgudev | ||
architecture: '@OPTION:arch@' | ||
metadata: | ||
summary: GObject bindings for libudev | ||
description: This package contains GObject bindings for libudev. | ||
spdx: 'LGPL-2.1-or-later' | ||
website: 'https://wiki.gnome.org/Projects/libgudev' | ||
maintainer: "Dennis Bonke <[email protected]>" | ||
categories: ['dev-libs'] | ||
source: | ||
subdir: 'ports' | ||
git: 'https://gitlab.gnome.org/GNOME/libgudev.git' | ||
tag: '237' # DON'T BUMP, DOES NOT WORK WITH EUDEV | ||
version: '237' | ||
tools_required: | ||
- system-gcc | ||
- virtual: pkgconfig-for-target | ||
triple: "@OPTION:arch-triple@" | ||
- host-mlibc | ||
- host-gobject-introspection | ||
- host-python | ||
- host-glib | ||
pkgs_required: | ||
- mlibc | ||
- glib | ||
- eudev | ||
- gobject-introspection | ||
revision: 1 | ||
configure: | ||
- args: | ||
- 'meson' | ||
- 'setup' | ||
- '--cross-file' | ||
- '@SOURCE_ROOT@/scripts/meson-@OPTION:[email protected]' | ||
- '--prefix=/usr' | ||
- '--buildtype=release' | ||
- '--wrap-mode=nodownload' | ||
- '-Dintrospection=enabled' | ||
- '-Dvapi=disabled' | ||
- '-Dgtk_doc=false' | ||
- '@THIS_SOURCE_DIR@' | ||
environ: | ||
# Same as below | ||
RUN_WRAPPER_LD_LIBRARY_PATH: '@BUILD_ROOT@/tools/host-mlibc/lib:@SYSROOT_DIR@/usr/lib:@SYSROOT_DIR@/usr/lib64:@THIS_BUILD_DIR@/girepository' | ||
RUN_WRAPPER_INTERP: '@BUILD_ROOT@/tools/host-mlibc/lib/ld.so' | ||
build: | ||
- args: ['ninja'] | ||
environ: | ||
# Make python load host libraries instead of the ones in the rootfs | ||
LD_LIBRARY_PATH: '@BUILD_ROOT@/tools/host-glib/lib:@BUILD_ROOT@/tools/host-glib/lib/x86_64-linux-gnu:@BUILD_ROOT@/tools/host-gobject-introspection/lib/x86_64-linux-gnu' | ||
# Library path for our run-wrapper that allows it to load managarm libraries | ||
RUN_WRAPPER_LD_LIBRARY_PATH: '@BUILD_ROOT@/tools/host-mlibc/lib:@SYSROOT_DIR@/usr/lib:@SYSROOT_DIR@/usr/lib64:@THIS_BUILD_DIR@/girepository' | ||
# Similar to above, but using a nasty (but working) hack lets us use a Linux mlibc build to execute an | ||
# executable that was cross-compiled for managarm | ||
RUN_WRAPPER_INTERP: '@BUILD_ROOT@/tools/host-mlibc/lib/ld.so' | ||
# This is a custom environment variable which tells g-ir-scanner what to use instead of ldd | ||
# We point it at our native ldd-wrapper that's installed as part of host-gobject-introspection | ||
GI_LDD_WRAPPER: ldd-wrapper | ||
# This tells g-ir-scanner what program should be used for "cross-launching" the executables it builds | ||
GI_CROSS_LAUNCHER: run-wrapper | ||
# Path to the introspection data installed by other packages | ||
GI_GIR_PATH: '@SYSROOT_DIR@/usr/share/gir-1.0' | ||
- args: ['ninja', 'install'] | ||
environ: | ||
DESTDIR: '@THIS_COLLECT_DIR@' | ||
|
||
- name: libiconv | ||
labels: [aarch64] | ||
architecture: '@OPTION:arch@' | ||
|