aboutsummaryrefslogtreecommitdiff
path: root/ports/libqrencode
diff options
context:
space:
mode:
authorPhoebe <20694052+PhoebeHui@users.noreply.github.com>2021-09-08 12:40:10 +0800
committerGitHub <noreply@github.com>2021-09-07 21:40:10 -0700
commit8ef3e28099e0d807c6be79520ed217dbcc5c4e85 (patch)
treef32d007a0770658982ac5f5cebab58d6a9539c8c /ports/libqrencode
parent4814a512905e288df1b5d544e60775abcc5a1ca0 (diff)
downloadvcpkg-8ef3e28099e0d807c6be79520ed217dbcc5c4e85.tar.gz
vcpkg-8ef3e28099e0d807c6be79520ed217dbcc5c4e85.zip
[libuv/librsync/libqrencode] Update to latest release version (#19972)
* [libuv/librsync/libqrencode] Update to latest release version * Update the baseline version * [libuv] Add new source file epoll.c * Update the source * Small changes
Diffstat (limited to 'ports/libqrencode')
-rw-r--r--ports/libqrencode/CONTROL9
-rw-r--r--ports/libqrencode/portfile.cmake47
-rw-r--r--ports/libqrencode/vcpkg.json25
3 files changed, 47 insertions, 34 deletions
diff --git a/ports/libqrencode/CONTROL b/ports/libqrencode/CONTROL
deleted file mode 100644
index 51ac671a4..000000000
--- a/ports/libqrencode/CONTROL
+++ /dev/null
@@ -1,9 +0,0 @@
-Source: libqrencode
-Version: 4.1.0
-Build-Depends: libpng, libiconv
-Homepage: https://github.com/fukuchi/libqrencode
-Description: libqrencode - a fast and compact QR Code encoding library
-
-Feature: tool
-Description: Build qrencode tool
-Build-Depends: getopt (windows)
diff --git a/ports/libqrencode/portfile.cmake b/ports/libqrencode/portfile.cmake
index 0097ad6fc..40e383c3c 100644
--- a/ports/libqrencode/portfile.cmake
+++ b/ports/libqrencode/portfile.cmake
@@ -1,22 +1,20 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO fukuchi/libqrencode
- REF 0f6149e41533a34029e72ff9234a18e0f22ab992 #v4.1.0
- SHA512 7aa215d1a9b06df19bcc0178d241af285d5215f6df994f9e2cf64cde716c7451252380a17e60ef27899bf9039e91306c8eb1948b40ede188d49a25555a94c22a
+ REF 715e29fd4cd71b6e452ae0f4e36d917b43122ce8 # v4.1.1
+ SHA512 78a5464c6fd37d2b4ed6d81c5faf8d95f6f1c95bfdb55dfe89fc227cd487c1685e8080694b1c93128364337959562ea133b3bb332ae1c5a4094614b493611e9f
HEAD_REF master
)
-if("tool" IN_LIST FEATURES)
- set(WITH_TOOLS YES)
-else()
- set(WITH_TOOLS NO)
-endif()
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ tool WITH_TOOLS
+)
-vcpkg_configure_cmake(
+vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
- PREFER_NINJA
OPTIONS
- -DWITH_TOOLS=${WITH_TOOLS}
+ ${FEATURE_OPTIONS}
-DWITH_TEST=NO
-DSKIP_INSTALL_PROGRAMS=ON
-DSKIP_INSTALL_EXECUTABLES=ON
@@ -26,32 +24,31 @@ vcpkg_configure_cmake(
-DWITH_TOOLS=NO
)
-vcpkg_install_cmake()
+vcpkg_cmake_install()
if(VCPKG_TARGET_IS_WINDOWS) # Windows
- set(EXECUTABLE_SUFFIX ".exe")
+ set(EXECUTABLE_SUFFIX ".exe")
else()
- set(EXECUTABLE_SUFFIX "")
+ set(EXECUTABLE_SUFFIX "")
endif()
-if(EXISTS ${CURRENT_PACKAGES_DIR}/lib/qrencode.dll)
- file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/bin)
- file(RENAME ${CURRENT_PACKAGES_DIR}/lib/qrencode.dll ${CURRENT_PACKAGES_DIR}/bin/qrencode.dll)
+if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/qrencode.dll")
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/bin")
+ file(RENAME "${CURRENT_PACKAGES_DIR}/lib/qrencode.dll" "${CURRENT_PACKAGES_DIR}/bin/qrencode.dll")
endif()
-if(EXISTS ${CURRENT_PACKAGES_DIR}/debug/lib/qrencoded.dll)
- file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/debug/bin)
- file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/qrencoded.dll ${CURRENT_PACKAGES_DIR}/debug/bin/qrencoded.dll)
+if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/qrencoded.dll")
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/bin")
+ file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/qrencoded.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/qrencoded.dll")
endif()
-if(EXISTS ${CURRENT_PACKAGES_DIR}/bin/qrencode${EXECUTABLE_SUFFIX})
+if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/qrencode${EXECUTABLE_SUFFIX}")
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/qrencode")
file(RENAME "${CURRENT_PACKAGES_DIR}/bin/qrencode${EXECUTABLE_SUFFIX}" "${CURRENT_PACKAGES_DIR}/tools/qrencode/qrencode${EXECUTABLE_SUFFIX}")
- vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/qrencode)
+ vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/qrencode")
endif()
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
-file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_copy_pdbs()
-file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) \ No newline at end of file
+file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
+file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/ports/libqrencode/vcpkg.json b/ports/libqrencode/vcpkg.json
new file mode 100644
index 000000000..e9f572ad9
--- /dev/null
+++ b/ports/libqrencode/vcpkg.json
@@ -0,0 +1,25 @@
+{
+ "name": "libqrencode",
+ "version-semver": "4.1.1",
+ "description": "libqrencode - a fast and compact QR Code encoding library",
+ "homepage": "https://github.com/fukuchi/libqrencode",
+ "dependencies": [
+ "libiconv",
+ "libpng",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ],
+ "features": {
+ "tool": {
+ "description": "Build qrencode tool",
+ "dependencies": [
+ {
+ "name": "getopt",
+ "platform": "windows"
+ }
+ ]
+ }
+ }
+}