diff options
Diffstat (limited to 'package/gdk-pixbuf')
-rw-r--r-- | package/gdk-pixbuf/S26gdk-pixbuf | 19 | ||||
-rw-r--r-- | package/gdk-pixbuf/gdk-pixbuf.mk | 6 |
2 files changed, 25 insertions, 0 deletions
diff --git a/package/gdk-pixbuf/S26gdk-pixbuf b/package/gdk-pixbuf/S26gdk-pixbuf new file mode 100644 index 000000000..82b7944e7 --- /dev/null +++ b/package/gdk-pixbuf/S26gdk-pixbuf @@ -0,0 +1,19 @@ +#!/bin/sh +# +# run gdk-pixbuf-query-loaders if needed + +FILE=/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache + +case "$1" in + start|"") + if [ ! -f "$FILE" ] ; then + /usr/bin/gdk-pixbuf-query-loaders --update-cache + fi + ;; + stop) + ;; + *) + echo "Usage: $0 {start|stop}" >&2 + exit 1 + ;; +esac diff --git a/package/gdk-pixbuf/gdk-pixbuf.mk b/package/gdk-pixbuf/gdk-pixbuf.mk index 4c3e108a0..f76209578 100644 --- a/package/gdk-pixbuf/gdk-pixbuf.mk +++ b/package/gdk-pixbuf/gdk-pixbuf.mk @@ -40,6 +40,12 @@ endif GDK_PIXBUF_DEPENDENCIES += $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext libintl) host-pkg-config libglib2 libiconv +define GDK_PIXBUF_POST_INSTALL_TWEAKS + $(INSTALL) -m 755 package/gdk-pixbuf/S26gdk-pixbuf $(TARGET_DIR)/etc/init.d/ +endef + +GDK_PIXBUF_POST_INSTALL_TARGET_HOOKS += GDK_PIXBUF_POST_INSTALL_TWEAKS + $(eval $(call AUTOTARGETS,package,gdk-pixbuf)) HOST_GDK_PIXBUF_CONF_OPT = \ |