From d08de097394f327e48544d40a8fb217a0d6424af Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sun, 29 Apr 2018 18:29:49 +0100 Subject: meson: Add post-install script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If we're installing gdk-pixbuf ourselves, we should generate the loaders cache file — unless DESTDIR is set or we're cross-compiling, in which case we assume that there's a packaging system hook in place to do this at the end of a full build. --- build-aux/post-install.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 build-aux/post-install.sh (limited to 'build-aux') diff --git a/build-aux/post-install.sh b/build-aux/post-install.sh new file mode 100644 index 000000000..40aab7422 --- /dev/null +++ b/build-aux/post-install.sh @@ -0,0 +1,17 @@ +#!/usr/bin/bash + +libdir="$1" +binary_version="$2" + +if [ -z "$DESTDIR" ]; then + mkdir -p "$libdir/gdk-pixbuf-2.0/$binary_version" + gdk-pixbuf-query-loaders > "$libdir/gdk-pixbuf-2.0/$binary_version/loaders.cache" +else + echo "***" + echo "*** Warning: loaders.cache not built" + echo "***" + echo "*** You should generate this file manually on the host system" + echo "*** using:" + echo "*** gdk-pixbuf-query-loaders > $libdir/gdk-pixbuf-2.0/$binary_version/loaders.cache" + echo "***" +fi -- cgit v1.2.1