aboutsummaryrefslogtreecommitdiff
path: root/ports/gflags/fix-install.patch
diff options
context:
space:
mode:
authorArkadiy Shapkin <arkady.shapkin@gmail.com>2017-05-06 23:33:59 +0300
committerArkadiy Shapkin <arkady.shapkin@gmail.com>2017-05-06 23:33:59 +0300
commit1b3aa5a39f00a72e2e5a8a7367b704f72772f609 (patch)
tree6388d48118bc71dd44605ce4c7b316ac245c10bf /ports/gflags/fix-install.patch
parent2b561712dcf00936cad71d9a413649758241dbc8 (diff)
downloadvcpkg-1b3aa5a39f00a72e2e5a8a7367b704f72772f609.tar.gz
vcpkg-1b3aa5a39f00a72e2e5a8a7367b704f72772f609.zip
[gflags] Simplified portfile
Diffstat (limited to 'ports/gflags/fix-install.patch')
-rw-r--r--ports/gflags/fix-install.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/ports/gflags/fix-install.patch b/ports/gflags/fix-install.patch
new file mode 100644
index 000000000..a2e6061f8
--- /dev/null
+++ b/ports/gflags/fix-install.patch
@@ -0,0 +1,46 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 3fd9d70..0debb89 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -397,11 +397,11 @@ endif ()
+ # ----------------------------------------------------------------------------
+ # installation directories
+ if (OS_WINDOWS)
+- set (RUNTIME_INSTALL_DIR Bin)
+- set (LIBRARY_INSTALL_DIR Lib)
+- set (INCLUDE_INSTALL_DIR Include)
+- set (CONFIG_INSTALL_DIR CMake)
+- set (PKGCONFIG_INSTALL_DIR)
++ set (RUNTIME_INSTALL_DIR "bin")
++ set (LIBRARY_INSTALL_DIR "lib")
++ set (INCLUDE_INSTALL_DIR "include")
++ set (CONFIG_INSTALL_DIR "share/${PACKAGE_NAME}")
++ set (PKGCONFIG_INSTALL_DIR "")
+ else ()
+ set (RUNTIME_INSTALL_DIR bin)
+ # The LIB_INSTALL_DIR and LIB_SUFFIX variables are used by the Fedora
+@@ -501,14 +501,22 @@ configure_file (cmake/version.cmake.in "${PROJECT_BINARY_DIR}/${PACKAGE_NAME}-co
+ if (BUILD_SHARED_LIBS AND INSTALL_SHARED_LIBS)
+ foreach (opts IN ITEMS "" _nothreads)
+ if (BUILD_gflags${opts}_LIB)
+- install (TARGETS gflags${opts}_shared DESTINATION ${LIBRARY_INSTALL_DIR} EXPORT ${EXPORT_NAME})
++ install (TARGETS gflags${opts}_shared
++ EXPORT ${EXPORT_NAME}
++ RUNTIME DESTINATION ${RUNTIME_INSTALL_DIR}
++ LIBRARY DESTINATION ${LIBRARY_INSTALL_DIR}
++ ARCHIVE DESTINATION ${LIBRARY_INSTALL_DIR})
+ endif ()
+ endforeach ()
+ endif ()
+ if (BUILD_STATIC_LIBS AND INSTALL_STATIC_LIBS)
+ foreach (opts IN ITEMS "" _nothreads)
+ if (BUILD_gflags${opts}_LIB)
+- install (TARGETS gflags${opts}_static DESTINATION ${LIBRARY_INSTALL_DIR} EXPORT ${EXPORT_NAME})
++ install (TARGETS gflags${opts}_static
++ EXPORT ${EXPORT_NAME}
++ RUNTIME DESTINATION ${RUNTIME_INSTALL_DIR}
++ LIBRARY DESTINATION ${LIBRARY_INSTALL_DIR}
++ ARCHIVE DESTINATION ${LIBRARY_INSTALL_DIR})
+ endif ()
+ endforeach ()
+ endif ()