diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libcsv | |
Diffstat (limited to 'vcpkg/ports/libcsv')
| -rw-r--r-- | vcpkg/ports/libcsv/Makefile.patch | 13 | ||||
| -rw-r--r-- | vcpkg/ports/libcsv/portfile.cmake | 21 | ||||
| -rw-r--r-- | vcpkg/ports/libcsv/vcpkg.json | 9 |
3 files changed, 43 insertions, 0 deletions
diff --git a/vcpkg/ports/libcsv/Makefile.patch b/vcpkg/ports/libcsv/Makefile.patch new file mode 100644 index 0000000..25d7af9 --- /dev/null +++ b/vcpkg/ports/libcsv/Makefile.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile.am b/Makefile.am
+index 79a3527..619a253 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,7 +1,7 @@
+ lib_LTLIBRARIES = libcsv.la
+ libcsv_la_SOURCES = libcsv.c
+ libcsv_la_LDFLAGS = -version-info 3:3:0
+- libcsv_la_CFLAGS = -Wall -Wextra
++ libcsv_la_CFLAGS = -Wall
+ libcsv_includedir = $(includedir)
+ nobase_libcsv_include_HEADERS = csv.h
+ dist_man_MANS = csv.3
diff --git a/vcpkg/ports/libcsv/portfile.cmake b/vcpkg/ports/libcsv/portfile.cmake new file mode 100644 index 0000000..d825502 --- /dev/null +++ b/vcpkg/ports/libcsv/portfile.cmake @@ -0,0 +1,21 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO rgamble/libcsv
+ REF b1d5212831842ee5869d99bc208a21837e4037d5 # v3.0.3
+ SHA512 2e6ea0b68768d502e9bdb3bb801a1eb64b7fb0010a5006dec1b36a0fe705ec717560ec91f586572654c015db1f0d3a6e804dbcaa666a419192e93820b2c5e891
+ HEAD_REF master
+ PATCHES
+ Makefile.patch
+)
+
+vcpkg_configure_make(
+ SOURCE_PATH "${SOURCE_PATH}"
+ AUTOCONFIG
+)
+
+vcpkg_install_make()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/libcsv" RENAME copyright)
diff --git a/vcpkg/ports/libcsv/vcpkg.json b/vcpkg/ports/libcsv/vcpkg.json new file mode 100644 index 0000000..520c00e --- /dev/null +++ b/vcpkg/ports/libcsv/vcpkg.json @@ -0,0 +1,9 @@ +{ + "name": "libcsv", + "version": "3.0.3", + "port-version": 1, + "description": "CSV parser and writer library", + "homepage": "https://github.com/rgamble/libcsv", + "license": "GPL-2.0-or-later", + "supports": "!xbox" +} |