--- libproxy-0.4.11/libproxy/cmake/pkgconfig.cmk.orig	2014-09-22 11:16:05.596800000 +0500
+++ libproxy-0.4.11/libproxy/cmake/pkgconfig.cmk	2014-09-22 11:16:12.336000000 +0500
@@ -1,4 +1,4 @@
-if(NOT WIN32 AND NOT APPLE)
+if(NOT WIN32 AND NOT APPLE OR MINGW)
   find_package(PkgConfig)
 
   # Define our magical px_check_modules function
--- libproxy-0.4.11/libproxy/cmake/libproxy.cmk.orig	2014-09-22 11:42:17.021200000 +0500
+++ libproxy-0.4.11/libproxy/cmake/libproxy.cmk	2014-09-22 11:43:24.896800000 +0500
@@ -21,8 +21,13 @@
 set_target_properties(libproxy PROPERTIES PREFIX "" VERSION 1.0.0 SOVERSION 1)
 set_target_properties(libproxy PROPERTIES INTERFACE_LINK_LIBRARIES "")
 set_target_properties(libproxy PROPERTIES LINK_INTERFACE_LIBRARIES "")
-if(NOT APPLE)
+if(NOT APPLE AND NOT MINGW)
   set_target_properties(libproxy PROPERTIES LINK_FLAGS "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/libproxy.map")
 endif()
-install(TARGETS libproxy DESTINATION ${LIB_INSTALL_DIR})
+set_target_properties(libproxy PROPERTIES OUTPUT_NAME proxy RUNTIME_OUTPUT_NAME libproxy-1 ARCHIVE_OUTPUT_NAME proxy)
+install(TARGETS libproxy
+        RUNTIME DESTINATION ${BIN_INSTALL_DIR}
+        LIBRARY DESTINATION ${LIB_INSTALL_DIR}
+        ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
+        )
 install(FILES   proxy.h  DESTINATION ${INCLUDE_INSTALL_DIR})
