Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions ports/libdotconf/no-undefined.patch
Original file line number Diff line number Diff line change
@@ -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 \
26 changes: 26 additions & 0 deletions ports/libdotconf/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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
Comment on lines +15 to +16
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FTR the skipped checks are normally try-run configuration tests and a barrier for crossbuilds. They test whether these function return a valid pointer when called for zero (aka "compatible with GNU libc").
Answering "yes" means to either know the target platform, or to know that code does not rely on this particular property.
https://www.gnu.org/software/autoconf/manual/autoconf-2.60/html_node/Particular-Functions.html

ac_cv_func_strtod=yes
Comment thread
ethindp marked this conversation as resolved.
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")
9 changes: 9 additions & 0 deletions ports/libdotconf/remove-docs-and-examples.patch
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions ports/libdotconf/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions versions/l-/libdotconf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "2966c8a18463fc435695ad54c3be674ea2fab012",
"version": "1.4.1",
"port-version": 0
}
]
}