void-packages/srcpkgs/muffin/patches/pkgconfig-honor-sysroot-cross.patch
Đoàn Trần Công Danh 0cfe37798f muffin: update to 4.4.2.
pkg-config: honor sysroot when used to cross-compile

From https://autotools.io/pkgconfig/cross-compiling.html

> To design a variable to contain a path that needs to be used at build
> time, such as the path where a generation script is, you can prefix it
> in the .pc file with the built-in variable ${pc_sysrootdir}.
2020-02-15 07:13:01 +01:00

13 lines
356 B
Diff

--- src/libmuffin.pc.in
+++ src/libmuffin.pc.in
@@ -2,8 +2,8 @@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
-girdir=@libdir@/muffin
-typelibdir=@libdir@/muffin
+girdir=${pc_sysrootdir}@libdir@/muffin
+typelibdir=${pc_sysrootdir}@libdir@/muffin
apiversion=@MUFFIN_PLUGIN_API_VERSION@
muffin_major_version=@MUFFIN_MAJOR_VERSION@