--- C:/Source/gstreamer-1.0-android-armv7-1.8.2/share/gst-android/ndk-build/gstreamer-1.0___ORIG.mk	Do Jun  9 17:35:26 2016
+++ C:/Source/gstreamer-1.0-android-armv7-1.8.2/share/gst-android/ndk-build/gstreamer-1.0.mk	Sa Jul 16 16:12:30 2016
@@ -67,0 +68 @@ ifeq ($(HOST_OS),windows)
+    SED_LOCAL := "$(GSTREAMER_NDK_BUILD_PATH)/tools/windows/sed"
@@ -69,0 +71 @@ else
+    SED_LOCAL := sed
@@ -210,5 +212,4 @@ genstatic_$(TARGET_ARCH_ABI):
-	cat $(PRIV_C_IN) | \
-		$(SED) "s/@PLUGINS_DECLARATION@/$(PRIV_P_D)/g" | \
-		$(SED) "s/@PLUGINS_REGISTRATION@/$(PRIV_P_R)/g" | \
-		$(SED) "s/@G_IO_MODULES_LOAD@/$(PRIV_G_L)/g" | \
-		$(SED) "s/@G_IO_MODULES_DECLARE@/$(PRIV_G_R)/g" > $(PRIV_C)
+	@$(SED_LOCAL) "s/@PLUGINS_DECLARATION@/$(PRIV_P_D)/g" $(PRIV_C_IN) | \
+		$(SED_LOCAL) "s/@PLUGINS_REGISTRATION@/$(PRIV_P_R)/g" | \
+		$(SED_LOCAL) "s/@G_IO_MODULES_LOAD@/$(PRIV_G_L)/g" | \
+		$(SED_LOCAL) "s/@G_IO_MODULES_DECLARE@/$(PRIV_G_R)/g" > $(PRIV_C)
@@ -233 +234 @@ ifeq ($(GSTREAMER_INCLUDE_FONTS),yes)
-GSTREAMER_INCLUDE_FONTS_SUBST=""
+GSTREAMER_INCLUDE_FONTS_SUBST :=
@@ -235 +236 @@ else
-GSTREAMER_INCLUDE_FONTS_SUBST="//"
+GSTREAMER_INCLUDE_FONTS_SUBST := //
@@ -239 +240 @@ ifeq ($(GSTREAMER_INCLUDE_CA_CERTIFICATES),yes)
-GSTREAMER_INCLUDE_CA_CERTIFICATES_SUBST=""
+GSTREAMER_INCLUDE_CA_CERTIFICATES_SUBST := 
@@ -241 +242 @@ else
-GSTREAMER_INCLUDE_CA_CERTIFICATES_SUBST="//"
+GSTREAMER_INCLUDE_CA_CERTIFICATES_SUBST := //
@@ -245 +246 @@ ifneq (,$(findstring yes,$(GSTREAMER_INCLUDE_FONTS
-GSTREAMER_COPY_FILE_SUBST=""
+GSTREAMER_COPY_FILE_SUBST := 
@@ -247 +248 @@ else
-GSTREAMER_COPY_FILE_SUBST="//"
+GSTREAMER_COPY_FILE_SUBST := //
@@ -257,4 +258,3 @@ copyjavasource_$(TARGET_ARCH_ABI):
-	cat $(GSTREAMER_NDK_BUILD_PATH)/GStreamer.java | \
-		$(SED) "s;@INCLUDE_FONTS@;//;g" | \
-		$(SED) "s;@INCLUDE_CA_CERTIFICATES@;//;g" | \
-		$(SED) "s;@INCLUDE_COPY_FILE@;//;g" \
+	@$(SED_LOCAL) "s;@INCLUDE_FONTS@;$(GSTREAMER_INCLUDE_FONTS_SUBST);g" $(GSTREAMER_NDK_BUILD_PATH)/GStreamer.java | \
+		$(SED_LOCAL) "s;@INCLUDE_CA_CERTIFICATES@;/$(GSTREAMER_INCLUDE_CA_CERTIFICATES_SUBST)/;g" | \
+		$(SED_LOCAL) "s;@INCLUDE_COPY_FILE@;/$(GSTREAMER_COPY_FILE_SUBST)/;g" \
