--- gst-plugins-bad-0.10.21.orig/sys/winscreencap/Makefile.am	2010-03-22 16:11:55.000000000 +0300
+++ gst-plugins-bad-0.10.21/sys/winscreencap/Makefile.am	2012-03-14 12:05:07.171678496 +0400
@@ -1,8 +1,11 @@
-# This plugin isn't buildable with autotools at this point in time, so just
-# ensure everything's listed in EXTRA_DIST
+plugin_LTLIBRARIES = libgstwinscreencap.la
 
-EXTRA_DIST = \
-	gstdx9screencapsrc.c gstdx9screencapsrc.h \
-	gstgdiscreencapsrc.c gstgdiscreencapsrc.h \
-	gstwinscreencap.c gstwinscreencap.h
+libgstwinscreencap_la_SOURCES = gstdx9screencapsrc.c  gstgdiscreencapsrc.c  gstwinscreencap.c
+libgstwinscreencap_la_CFLAGS = $(GST_CFLAGS) $(GST_BASE_CFLAGS) \
+	$(GST_PLUGINS_BASE_CFLAGS)
+libgstwinscreencap_la_LIBADD = $(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS) \
+	$(DIRECT3D9_LIBS)
+libgstwinscreencap_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
+libgstwinscreencap_la_LIBTOOLFLAGS = --tag=disable-static
 
+noinst_HEADERS= gstwinscreencap.h
