package/gstreamer1/gstreamer1: fix girdir
As already done for libglib2 in commit
b094f88a4d
, fix girdir to avoid the
following build failure with gst1-plugins-base and introspection:
/home/giuliobenetti/autobuild/run/instance-3/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/bin/g-ir-compiler gst-libs/gst/tag/GstTag-1.0.gir --output gst-libs/gst/tag/GstTag-1.0.typelib --includedir=/usr/share/gir-1.0
Could not find GIR file 'Gst-1.0.gir'; check XDG_DATA_DIRS or use --includedir
Fixes:
- http://autobuild.buildroot.org/results/d1e2bdde97777ff61c185d375ba412a93e7ca467
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
f4483f1aab
commit
ff420a3195
@ -49,4 +49,14 @@ endif
|
||||
|
||||
GSTREAMER1_LDFLAGS = $(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)
|
||||
|
||||
# By default, girdir uses datadir as its prefix of which pkg-config will not
|
||||
# append the sysroot directory. This results in a build failure with
|
||||
# gst1-plugins-base. Changing prefix to ${libdir}/../share prevents this error.
|
||||
define GSTREAMER1_FIX_GIRDIR
|
||||
$(SED) "s%girdir=.*%girdir=\$${libdir}/../share/gir-1.0%g" \
|
||||
$(STAGING_DIR)/usr/lib/pkgconfig/gstreamer-1.0.pc \
|
||||
$(STAGING_DIR)/usr/lib/pkgconfig/gstreamer-base-1.0.pc
|
||||
endef
|
||||
GSTREAMER1_POST_INSTALL_STAGING_HOOKS += GSTREAMER1_FIX_GIRDIR
|
||||
|
||||
$(eval $(meson-package))
|
||||
|
Loading…
Reference in New Issue
Block a user