aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libnick
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libnick
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libnick')
-rw-r--r--vcpkg/ports/libnick/portfile.cmake32
-rw-r--r--vcpkg/ports/libnick/usage8
-rw-r--r--vcpkg/ports/libnick/vcpkg.json36
3 files changed, 76 insertions, 0 deletions
diff --git a/vcpkg/ports/libnick/portfile.cmake b/vcpkg/ports/libnick/portfile.cmake
new file mode 100644
index 0000000..bd9c7c6
--- /dev/null
+++ b/vcpkg/ports/libnick/portfile.cmake
@@ -0,0 +1,32 @@
+if(VCPKG_TARGET_IS_WINDOWS)
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+endif()
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO NickvisionApps/libnick
+ REF "${VERSION}"
+ SHA512 a658db8568e84093f5b9d22acf5ac1574d4510ea7819cbbf2a37b6ea7c73629d745adf300cbdbc86e9dedaa50a22977a631f755dff607314eadebb4e575e9467
+ HEAD_REF main
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_TESTING=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libnick)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+vcpkg_copy_pdbs()
+
+vcpkg_fixup_pkgconfig()
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
+
+file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
diff --git a/vcpkg/ports/libnick/usage b/vcpkg/ports/libnick/usage
new file mode 100644
index 0000000..53c8cae
--- /dev/null
+++ b/vcpkg/ports/libnick/usage
@@ -0,0 +1,8 @@
+libnick provides CMake targets:
+
+ find_package(libnick CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE libnick::libnick)
+
+libnick provides pkg-config modules:
+
+ libnick
diff --git a/vcpkg/ports/libnick/vcpkg.json b/vcpkg/ports/libnick/vcpkg.json
new file mode 100644
index 0000000..002574d
--- /dev/null
+++ b/vcpkg/ports/libnick/vcpkg.json
@@ -0,0 +1,36 @@
+{
+ "name": "libnick",
+ "version": "2025.10.0",
+ "maintainers": "Nicholas Logozzo nlogozzo225@gmail.com",
+ "description": "A cross-platform base for native Nickvision applications.",
+ "homepage": "https://github.com/NickvisionApps/libnick",
+ "documentation": "https://github.com/NickvisionApps/libnick/tree/main/docs",
+ "license": "GPL-3.0-only",
+ "supports": "windows | linux | osx",
+ "dependencies": [
+ "boost-json",
+ "cpr",
+ "gettext-libintl",
+ {
+ "name": "glib",
+ "platform": "linux | osx"
+ },
+ {
+ "name": "libsecret",
+ "platform": "linux"
+ },
+ "maddy",
+ {
+ "name": "sqlcipher",
+ "platform": "windows"
+ },
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}