From 3e63117304909c245092d6b0e12b1ccd6b5900c1 Mon Sep 17 00:00:00 2001 From: Eric Mittelette Date: Fri, 14 Oct 2016 15:59:11 -0700 Subject: [PATCH 1/2] glog port file --- ports/glog/CONTROL | 3 +++ ports/glog/portfile.cmake | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 ports/glog/CONTROL create mode 100644 ports/glog/portfile.cmake diff --git a/ports/glog/CONTROL b/ports/glog/CONTROL new file mode 100644 index 000000000..f61f973e5 --- /dev/null +++ b/ports/glog/CONTROL @@ -0,0 +1,3 @@ +Source: glog +Version: 0472b91 +Description: C++ implementation of the Google logging module diff --git a/ports/glog/portfile.cmake b/ports/glog/portfile.cmake new file mode 100644 index 000000000..1790d8649 --- /dev/null +++ b/ports/glog/portfile.cmake @@ -0,0 +1,34 @@ +# Common Ambient Variables: +# VCPKG_ROOT_DIR = +# TARGET_TRIPLET is the current triplet (x86-windows, etc) +# PORT is the current port name (zlib, etc) +# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT} +# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET} +# + +include(${CMAKE_TRIPLET_FILE}) +include(vcpkg_common_functions) +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/glog-0472b91c5defdf90cff7292e3bf7bd86770a9a0a) +vcpkg_download_distfile(ARCHIVE + URLS "https://github.com/google/glog/archive/0472b91c5defdf90cff7292e3bf7bd86770a9a0a.zip" + FILENAME "glog-0472b91c5defdf90cff7292e3bf7bd86770a9a0a" + SHA512 24506ad1cc05e8361379b925ecfc8f32cc47692a47598401cca340eb2a528fe28b8b0d3636983056c7910469d105095bd3bacacff6278bffa18d85603c3dbfa8 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + # OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2 + # OPTIONS_RELEASE -DOPTIMIZE=1 + # OPTIONS_DEBUG -DDEBUGGABLE=1 +) + +vcpkg_install_cmake() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/cmake ) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/cmake ) +# Handle copyright +file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/glog) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/glog/COPYING ${CURRENT_PACKAGES_DIR}/share/glog/copyright) + From e48763dff33a89651c1e40b14b787436361e0f18 Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Fri, 14 Oct 2016 17:41:42 -0700 Subject: [PATCH 2/2] [glog] Add upstream version, require gflags to ensure full functionality --- ports/glog/CONTROL | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ports/glog/CONTROL b/ports/glog/CONTROL index f61f973e5..bf69d98c3 100644 --- a/ports/glog/CONTROL +++ b/ports/glog/CONTROL @@ -1,3 +1,4 @@ Source: glog -Version: 0472b91 +Version: 0.3.4-0472b91 Description: C++ implementation of the Google logging module +Build-Depends: gflags