Skip to content

Commit 82a43d9

Browse files
committed
gexiv2: Add port
1 parent 9c14019 commit 82a43d9

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed

bootstrap.d/media-libs.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,83 @@ packages:
241241
environ:
242242
DESTDIR: '@THIS_COLLECT_DIR@'
243243

244+
- name: gexiv2
245+
architecture: '@OPTION:arch@'
246+
metadata:
247+
summary: GObject-based wrapper around the Exiv2 library
248+
description: This package provides a GObject-based wrapper around the Exiv2 library.
249+
spdx: 'LGPL-2.0-or-later'
250+
website: 'https://wiki.gnome.org/Projects/gexiv2'
251+
maintainer: "Dennis Bonke <[email protected]>"
252+
categories: ['media-libs']
253+
source:
254+
subdir: 'ports'
255+
git: 'https://gitlab.gnome.org/GNOME/gexiv2.git'
256+
tag: 'gexiv2-0.14.2'
257+
version: '0.14.2'
258+
tools_required:
259+
- system-gcc
260+
- wayland-scanner
261+
- virtual: pkgconfig-for-target
262+
triple: "@OPTION:arch-triple@"
263+
- host-vala
264+
- host-mlibc
265+
- host-gobject-introspection
266+
- host-python
267+
pkgs_required:
268+
- mlibc
269+
- glib
270+
- exiv2
271+
- gobject-introspection
272+
configure:
273+
- args:
274+
- 'meson'
275+
- 'setup'
276+
- '--cross-file'
277+
- '@SOURCE_ROOT@/scripts/meson-@OPTION:[email protected]'
278+
- '--prefix=/usr'
279+
- '--buildtype=release'
280+
- '--wrap-mode=nodownload'
281+
- '-Dintrospection=true'
282+
- '-Dpython3=false'
283+
- '-Dtools=false'
284+
- '-Dvapi=true'
285+
- '@THIS_SOURCE_DIR@'
286+
environ:
287+
# Same as below
288+
RUN_WRAPPER_LD_LIBRARY_PATH: '@BUILD_ROOT@/tools/host-mlibc/lib:@SYSROOT_DIR@/usr/lib:@SYSROOT_DIR@/usr/lib64:@THIS_BUILD_DIR@/girepository'
289+
RUN_WRAPPER_INTERP: '@BUILD_ROOT@/tools/host-mlibc/lib/ld.so'
290+
VALADIR: '@SYSROOT_DIR@/usr/share/vala/vapi'
291+
# Wrapper to add our valadir
292+
VAPIGEN: 'cross-vapigen'
293+
# Wrapper to add our valadir
294+
VALAC: 'cross-valac'
295+
build:
296+
- args: ['ninja']
297+
environ:
298+
# Make python load host libraries instead of the ones in the rootfs
299+
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'
300+
# Library path for our run-wrapper that allows it to load managarm libraries
301+
RUN_WRAPPER_LD_LIBRARY_PATH: '@BUILD_ROOT@/tools/host-mlibc/lib:@SYSROOT_DIR@/usr/lib:@SYSROOT_DIR@/usr/lib64:@THIS_BUILD_DIR@/girepository'
302+
# Similar to above, but using a nasty (but working) hack lets us use a Linux mlibc build to execute an
303+
# executable that was cross-compiled for managarm
304+
RUN_WRAPPER_INTERP: '@BUILD_ROOT@/tools/host-mlibc/lib/ld.so'
305+
# This is a custom environment variable which tells g-ir-scanner what to use instead of ldd
306+
# We point it at our native ldd-wrapper that's installed as part of host-gobject-introspection
307+
GI_LDD_WRAPPER: ldd-wrapper
308+
# This tells g-ir-scanner what program should be used for "cross-launching" the executables it builds
309+
GI_CROSS_LAUNCHER: run-wrapper
310+
# Path to the introspection data installed by other packages
311+
GI_GIR_PATH: '@SYSROOT_DIR@/usr/share/gir-1.0'
312+
VALADIR: '@SYSROOT_DIR@/usr/share/vala/vapi'
313+
# Wrapper to add our valadir
314+
VALAC: 'cross-valac'
315+
# Wrapper to add our valadir
316+
VAPIGEN: 'cross-vapigen'
317+
- args: ['ninja', 'install']
318+
environ:
319+
DESTDIR: '@THIS_COLLECT_DIR@'
320+
244321
- name: giflib
245322
architecture: '@OPTION:arch@'
246323
metadata:

0 commit comments

Comments
 (0)