gdk-pixbuf/libgtk2: move gdk-pixbuf loader cache setup script
authorLionel Landwerlin <llandwerlin@gmail.com>
Thu, 4 Nov 2010 08:18:57 +0000 (09:18 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 5 Nov 2010 09:07:26 +0000 (10:07 +0100)
Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/gdk-pixbuf/S26gdk-pixbuf [new file with mode: 0644]
package/gdk-pixbuf/gdk-pixbuf.mk
package/libgtk2/S26libgtk2 [deleted file]
package/libgtk2/libgtk2.mk

diff --git a/package/gdk-pixbuf/S26gdk-pixbuf b/package/gdk-pixbuf/S26gdk-pixbuf
new file mode 100644 (file)
index 0000000..82b7944
--- /dev/null
@@ -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
index 4c3e108a072059b819d9a6b02c77d6a08ae5cba4..f762095781e881496824d8de9ce7b452051422d8 100644 (file)
@@ -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 = \
diff --git a/package/libgtk2/S26libgtk2 b/package/libgtk2/S26libgtk2
deleted file mode 100644 (file)
index 037746d..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-#
-# run pgdk-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
index e41fcc9f94af230dfc5434cadd83b25080418117..6e14d275acb3d86eec2fb0362566c0036397d901 100644 (file)
@@ -115,7 +115,6 @@ LIBGTK2_CONF_OPT += --disable-cups
 endif
 
 define LIBGTK2_POST_INSTALL_TWEAKS
-       $(INSTALL) -m 755 package/libgtk2/S26libgtk2 $(TARGET_DIR)/etc/init.d/
        rm -rf $(TARGET_DIR)/usr/share/gtk-2.0/demo $(TARGET_DIR)/usr/bin/gtk-demo
 endef