diff --git a/ports/libdotconf/no-undefined.patch b/ports/libdotconf/no-undefined.patch new file mode 100644 index 00000000000000..26cd4e108a69f3 --- /dev/null +++ b/ports/libdotconf/no-undefined.patch @@ -0,0 +1,12 @@ +diff --git a/src/Makefile.am b/src/Makefile.am +index dd99233..8463e1f 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -1,6 +1,6 @@ + lib_LTLIBRARIES = libdotconf.la + libdotconf_la_CFLAGS = $(WARNING_CFLAGS) +-libdotconf_la_LDFLAGS = -version-info $(DC_CURRENT):$(DC_REVISION):$(DC_AGE) ++libdotconf_la_LDFLAGS = -no-undefined -version-info $(DC_CURRENT):$(DC_REVISION):$(DC_AGE) + libdotconf_la_SOURCES = dotconf.c \ + dotconf.h \ + dotconf_priv.h \ diff --git a/ports/libdotconf/portfile.cmake b/ports/libdotconf/portfile.cmake new file mode 100644 index 00000000000000..e560f261f21bb1 --- /dev/null +++ b/ports/libdotconf/portfile.cmake @@ -0,0 +1,26 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO williamh/dotconf + REF ed5c5a1707ed55b45904f875f6b25ce9076f4fa6 + SHA512 06cd30eda123839e73793f397a9393d975968584ba15773f63eb984650c86bcbd7ceb0d20421a02e8f79a9c7b9a0ffd3c6f4dcc24eec613a3bf1b1e270df4bdd + HEAD_REF master + PATCHES + remove-docs-and-examples.patch + no-undefined.patch +) +vcpkg_make_configure( + SOURCE_PATH "${SOURCE_PATH}" + AUTORECONF + OPTIONS + ac_cv_func_malloc_0_nonnull=yes + ac_cv_func_realloc_0_nonnull=yes + ac_cv_func_strtod=yes + WARNING_CFLAGS= +) +vcpkg_make_install() +vcpkg_fixup_pkgconfig() +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/debug/include" + "${CURRENT_PACKAGES_DIR}/debug/share" +) +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") diff --git a/ports/libdotconf/remove-docs-and-examples.patch b/ports/libdotconf/remove-docs-and-examples.patch new file mode 100644 index 00000000000000..9518132c5e8094 --- /dev/null +++ b/ports/libdotconf/remove-docs-and-examples.patch @@ -0,0 +1,9 @@ +diff --git a/Makefile.am b/Makefile.am +--- a/Makefile.am ++++ b/Makefile.am +@@ -1,4 +1,4 @@ +-SUBDIRS = doc examples src ++SUBDIRS = src + + pkgconfigdir = $(libdir)/pkgconfig + pkgconfig_DATA = dotconf.pc diff --git a/ports/libdotconf/vcpkg.json b/ports/libdotconf/vcpkg.json new file mode 100644 index 00000000000000..3327a28baa6b4c --- /dev/null +++ b/ports/libdotconf/vcpkg.json @@ -0,0 +1,14 @@ +{ + "name": "libdotconf", + "version": "1.4.1", + "description": "dot.conf configuration file parser", + "homepage": "https://github.com/williamh/dotconf", + "license": "LGPL-2.1-only", + "supports": "!uwp & !xbox", + "dependencies": [ + { + "name": "vcpkg-make", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 123bf8358dae25..b345d676d9b270 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -4856,6 +4856,10 @@ "baseline": "1.1.5", "port-version": 1 }, + "libdotconf": { + "baseline": "1.4.1", + "port-version": 0 + }, "libdshowcapture": { "baseline": "2025-02-08", "port-version": 0 diff --git a/versions/l-/libdotconf.json b/versions/l-/libdotconf.json new file mode 100644 index 00000000000000..e2a3f3acde859a --- /dev/null +++ b/versions/l-/libdotconf.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "2966c8a18463fc435695ad54c3be674ea2fab012", + "version": "1.4.1", + "port-version": 0 + } + ] +}