wnck: remove dependency on gdk-pixbuf-csource
authorFelix Fietkau <nbd@openwrt.org>
Wed, 2 Sep 2009 22:39:35 +0000 (22:39 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 2 Sep 2009 22:39:35 +0000 (22:39 +0000)
SVN-Revision: 17486

Xorg/lib/wnck/Makefile
Xorg/lib/wnck/patches/100-optional_gdk_pixbuf_csource.patch [new file with mode: 0644]

index 35589d523405c43b0bf011e437b3b0be4df1a3d1..3b5fac4d8f51d1d75a7e8e81e731b18ac2a56c24 100644 (file)
@@ -57,8 +57,4 @@ define Package/libwnck/install
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
 endef
 
-$(eval $(call RequireCommand,gdk-pixbuf-csource, \
-       Please install gtk2.0-dev \
-))
-
 $(eval $(call BuildPackage,libwnck))
diff --git a/Xorg/lib/wnck/patches/100-optional_gdk_pixbuf_csource.patch b/Xorg/lib/wnck/patches/100-optional_gdk_pixbuf_csource.patch
new file mode 100644 (file)
index 0000000..9c19596
--- /dev/null
@@ -0,0 +1,65 @@
+--- a/configure
++++ b/configure
+@@ -26634,7 +26634,7 @@
+ done
+ IFS=$as_save_IFS
+-  test -z "$ac_cv_path_GDK_PIXBUF_CSOURCE" && ac_cv_path_GDK_PIXBUF_CSOURCE="no"
++  test -z "$ac_cv_path_GDK_PIXBUF_CSOURCE" && ac_cv_path_GDK_PIXBUF_CSOURCE=""
+   ;;
+ esac
+ fi
+@@ -26649,14 +26649,6 @@
+-if test x"$GDK_PIXBUF_CSOURCE" = xno; then
+-  { { $as_echo "$as_me:$LINENO: error: gdk-pixbuf-csource executable not found in your path - should be installed with GTK" >&5
+-$as_echo "$as_me: error: gdk-pixbuf-csource executable not found in your path - should be installed with GTK" >&2;}
+-   { (exit 1); exit 1; }; }
+-fi
+-
+-
+-
+ ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
+ ##################################################
+--- a/configure.in
++++ b/configure.in
+@@ -128,11 +128,7 @@
+ GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`  
+ AC_SUBST(GLIB_GENMARSHAL)
+-AC_PATH_PROG(GDK_PIXBUF_CSOURCE, gdk-pixbuf-csource, no)
+-
+-if test x"$GDK_PIXBUF_CSOURCE" = xno; then
+-  AC_MSG_ERROR([gdk-pixbuf-csource executable not found in your path - should be installed with GTK])
+-fi
++AC_PATH_PROG(GDK_PIXBUF_CSOURCE, gdk-pixbuf-csource)
+ AC_SUBST(GDK_PIXBUF_CSOURCE)
+--- a/libwnck/Makefile.am
++++ b/libwnck/Makefile.am
+@@ -163,7 +163,8 @@
+       $(wnck_built_cfiles)
+ inlinepixbufs.h: $(IMAGES)
+-      $(GDK_PIXBUF_CSOURCE) --raw --build-list $(VARIABLES) >$(srcdir)/inlinepixbufs.h
++      $(if $(GDK_PIXBUF_CSOURCE),$(GDK_PIXBUF_CSOURCE) --raw --build-list $(VARIABLES) >$(srcdir)/inlinepixbufs.h)
++      touch $@
+ $(OBJECTS): inlinepixbufs.h
+--- a/libwnck/Makefile.in
++++ b/libwnck/Makefile.in
+@@ -826,7 +826,8 @@
+       && rm -f new-wnck-enum-types.c
+ inlinepixbufs.h: $(IMAGES)
+-      $(GDK_PIXBUF_CSOURCE) --raw --build-list $(VARIABLES) >$(srcdir)/inlinepixbufs.h
++      $(if $(GDK_PIXBUF_CSOURCE),$(GDK_PIXBUF_CSOURCE) --raw --build-list $(VARIABLES) >$(srcdir)/inlinepixbufs.h)
++      touch $@
+ $(OBJECTS): inlinepixbufs.h
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.