Skip to content

Commit da38eab

Browse files
committed
libportal: Add port
1 parent 9a279aa commit da38eab

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed

bootstrap.d/dev-libs.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,6 +1155,84 @@ packages:
11551155
environ:
11561156
DESTDIR: '@THIS_COLLECT_DIR@'
11571157

1158+
- name: libportal
1159+
architecture: '@OPTION:arch@'
1160+
metadata:
1161+
summary: Flatpak portal library
1162+
description: This package provides a library that contains GIO-style async APIs for most Flatpak portals.
1163+
spdx: 'LGPL-3.0-only'
1164+
website: 'https://github.com/flatpak/libportal'
1165+
maintainer: "Dennis Bonke <[email protected]>"
1166+
categories: ['dev-libs']
1167+
source:
1168+
subdir: 'ports'
1169+
git: 'https://github.com/flatpak/libportal.git'
1170+
tag: '0.7.1'
1171+
version: '0.7.1'
1172+
tools_required:
1173+
- system-gcc
1174+
- wayland-scanner
1175+
- virtual: pkgconfig-for-target
1176+
triple: "@OPTION:arch-triple@"
1177+
- host-vala
1178+
- host-mlibc
1179+
- host-gobject-introspection
1180+
- host-python
1181+
pkgs_required:
1182+
- mlibc
1183+
- glib
1184+
- gtk+-3
1185+
- gtk4
1186+
- gobject-introspection
1187+
configure:
1188+
- args:
1189+
- 'meson'
1190+
- 'setup'
1191+
- '--cross-file'
1192+
- '@SOURCE_ROOT@/scripts/meson-@OPTION:[email protected]'
1193+
- '--prefix=/usr'
1194+
- '--buildtype=release'
1195+
- '--wrap-mode=nodownload'
1196+
- '-Dintrospection=true'
1197+
- '-Dvapi=true'
1198+
- '-Ddocs=false'
1199+
- '-Dportal-tests=false'
1200+
- '@THIS_SOURCE_DIR@'
1201+
environ:
1202+
# Same as below
1203+
RUN_WRAPPER_LD_LIBRARY_PATH: '@BUILD_ROOT@/tools/host-mlibc/lib:@SYSROOT_DIR@/usr/lib:@SYSROOT_DIR@/usr/lib64:@THIS_BUILD_DIR@/girepository'
1204+
RUN_WRAPPER_INTERP: '@BUILD_ROOT@/tools/host-mlibc/lib/ld.so'
1205+
VALADIR: '@SYSROOT_DIR@/usr/share/vala/vapi'
1206+
# Wrapper to add our valadir
1207+
VAPIGEN: 'cross-vapigen'
1208+
# Wrapper to add our valadir
1209+
VALAC: 'cross-valac'
1210+
build:
1211+
- args: ['ninja']
1212+
environ:
1213+
# Make python load host libraries instead of the ones in the rootfs
1214+
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'
1215+
# Library path for our run-wrapper that allows it to load managarm libraries
1216+
RUN_WRAPPER_LD_LIBRARY_PATH: '@BUILD_ROOT@/tools/host-mlibc/lib:@SYSROOT_DIR@/usr/lib:@SYSROOT_DIR@/usr/lib64:@THIS_BUILD_DIR@/girepository'
1217+
# Similar to above, but using a nasty (but working) hack lets us use a Linux mlibc build to execute an
1218+
# executable that was cross-compiled for managarm
1219+
RUN_WRAPPER_INTERP: '@BUILD_ROOT@/tools/host-mlibc/lib/ld.so'
1220+
# This is a custom environment variable which tells g-ir-scanner what to use instead of ldd
1221+
# We point it at our native ldd-wrapper that's installed as part of host-gobject-introspection
1222+
GI_LDD_WRAPPER: ldd-wrapper
1223+
# This tells g-ir-scanner what program should be used for "cross-launching" the executables it builds
1224+
GI_CROSS_LAUNCHER: run-wrapper
1225+
# Path to the introspection data installed by other packages
1226+
GI_GIR_PATH: '@SYSROOT_DIR@/usr/share/gir-1.0'
1227+
VALADIR: '@SYSROOT_DIR@/usr/share/vala/vapi'
1228+
# Wrapper to add our valadir
1229+
VALAC: 'cross-valac'
1230+
# Wrapper to add our valadir
1231+
VAPIGEN: 'cross-vapigen'
1232+
- args: ['ninja', 'install']
1233+
environ:
1234+
DESTDIR: '@THIS_COLLECT_DIR@'
1235+
11581236
- name: libtasn
11591237
labels: [aarch64]
11601238
architecture: '@OPTION:arch@'

0 commit comments

Comments
 (0)