Skip to content

Commit b229a75

Browse files
committed
libportal: Add port
1 parent 82a43d9 commit b229a75

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
@@ -1275,6 +1275,84 @@ packages:
12751275
environ:
12761276
DESTDIR: '@THIS_COLLECT_DIR@'
12771277

1278+
- name: libportal
1279+
architecture: '@OPTION:arch@'
1280+
metadata:
1281+
summary: Flatpak portal library
1282+
description: This package provides a library that contains GIO-style async APIs for most Flatpak portals.
1283+
spdx: 'LGPL-3.0-only'
1284+
website: 'https://github.com/flatpak/libportal'
1285+
maintainer: "Dennis Bonke <[email protected]>"
1286+
categories: ['dev-libs']
1287+
source:
1288+
subdir: 'ports'
1289+
git: 'https://github.com/flatpak/libportal.git'
1290+
tag: '0.7.1'
1291+
version: '0.7.1'
1292+
tools_required:
1293+
- system-gcc
1294+
- wayland-scanner
1295+
- virtual: pkgconfig-for-target
1296+
triple: "@OPTION:arch-triple@"
1297+
- host-vala
1298+
- host-mlibc
1299+
- host-gobject-introspection
1300+
- host-python
1301+
pkgs_required:
1302+
- mlibc
1303+
- glib
1304+
- gtk+-3
1305+
- gtk4
1306+
- gobject-introspection
1307+
configure:
1308+
- args:
1309+
- 'meson'
1310+
- 'setup'
1311+
- '--cross-file'
1312+
- '@SOURCE_ROOT@/scripts/meson-@OPTION:[email protected]'
1313+
- '--prefix=/usr'
1314+
- '--buildtype=release'
1315+
- '--wrap-mode=nodownload'
1316+
- '-Dintrospection=true'
1317+
- '-Dvapi=true'
1318+
- '-Ddocs=false'
1319+
- '-Dportal-tests=false'
1320+
- '@THIS_SOURCE_DIR@'
1321+
environ:
1322+
# Same as below
1323+
RUN_WRAPPER_LD_LIBRARY_PATH: '@BUILD_ROOT@/tools/host-mlibc/lib:@SYSROOT_DIR@/usr/lib:@SYSROOT_DIR@/usr/lib64:@THIS_BUILD_DIR@/girepository'
1324+
RUN_WRAPPER_INTERP: '@BUILD_ROOT@/tools/host-mlibc/lib/ld.so'
1325+
VALADIR: '@SYSROOT_DIR@/usr/share/vala/vapi'
1326+
# Wrapper to add our valadir
1327+
VAPIGEN: 'cross-vapigen'
1328+
# Wrapper to add our valadir
1329+
VALAC: 'cross-valac'
1330+
build:
1331+
- args: ['ninja']
1332+
environ:
1333+
# Make python load host libraries instead of the ones in the rootfs
1334+
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'
1335+
# Library path for our run-wrapper that allows it to load managarm libraries
1336+
RUN_WRAPPER_LD_LIBRARY_PATH: '@BUILD_ROOT@/tools/host-mlibc/lib:@SYSROOT_DIR@/usr/lib:@SYSROOT_DIR@/usr/lib64:@THIS_BUILD_DIR@/girepository'
1337+
# Similar to above, but using a nasty (but working) hack lets us use a Linux mlibc build to execute an
1338+
# executable that was cross-compiled for managarm
1339+
RUN_WRAPPER_INTERP: '@BUILD_ROOT@/tools/host-mlibc/lib/ld.so'
1340+
# This is a custom environment variable which tells g-ir-scanner what to use instead of ldd
1341+
# We point it at our native ldd-wrapper that's installed as part of host-gobject-introspection
1342+
GI_LDD_WRAPPER: ldd-wrapper
1343+
# This tells g-ir-scanner what program should be used for "cross-launching" the executables it builds
1344+
GI_CROSS_LAUNCHER: run-wrapper
1345+
# Path to the introspection data installed by other packages
1346+
GI_GIR_PATH: '@SYSROOT_DIR@/usr/share/gir-1.0'
1347+
VALADIR: '@SYSROOT_DIR@/usr/share/vala/vapi'
1348+
# Wrapper to add our valadir
1349+
VALAC: 'cross-valac'
1350+
# Wrapper to add our valadir
1351+
VAPIGEN: 'cross-vapigen'
1352+
- args: ['ninja', 'install']
1353+
environ:
1354+
DESTDIR: '@THIS_COLLECT_DIR@'
1355+
12781356
- name: libtasn
12791357
labels: [aarch64]
12801358
architecture: '@OPTION:arch@'

0 commit comments

Comments
 (0)