aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/iniparser
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/iniparser')
-rw-r--r--vcpkg/ports/iniparser/portfile.cmake26
-rw-r--r--vcpkg/ports/iniparser/vcpkg.json17
2 files changed, 43 insertions, 0 deletions
diff --git a/vcpkg/ports/iniparser/portfile.cmake b/vcpkg/ports/iniparser/portfile.cmake
new file mode 100644
index 0000000..4671aae
--- /dev/null
+++ b/vcpkg/ports/iniparser/portfile.cmake
@@ -0,0 +1,26 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ndevilla/iniparser
+ REF v${VERSION}
+ SHA512 4057e65011efb005fd212c2316580b9d5d6b835f0a507001324e5ca49ad0e7656508a915484c24cd5b57aece11a9298feb5904fec3535c5191fff62706b15aa9
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_EXAMPLES=OFF
+ -DBUILD_DOCS=OFF
+)
+
+vcpkg_cmake_install()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_cmake_config_fixup(CONFIG_PATH /lib/cmake/iniparser)
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
+
+vcpkg_fixup_pkgconfig()
diff --git a/vcpkg/ports/iniparser/vcpkg.json b/vcpkg/ports/iniparser/vcpkg.json
new file mode 100644
index 0000000..d0c5dd6
--- /dev/null
+++ b/vcpkg/ports/iniparser/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "iniparser",
+ "version": "4.2.6",
+ "description": "C library for parsing INI-style files",
+ "homepage": "https://github.com/ndevilla/iniparser",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}