Spaces:
Build error
Build error
ac679290f788fd234d8a00e2e4bcc06939367a537dd3ea1ed746249542112036
Browse filesFiles changed (50)
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcanberra/gtk_dont_assume_x11.patchAdded+70
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcanberra/macos_fix.patchAdded+14
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcanberra/pkgconfig.patchAdded+12
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcanberra/portfile.cmakeAdded+92
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcanberra/undefined_reference.diffAdded+40
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcanberra/vcpkg.jsonAdded+53
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcbor/LibCborConfig.cmakeAdded+13
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcbor/portfile.cmakeAdded+29
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcbor/vcpkg.jsonAdded+7
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcds/001-cmake-install.patchAdded+32
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcds/002-lib-suffix-option.patchAdded+13
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcds/portfile.cmakeAdded+36
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcds/vcpkg.jsonAdded+11
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcerf/001-fix-static-build.patchAdded+13
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcerf/portfile.cmakeAdded+33
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcerf/vcpkg.jsonAdded+7
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfig/CMakeLists.txtAdded+53
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfig/portfile.cmakeAdded+54
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfig/vcpkg.jsonAdded+7
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfuse/CMakeLists.txtAdded+139
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfuse/config.h.inAdded+99
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfuse/portfile.cmakeAdded+40
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfuse/vcpkg.jsonAdded+7
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcopp/portfile.cmakeAdded+36
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcopp/vcpkg.jsonAdded+20
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcpplocate/fix-install-paths.patchAdded+39
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcpplocate/portfile.cmakeAdded+41
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcpplocate/vcpkg.jsonAdded+18
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcrafter/fix-build-error.patchAdded+20
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcrafter/portfile.cmakeAdded+26
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcrafter/vcpkg.jsonAdded+11
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcroco/CMakeLists.txtAdded+138
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcroco/portfile.cmakeAdded+33
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcroco/vcpkg.jsonAdded+10
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcuckoo/portfile.cmakeAdded+29
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcuckoo/vcpkg.jsonAdded+7
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcurl-simple-https/portfile.cmakeAdded+19
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcurl-simple-https/vcpkg.jsonAdded+18
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatachannel/0001-fix-for-vcpkg.patchAdded+75
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatachannel/portfile.cmakeAdded+49
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatachannel/uwp-warnings.patchAdded+14
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatachannel/vcpkg.jsonAdded+38
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatrie/CMakeLists.txtAdded+97
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatrie/config.h.cmakeAdded+87
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatrie/fix-exports.patchAdded+8
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatrie/portfile.cmakeAdded+40
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatrie/usageAdded+13
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatrie/vcpkg.jsonAdded+23
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdc1394/portfile.cmakeAdded+22
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdc1394/vcpkg.jsonAdded+10
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970From c0620e432650e81062c1967cc669829dbd29b310 Mon Sep 17 00:00:00 2001From: Michael Meeks <michael.meeks@suse.com>Date: Fri, 9 Nov 2012 16:16:40 +0000Subject: gtk: Don't assume all GdkDisplays are GdkX11Displays: broadway/wayland
--- src/canberra-gtk-module.c | 15 +++++++++++++++ src/canberra-gtk.c | 5 +++++ 2 files changed, 20 insertions(+)
diff --git a/src/canberra-gtk-module.c b/src/canberra-gtk-module.cindex 67791f0..c1532ab 100644--- a/src/canberra-gtk-module.c+++ b/src/canberra-gtk-module.c@@ -307,6 +307,11 @@ static gint window_get_desktop(GdkDisplay *d, GdkWindow *w) { guchar *data = NULL; gint ret = -1; +#ifdef GDK_IS_X11_DISPLAY+ if (!GDK_IS_X11_DISPLAY(d))+ return 0;+#endif+ if (XGetWindowProperty(GDK_DISPLAY_XDISPLAY(d), GDK_WINDOW_XID(w), gdk_x11_get_xatom_by_name_for_display(d, "_NET_WM_DESKTOP"), 0, G_MAXLONG, False, XA_CARDINAL, &type_return,@@ -335,6 +340,11 @@ static gint display_get_desktop(GdkDisplay *d) { guchar *data = NULL; gint ret = -1; +#ifdef GDK_IS_X11_DISPLAY+ if (!GDK_IS_X11_DISPLAY(d))+ return 0;+#endif+ if (XGetWindowProperty(GDK_DISPLAY_XDISPLAY(d), DefaultRootWindow(GDK_DISPLAY_XDISPLAY(d)), gdk_x11_get_xatom_by_name_for_display(d, "_NET_CURRENT_DESKTOP"), 0, G_MAXLONG, False, XA_CARDINAL, &type_return,@@ -365,6 +375,11 @@ static gboolean window_is_xembed(GdkDisplay *d, GdkWindow *w) { gboolean ret = FALSE; Atom xembed; +#ifdef GDK_IS_X11_DISPLAY+ if (!GDK_IS_X11_DISPLAY(d))+ return FALSE;+#endif+ /* Gnome Panel applets are XEMBED windows. We need to make sure we * ignore them */ diff --git a/src/canberra-gtk.c b/src/canberra-gtk.cindex 34446f5..08cb668 100644--- a/src/canberra-gtk.c+++ b/src/canberra-gtk.c@@ -185,6 +185,11 @@ static gint window_get_desktop(GdkDisplay *d, GdkWindow *w) { guchar *data = NULL; gint ret = -1; +#ifdef GDK_IS_X11_DISPLAY+ if (!GDK_IS_X11_DISPLAY(d))+ return 0;+#endif+ if (XGetWindowProperty(GDK_DISPLAY_XDISPLAY(d), GDK_WINDOW_XID(w), gdk_x11_get_xatom_by_name_for_display(d, "_NET_WM_DESKTOP"), 0, G_MAXLONG, False, XA_CARDINAL, &type_return,-- cgit v0.12
1234567891011121314diff --git a/configure.ac b/configure.acindex f68602d..1451747 100644--- a/configure.ac+++ b/configure.ac@@ -115,8 +115,7 @@ CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\ AC_SUBST([WARNINGFLAGS], $with_cflags) CC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\- -Wl,--as-needed \- -Wl,--gc-sections])+]) AC_SUBST([GCLDFLAGS], $with_ldflags) #### libtool stuff ####123456789101112diff --git a/libcanberra.pc.in b/libcanberra.pc.inindex 0a5c7a1..91a9e39 100644--- a/libcanberra.pc.in+++ b/libcanberra.pc.in@@ -7,5 +7,7 @@ Name: libcanberra Description: Event Sound API Version: @PACKAGE_VERSION@ Libs: -L${libdir} -lcanberra @PTHREAD_LIBS@+Libs.private: @LIBS_PRIVATE@ Cflags: -D_REENTRANT -I${includedir}+Cflags.private: @CFLAGS_PRIVATE@ Requires:1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192set(VERSION 0.30)
set(PATCHES
pkgconfig.patch
undefined_reference.diff # https://sources.debian.org/patches/libcanberra/0.30-7/
gtk_dont_assume_x11.patch # likewise
03_onlyshowin_unity.patch # likewise
)
if(VCPKG_TARGET_IS_OSX)
list(APPEND PATCHES macos_fix.patch)
endif()
if(VCPKG_TARGET_IS_OSX)
message("${PORT} currently requires the following libraries from the system package manager:\n automake\n libtool\n\nThey can be installed with brew install automake libtool")
else()
message("${PORT} currently requires the following libraries from the system package manager:\n automake\n libtool\n\nThey can be installed with apt-get install automake libtool")
endif()
vcpkg_download_distfile(ARCHIVE
URLS "http://0pointer.de/lennart/projects/${PORT}/${PORT}-${VERSION}.tar.xz"
FILENAME "${PORT}-${VERSION}.tar.xz"
SHA512 f7543582122256826cd01d0f5673e1e58d979941a93906400182305463d6166855cb51f35c56d807a56dc20b7a64f7ce4391368d24990c1b70782a7d0b4429c2
)
vcpkg_extract_source_archive_ex(
OUT_SOURCE_PATH SOURCE_PATH
ARCHIVE "${ARCHIVE}"
REF ${VERSION}
PATCHES ${PATCHES}
)
set(EXTRA_CPPFLAGS)
set(EXTRA_LDFLAGS)
#libltdl fixes
if(VCPKG_TARGET_IS_OSX)
execute_process(
COMMAND brew --prefix libtool
OUTPUT_VARIABLE BREW_LIBTOOL_PATH
)
string(STRIP ${BREW_LIBTOOL_PATH} BREW_LIBTOOL_PATH)
set(LIBS_PRIVATE "-L${BREW_LIBTOOL_PATH}/lib -lltdl")
set(CFLAGS_PRIVATE "-I${BREW_LIBTOOL_PATH}/include")
set(EXTRA_LDFLAGS "LDFLAGS=${LIBS_PRIVATE}")
set(EXTRA_CPPFLAGS "CPPFLAGS=${CFLAGS_PRIVATE}")
else()
set(LIBS_PRIVATE "-lltdl")
endif()
if (NOT "alsa" IN_LIST FEATURES)
list(APPEND FEATURES_BACKENDS "--disable-alsa")
endif()
if (NOT "gstreamer" IN_LIST FEATURES)
list(APPEND FEATURES_BACKENDS "--disable-gstreamer")
endif()
if (NOT "null" IN_LIST FEATURES)
list(APPEND FEATURES_BACKENDS "--disable-null")
endif()
if (NOT "oss" IN_LIST FEATURES)
list(APPEND FEATURES_BACKENDS "--disable-oss")
endif()
if (NOT "pulse" IN_LIST FEATURES)
list(APPEND FEATURES_BACKENDS "--disable-pulse")
endif()
set(ENV{GTKDOCIZE} true)
vcpkg_configure_make(
AUTOCONFIG
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
--disable-gtk-doc
--disable-lynx
--disable-silent-rules
--disable-tdb
${FEATURES_BACKENDS}
${EXTRA_CPPFLAGS}
${EXTRA_LDFLAGS}
)
vcpkg_install_make()
configure_file("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/${PORT}.pc" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/${PORT}.pc" @ONLY)
configure_file("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/${PORT}.pc" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/${PORT}.pc" @ONLY)
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/tools") # empty folder
file(INSTALL "${SOURCE_PATH}/LGPL" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)12345678910111213141516171819202122232425262728293031323334353637383940Description: Fix FTBFS with binutils-goldAuthor: Bart Martens <bartm@debian.org>Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=555081
--- a/src/Makefile.am+++ b/src/Makefile.am@@ -341,6 +341,7 @@ libcanberra_gtk3_la_CFLAGS = \ $(GTK3_CFLAGS) libcanberra_gtk3_la_LIBADD = \ $(GTK3_LIBS) \+ -lX11 \ libcanberra.la libcanberra_gtk3_la_LDFLAGS = \ -export-dynamic -version-info $(LIBCANBERRA_GTK_VERSION_INFO)@@ -351,6 +352,8 @@ libcanberra_gtk3_module_la_CFLAGS = \ $(GTK3_CFLAGS) libcanberra_gtk3_module_la_LIBADD = \ $(GTK3_LIBS) \+ -lX11 \+ -lgmodule-2.0 \ libcanberra.la \ libcanberra-gtk3.la libcanberra_gtk3_module_la_LDFLAGS = \@@ -379,6 +382,7 @@ libcanberra_gtk_la_CFLAGS = \ $(GTK_CFLAGS) libcanberra_gtk_la_LIBADD = \ $(GTK_LIBS) \+ -lX11 \ libcanberra.la libcanberra_gtk_la_LDFLAGS = \ -export-dynamic -version-info $(LIBCANBERRA_GTK_VERSION_INFO)@@ -389,6 +393,8 @@ libcanberra_gtk_module_la_CFLAGS = \ $(GTK_CFLAGS) libcanberra_gtk_module_la_LIBADD = \ $(GTK_LIBS) \+ -lX11 \+ -lgmodule-2.0 \ libcanberra.la \ libcanberra-gtk.la libcanberra_gtk_module_la_LDFLAGS = \1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253{ "name": "libcanberra", "version": "0.30", "port-version": 2, "description": "An implementation of the XDG Sound Theme and Name Specifications, for generating event sounds on free desktops", "homepage": "http://0pointer.de/lennart/projects/libcanberra/", "supports": "!(windows | uwp)", "dependencies": [ "libvorbis" ], "default-features": [ "defaults" ], "features": { "alsa": { "description": "Enable optional ALSA support" }, "defaults": { "description": "Default features", "dependencies": [ { "name": "libcanberra", "features": [ "null" ], "platform": "osx" }, { "name": "libcanberra", "features": [ "alsa" ], "platform": "linux" } ] }, "gstreamer": { "description": "Enable optional GStreamer support", "dependencies": [ "gstreamer" ] }, "null": { "description": "Enable optional null output" }, "oss": { "description": "Enable optional OSS support" }, "pulse": { "description": "Enable optional PulseAudio support" } }}12345678910111213# Distributed under the OSI-approved BSD 3-Clause License.
find_path(LIBCBOR_INCLUDE_DIR NAMES cbor.h)
find_library(LIBCBOR_LIBRARY cbor)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBCBOR DEFAULT_MSG LIBCBOR_LIBRARY LIBCBOR_INCLUDE_DIR)
if(LIBCBOR_FOUND)
set(LIBCBOR_LIBRARIES ${LIBCBOR_LIBRARY})
endif()
mark_as_advanced(LIBCBOR_INCLUDE_DIR LIBCBOR_LIBRARY)1234567891011121314151617181920212223242526272829vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO PJK/libcbor
REF v0.8.0
SHA512 694d2d3a78d80072f96e0afb73590ca1f3572e41d2117330ef4313ed06271743b048d3ba3259c6ffe9a802d5e441379d0e54787d1d42fed08dc81ac4f06c6dbc
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DWITH_TESTS=OFF
-DWITH_EXAMPLES=OFF
-DVCPKG_VERBOSE=ON
)
vcpkg_build_cmake()
vcpkg_install_cmake()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()
# Add Cmake Packagefile
file(COPY ${CMAKE_CURRENT_LIST_DIR}/LibCborConfig.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE.md ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)1234567{ "name": "libcbor", "version": "0.8.0", "port-version": 1, "description": "libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format", "homepage": "https://github.com/PJK/libcbor"}1234567891011121314151617181920212223242526272829303132diff --git a/CMakeLists.txt b/CMakeLists.txtindex d97ee07..f8affbb 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -34,6 +34,10 @@ if(APPLE) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_DARWIN_C_SOURCE") endif() +if(MSVC)+ add_definitions(-DCDS_BUILD_LIB)+endif()+ if(WITH_BOOST_ATOMIC) if(TARGET boost::atomic) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DCDS_USE_BOOST_ATOMIC")@@ -186,9 +190,13 @@ target_compile_options(${CDS_STATIC_LIBRARY} PUBLIC "${LIBCDS_PUBLIC_CXX_FLAGS}" target_compile_options(${CDS_SHARED_LIBRARY} PRIVATE "${LIBCDS_PRIVATE_CXX_FLAGS}") target_compile_options(${CDS_STATIC_LIBRARY} PRIVATE "${LIBCDS_PRIVATE_CXX_FLAGS}") -install(TARGETS ${CDS_SHARED_LIBRARY} EXPORT LibCDSConfig LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT ${LIBRARIES_COMPONENT} NAMELINK_SKIP RUNTIME DESTINATION lib${LIB_SUFFIX})-install(TARGETS ${CDS_SHARED_LIBRARY} EXPORT LibCDSConfig LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT ${HEADERS_COMPONENT} NAMELINK_ONLY)-install(TARGETS ${CDS_STATIC_LIBRARY} EXPORT LibCDSConfig DESTINATION lib${LIB_SUFFIX} COMPONENT ${LIBRARIES_COMPONENT})+if (NOT DISABLE_INSTALL_SHARED)+ install(TARGETS ${CDS_SHARED_LIBRARY} EXPORT LibCDSConfig RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT ${LIBRARIES_COMPONENT})+ #install(TARGETS ${CDS_SHARED_LIBRARY} EXPORT LibCDSConfig RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT ${HEADERS_COMPONENT} NAMELINK_ONLY)+endif() +if (NOT DISABLE_INSTALL_STATIC)+ install(TARGETS ${CDS_STATIC_LIBRARY} EXPORT LibCDSConfig DESTINATION lib${LIB_SUFFIX} COMPONENT ${LIBRARIES_COMPONENT})+endif() install(EXPORT LibCDSConfig FILE LibCDSConfig.cmake NAMESPACE LibCDS:: DESTINATION lib/cmake/LibCDS) install(DIRECTORY ${PROJECT_SOURCE_DIR}/cds DESTINATION include COMPONENT ${HEADERS_COMPONENT}) 12345678910111213diff --git a/CMakeLists.txt b/CMakeLists.txtindex aa287ff8..20fe7b49 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -118,7 +118,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_C if(CMAKE_TARGET_ARCHITECTURE STREQUAL "x86_64") list(APPEND LIBCDS_PUBLIC_CXX_FLAGS "-mcx16")- set(LIB_SUFFIX "64")+ set(LIB_SUFFIX "64" CACHE STRING "") # GCC-7: 128-bit atomics support is implemented via libatomic on amd64 # see https://gcc.gnu.org/ml/gcc/2017-01/msg00167.html123456789101112131415161718192021222324252627282930313233343536vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO khizmax/libcds REF v2.3.3 SHA512 95e67da4336d622d47bdf124d76827ca3e82e65ab5f725ccf58c2d7957960e7d17ee1ebb2126eed70f7a3ca1c97f840d9f59c1ae2eb80215d10abf70b215e510 HEAD_REF master PATCHES 001-cmake-install.patch 002-lib-suffix-option.patch)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" DISABLE_INSTALL_STATIC)string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" DISABLE_INSTALL_SHARED)
vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} PREFER_NINJA OPTIONS -DENABLE_UNIT_TEST=OFF -DENABLE_STRESS_TEST=OFF -DDISABLE_INSTALL_STATIC=${DISABLE_INSTALL_STATIC} -DDISABLE_INSTALL_SHARED=${DISABLE_INSTALL_SHARED} "-DLIB_SUFFIX=")
vcpkg_install_cmake()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/LibCDS)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libcds RENAME copyright)
vcpkg_copy_pdbs()1234567891011{ "name": "libcds", "version-string": "2.3.3", "port-version": 1, "description": "a collection of concurrent containers that don't require external (manual) synchronization for shared access, and safe memory reclamation (SMR) algorithms like Hazard Pointer and user-space RCU that is used as an epoch-based SMR.", "homepage": "https://github.com/khizmax/libcds", "dependencies": [ "boost-system", "boost-thread" ]}12345678910111213diff --git a/CMakeLists.txt b/CMakeLists.txt
index f79581f..4fc9457 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -56,6 +56,8 @@ if(MSVC)
# set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/$<CONFIG>)
if(BUILD_SHARED_LIBS)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
+ else()
+ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
endif()
else()
add_compile_options(-O2 -Wno-sign-compare -fno-omit-frame-pointer)123456789101112131415161718192021222324252627282930313233if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
set(BUILD_SHARED_LIBS ON)
else()
set(BUILD_SHARED_LIBS OFF)
endif()
vcpkg_download_distfile(ARCHIVE
URLS "https://jugit.fz-juelich.de/mlz/libcerf/uploads/924b8d245ad3461107ec630734dfc781/libcerf-1.13.tgz"
FILENAME "libcerf-1.13.tgz"
SHA512 4df711d3e9fd00de99959c3253a9565d1dc2c41f75a5800ced9c52f89cbd13185fbdca3ad75de788fd16c044082738ab345b7fb6a8820ac588edafe1812944aa
)
vcpkg_extract_source_archive_ex(
OUT_SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE}
PATCHES 001-fix-static-build.patch
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DCERF_CPP=ON
-DLIB_MAN=OFF
-DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
)
vcpkg_install_cmake()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libcerf RENAME copyright)
vcpkg_fixup_pkgconfig()1234567{ "name": "libcerf", "version-string": "1.13", "port-version": 2, "description": "A self-contained numeric library that provides an efficient and accurate implementation of complex error functions, along with Dawson, Faddeeva, and Voigt functions.", "homepage": "https://jugit.fz-juelich.de/mlz/libcerf"}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253cmake_minimum_required(VERSION 3.5.1)project(libconfig C CXX)
if(MSVC) add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS -DYY_NO_UNISTD_H -DYY_USE_CONST)endif()
set(C_SOURCES lib/grammar.c lib/libconfig.c lib/scanctx.c lib/scanner.c lib/strbuf.c lib/strvec.c lib/util.c lib/wincompat.c)
set(CPP_SOURCES lib/libconfigcpp.cc)
set(CMAKE_C_STANDARD 99)
include_directories(lib ${STDINT_H})
add_library(libconfig ${C_SOURCES})add_library(libconfig++ ${CPP_SOURCES})
if(BUILD_SHARED_LIBS) target_compile_definitions(libconfig PRIVATE -DLIBCONFIG_EXPORTS) target_compile_definitions(libconfig++ PRIVATE -DLIBCONFIGXX_EXPORTS)else() target_compile_definitions(libconfig PUBLIC -DLIBCONFIG_STATIC) target_compile_definitions(libconfig++ PUBLIC -DLIBCONFIGXX_STATIC)endif()
if (WIN32) # Linux doesn't have shlwapi target_link_libraries(libconfig shlwapi)endif()target_link_libraries(libconfig++ PRIVATE libconfig)
install( TARGETS libconfig libconfig++ RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
if(NOT DISABLE_INSTALL_HEADERS) install(FILES lib/libconfig.h++ lib/libconfig.h DESTINATION include)endif()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO hyperrealm/libconfig REF v1.7.3 SHA512 3749bf9eb29bab0f6b14f4fc759f0c419ed27a843842aaabed1ec1fbe0faa8c93322ff875ca1291d69cb28a39ece86d512aec42c2140d566c38c56dc616734f4 HEAD_REF master)
if (NOT VCPKG_USE_HEAD_VERSION) message("If you would like to use cmake with the port, use `--head` option with vcpkg install.") file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})endif()
if (NOT VCPKG_USE_HEAD_VERSION) vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} PREFER_NINJA OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON )else() vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} PREFER_NINJA OPTIONS -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF )endif()
vcpkg_install_cmake()
vcpkg_copy_pdbs()
if (VCPKG_USE_HEAD_VERSION) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/libconfig)endif()
foreach(FILE ${CURRENT_PACKAGES_DIR}/include/libconfig.h++ ${CURRENT_PACKAGES_DIR}/include/libconfig.h) file(READ ${FILE} _contents) string(REPLACE "defined(LIBCONFIGXX_EXPORTS)" "0" _contents "${_contents}") string(REPLACE "defined(LIBCONFIG_EXPORTS)" "0" _contents "${_contents}")
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic) string(REPLACE "defined(LIBCONFIGXX_STATIC)" "0" _contents "${_contents}") string(REPLACE "defined(LIBCONFIG_STATIC)" "0" _contents "${_contents}") else() string(REPLACE "defined(LIBCONFIGXX_STATIC)" "1" _contents "${_contents}") string(REPLACE "defined(LIBCONFIG_STATIC)" "1" _contents "${_contents}") endif() file(WRITE ${FILE} "${_contents}")endforeach()
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)1234567{ "name": "libconfig", "version-string": "1.7.3", "port-version": 1, "description": "C/C++ library for processing configuration files", "homepage": "https://github.com/hyperrealm/libconfig"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139cmake_minimum_required(VERSION 3.14)
set(ac_init_line_re "AC_INIT\\(([^,]+), ([^,]+), ([^,]+), ([^)]+)\\)")
file(STRINGS
${CMAKE_CURRENT_LIST_DIR}/configure.ac
ac_init_line
REGEX ${ac_init_line_re}
)
string(REGEX REPLACE "${ac_init_line_re}" "\\1" PACKAGE_NAME ${ac_init_line})
string(REGEX REPLACE "${ac_init_line_re}" "\\2" PACKAGE_VERSION ${ac_init_line})
string(REGEX REPLACE "${ac_init_line_re}" "\\3" PACKAGE_BUGREPORT ${ac_init_line})
string(REGEX REPLACE "${ac_init_line_re}" "\\4" PACKAGE ${ac_init_line})
set(PACKAGE_TARNAME ${PACKAGE})
set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
string(REGEX REPLACE "([0-9]+.[0-9]+.[0-9]+).*" "\\1" SEMANTIC_VERSION ${PACKAGE_VERSION})
project(libconfuse VERSION ${SEMANTIC_VERSION} LANGUAGES C)
include(CheckFunctionExists)
include(CheckIncludeFile)
include(GNUInstallDirs)
find_package(FLEX REQUIRED)
find_package(Gettext QUIET)
find_package(Intl QUIET)
set(CMAKE_DISABLE_SOURCE_CHANGES ON)
set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
if (GETTEXT_FOUND)
set(ENABLE_NLS 1)
endif ()
# libconfig.pc.in
set(prefix ${CMAKE_INSTALL_PREFIX})
set(exec_prefix ${prefix})
set(libdir ${prefix}/${CMAKE_INSTALL_LIBDIR})
set(includedir ${prefix}/${CMAKE_INSTALL_INCLUDEDIR})
set(VERSION ${PROJECT_VERSION})
if (Intl_FOUND AND Intl_LIBRARIES)
set(LTLIBINTL ${Intl_LIBRARIES})
endif ()
configure_file(libconfuse.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libconfuse.pc @ONLY)
check_function_exists(dcgettext HAVE_DCGETTEXT)
check_function_exists(fmemopen HAVE_FMEMOPEN)
check_function_exists(funopen HAVE_FUNOPEN)
check_function_exists(gettext HAVE_GETTEXT)
check_function_exists(iconv HAVE_ICONV)
check_function_exists(strcasecmp HAVE_STRCASECMP)
check_function_exists(strdup HAVE_STRDUP)
check_function_exists(_strdup HAVE__STRDUP)
check_function_exists(strndup HAVE_STRNDUP)
check_function_exists(setenv HAVE_SETENV)
check_function_exists(unsetenv HAVE_UNSETENV)
check_function_exists(_putenv HAVE__PUTENV)
if (MSVC)
check_function_exists(_fileno HAVE__FILENO)
check_function_exists(_isatty HAVE__ISATTY)
check_function_exists(_stricmp HAVE_STRCASECMP)
endif ()
check_include_file(stdlib.h HAVE_STDLIB_H)
check_include_file(string.h HAVE_STRING_H)
check_include_file(strings.h HAVE_STRINGS_H)
check_include_file(sys/stat.h HAVE_SYS_STAT_H)
check_include_file(sys/types.h HAVE_SYS_TYPES_H)
check_include_file(unistd.h HAVE_UNISTD_H)
check_include_file(windows.h HAVE_WINDOWS_H)
configure_file(config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
flex_target(
CONFUSE
src/lexer.l
${CMAKE_CURRENT_BINARY_DIR}/lexer.c
COMPILE_FLAGS -Pcfg_yy
)
set(libconfuse_sources
src/confuse.c
${FLEX_CONFUSE_OUTPUTS}
)
if (NOT HAVE_FMEMOPEN)
list(APPEND libconfuse_sources src/fmemopen.c)
endif ()
add_library(libconfuse ${libconfuse_sources})
if (BUILD_SHARED_LIBS)
if (WIN32)
target_compile_definitions(libconfuse PRIVATE BUILDING_DLL)
endif ()
else ()
target_compile_definitions(libconfuse PUBLIC BUILDING_STATIC)
endif ()
string(COMPARE EQUAL "${CMAKE_C_COMPILER_ID}" "GNU" USING_GNUC)
target_compile_definitions(libconfuse
PUBLIC
$<BUILD_INTERFACE:HAVE_CONFIG_H>
PRIVATE
$<$<BOOL:${MSVC}>:_CRT_SECURE_NO_WARNINGS>
$<$<BOOL:${MSVC}>:_CRT_NONSTDC_NO_DEPRECATE>
$<$<BOOL:${MSVC}>:strcasecmp=_stricmp>
$<$<BOOL:${USING_GNUC}>:_GNU_SOURCE>
)
target_include_directories(libconfuse
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/src>
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
set_target_properties(libconfuse PROPERTIES PUBLIC_HEADER src/confuse.h)
install(TARGETS libconfuse EXPORT unofficial-libconfuse-config)
install(
EXPORT unofficial-libconfuse-config
NAMESPACE unofficial::libconfuse::
DESTINATION share/unofficial-libconfuse
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
)
install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/libconfuse.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899/* Define if translation of program messages to the user's native
language is requested. */
#cmakedefine ENABLE_NLS
/* Define if you have the <stdlib.h> header file. */
#cmakedefine HAVE_STDLIB_H
/* Define if you have the <string.h> header file. */
#cmakedefine HAVE_STRING_H
/* Define if you have the <strings.h> header file. */
#cmakedefine HAVE_STRINGS_H
/* Define if you have the <sys/stat.h> header file. */
#cmakedefine HAVE_SYS_STAT_H
/* Define if you have the <sys/types.h> header file. */
#cmakedefine HAVE_SYS_TYPES_H
/* Define if you have the <unistd.h> header file. */
#cmakedefine HAVE_UNISTD_H
/* Define if you have the <windows.h> header file. */
#cmakedefine HAVE_WINDOWS_H
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define if you have the `_fileno' function. */
#cmakedefine HAVE__FILENO
/* Define if you have the `_isatty' function. */
#cmakedefine HAVE__ISATTY
/* Define if the GNU dcgettext() function is already present or preinstalled. */
#cmakedefine HAVE_DCGETTEXT
/* Define if you have the `fmemopen' function. */
#cmakedefine HAVE_FMEMOPEN
/* Define if you have the `funopen' function. */
#cmakedefine HAVE_FUNOPEN
/* Define if the GNU gettext() function is already present or preinstalled. */
#cmakedefine HAVE_GETTEXT
/* Define if you have the iconv() function. */
#cmakedefine HAVE_ICONV
/* Define if you have the `strcasecmp' function. */
#cmakedefine HAVE_STRCASECMP
/* Define if you have the `strdup' function. */
#cmakedefine HAVE_STRDUP
/* Define if you have the `_strdup' function. */
#cmakedefine HAVE__STRDUP
/* Define if you have the strndup function */
#cmakedefine HAVE_STRNDUP
/* Define if you have the `setenv' function. */
#cmakedefine HAVE_SETENV
/* Define if you have the `unsetenv' function. */
#cmakedefine HAVE_UNSETENV
/* Define if you have the `_putenv' function. */
#cmakedefine HAVE__PUTENV
/* Define if `lex' declares `yytext' as a `char *' by default, not a
`char[]'. */
/*#undef YYTEXT_POINTER*/
/* Define to empty if `const' does not conform to ANSI C. */
/*#undef const*/
/* Name of package */
#define PACKAGE "@PACKAGE@"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "@PACKAGE_BUGREPORT@"
/* Define to the full name of this package. */
#define PACKAGE_NAME "@PACKAGE_NAME@"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "@PACKAGE_STRING@"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "@PACKAGE_TARNAME@"
/* Define to the version of this package. */
#define PACKAGE_VERSION "@PACKAGE_VERSION@"
/* Version number of package */
#define VERSION "@PACKAGE_VERSION@"
#define LOCALEDIR "@CMAKE_INSTALL_LOCALEDIR@"12345678910111213141516171819202122232425262728293031323334353637383940vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO martinh/libconfuse
REF 67e1207c8de440525a3fdde1448a586791ebc052
SHA512 15d4eb0640fe74cc90910820715a70b2f944d2ed9753cca3be90f0ac6840beeda6a370b0624588d81ed2def2f8463e404473721351a685af711cf1d59efb870a
HEAD_REF master
)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.h.in DESTINATION ${SOURCE_PATH})
vcpkg_find_acquire_program(FLEX)
get_filename_component(FLEX_DIR ${FLEX} DIRECTORY)
vcpkg_add_to_path(${FLEX_DIR})
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
)
vcpkg_install_cmake()
vcpkg_copy_pdbs()
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
vcpkg_replace_string(
${CURRENT_PACKAGES_DIR}/include/confuse.h
"ifdef BUILDING_STATIC"
"if 1 // ifdef BUILDING_STATIC"
)
endif()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-${PORT} TARGET_PATH share/unofficial-${PORT})
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
vcpkg_fixup_pkgconfig()1234567{ "name": "libconfuse", "version-string": "2019-07-14", "port-version": 2, "description": "Small configuration file parser library for C", "homepage": "https://github.com/martinh/libconfuse"}123456789101112131415161718192021222324252627282930313233343536vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO owent/libcopp REF 1.4.1 SHA512 eba06bd2de7c9ee557cdd0bf79e0c53e37722b671347436322c14c99e94d955477bfc0980a4f59a5c31051e108f952ec96791024c45fa8eeaa5f7a49099dd8ae HEAD_REF v2)
# atframework/cmake-toolset needed as a submodule for configure cmakevcpkg_from_github( OUT_SOURCE_PATH ATFRAMEWORK_CMAKE_TOOLSET REPO atframework/cmake-toolset REF v1.3.5 SHA512 5048c204eb6358547d99712a06866836e1a6dc20dee44cc33fae77181bdf9ece5686f30062eff6a231e1ec898d5a37ebaddb243e7e3484c002bb96240aa496a5 HEAD_REF main )
vcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}" DISABLE_PARALLEL_CONFIGURE OPTIONS "-DATFRAMEWORK_CMAKE_TOOLSET_DIR=${ATFRAMEWORK_CMAKE_TOOLSET}")
vcpkg_cmake_install()
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/share/${PORT}")file(INSTALL "${SOURCE_PATH}/BOOST_LICENSE_1_0.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libcopp)vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/libcopp/libcopp-config.cmake" "set(\${CMAKE_FIND_PACKAGE_NAME}_SOURCE_DIR \"${SOURCE_PATH}\")" "")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")1234567891011121314151617181920{ "name": "libcopp", "version-semver": "1.4.1", "port-version": 1, "maintainers": "owent <admin@owent.net>", "description": "A cross-platfrom coroutine library for C++", "homepage": "https://github.com/owent/libcopp", "documentation": "https://libcopp.atframe.work/", "license": "MIT", "dependencies": [ { "name": "vcpkg-cmake", "host": true }, { "name": "vcpkg-cmake-config", "host": true } ]}123456789101112131415161718192021222324252627282930313233343536373839diff --git a/CMakeLists.txt b/CMakeLists.txtindex 854214c..9c4d98a 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -124,7 +124,7 @@ if("${CMAKE_INSTALL_PREFIX}" STREQUAL "/usr" OR "${CMAKE_INSTALL_PREFIX}" STREQU endif() # Installation paths-if(UNIX AND SYSTEM_DIR_INSTALL)+if(1) # Install into the system (/usr/bin or /usr/local/bin) set(INSTALL_ROOT "share/${project}") # /usr/[local]/share/<project> set(INSTALL_CMAKE "share/${project}/cmake") # /usr/[local]/share/<project>/cmakediff --git a/cpplocate-config.cmake b/cpplocate-config.cmakeindex 8693fa4..cdb2828 100644--- a/cpplocate-config.cmake+++ b/cpplocate-config.cmake@@ -26,7 +26,7 @@ macro(find_modules PREFIX) if(TARGET ${module_name}) set(MODULE_FOUND TRUE) else()- find_module("${CMAKE_CURRENT_LIST_DIR}/${PREFIX}/${module_name}/${module_name}-export.cmake")+ find_module("${CMAKE_CURRENT_LIST_DIR}/${module_name}-export.cmake") endif() endforeach(module_name) endmacro()diff --git a/liblocate-config.cmake b/liblocate-config.cmakeindex 3bf4823..7245353 100644--- a/liblocate-config.cmake+++ b/liblocate-config.cmake@@ -25,7 +25,7 @@ macro(find_modules PREFIX) if(TARGET ${module_name}) set(MODULE_FOUND TRUE) else()- find_module("${CMAKE_CURRENT_LIST_DIR}/${PREFIX}/${module_name}/${module_name}-export.cmake")+ find_module("${CMAKE_CURRENT_LIST_DIR}/${module_name}-export.cmake") endif() endforeach(module_name) endmacro()1234567891011121314151617181920212223242526272829303132333435363738394041vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO cginternals/cpplocate REF v2.3.0 SHA512 4028d552d0c3c0161d5dd5aea27bb22f0c61297a4b461a067c082cfcf84e3a709c9895453e750d819433529089011c2512293b2064c42bb5ba11f957eebc2206 HEAD_REF master PATCHES fix-install-paths.patch)
vcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}" OPTIONS -DOPTION_BUILD_TESTS=OFF)
vcpkg_cmake_install()vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup( PACKAGE_NAME cpplocate CONFIG_PATH share/cpplocate/cmake/cpplocate DO_NOT_DELETE_PARENT_CONFIG_PATH)
vcpkg_cmake_config_fixup( PACKAGE_NAME liblocate CONFIG_PATH share/cpplocate/cmake/liblocate)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/cpplocate/cmake")
# Patched liblocate config file needs moving to the correct directoryfile(RENAME "${CURRENT_PACKAGES_DIR}/share/cpplocate/liblocate-config.cmake" "${CURRENT_PACKAGES_DIR}/share/liblocate/liblocate-config.cmake")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)123456789101112131415161718{ "name": "libcpplocate", "version-semver": "2.3.0", "description": "Cross-platform C++ library providing tools for applications to locate themselves, their data assets as well as dependent modules.", "homepage": "https://cpplocate.org/", "license": "MIT", "supports": "!uwp", "dependencies": [ { "name": "vcpkg-cmake", "host": true }, { "name": "vcpkg-cmake-config", "host": true } ]}1234567891011121314151617181920diff --git a/libcrafter/configure.ac b/libcrafter/configure.ac
index 860d98b..b04ccce 100644
--- a/libcrafter/configure.ac
+++ b/libcrafter/configure.ac
@@ -35,14 +35,13 @@ AC_ARG_WITH(libpcap,
PCAPINC="-I$withval -I$withval/bpf"
PCAPLIB="-L$withval -lpcap"
elif test -f $withval/include/pcap.h -a \
- -f $withval/include/net/bpf.h -a \
-f $withval/lib/libpcap.a; then
owd=`pwd`
if cd $withval; then withval=`pwd`; cd $owd; fi
PCAPINC="-I$withval/include"
PCAPLIB="-L$withval/lib -lpcap"
else
- AC_ERROR(pcap.h, net/bpf.h, or libpcap.a not found in $withval)
+ AC_ERROR(pcap.h, or libpcap.a not found in $withval)
fi
;;
esac ],1234567891011121314151617181920212223242526vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO pellegre/libcrafter REF 86f81f101b5e3051ed04563b3ad3dd7a823afb21 #version-1.0 SHA512 bd0eac06896df63f0fff0ed3cf7ca5176e56615476c8134bd26f035692ab9e583f58f1f57daa7673771a710d6921c0c6a6473ab181982ad57727584f2cde56d0 HEAD_REF master PATCHES fix-build-error.patch)
vcpkg_configure_make( AUTOCONFIG SOURCE_PATH "${SOURCE_PATH}" PROJECT_SUBPATH libcrafter OPTIONS "--with-libpcap=${CURRENT_INSTALLED_DIR}")
vcpkg_install_make()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_copy_pdbs()vcpkg_fixup_pkgconfig()
# Handle copyrightfile(INSTALL "${SOURCE_PATH}/libcrafter/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)1234567891011{ "name": "libcrafter", "version": "1.0", "port-version": 2, "description": "Libcrafter is a high level library for C++ designed to create and decode network packets.", "homepage": "https://github.com/pellegre/libcrafter", "supports": "!windows", "dependencies": [ "libpcap" ]}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138cmake_minimum_required(VERSION 3.11)project(libcroco C)
find_package(Iconv REQUIRED)find_package(Intl REQUIRED)find_package(PkgConfig REQUIRED)pkg_check_modules(GLIB2 glib-2.0 gobject-2.0 gmodule-2.0 gio-2.0 IMPORTED_TARGET)find_package(LibXml2 REQUIRED)if(NOT WIN32) find_package(Threads REQUIRED)endif()find_path(GLIB_INCLUDE_DIR glib.h)
file(GLOB SOURCES src/cr-utils.c src/cr-utils.h src/cr-input.c src/cr-input.h src/cr-enc-handler.c src/cr-enc-handler.h src/cr-num.c src/cr-num.h src/cr-rgb.c src/cr-rgb.h src/cr-token.c src/cr-token.h src/cr-tknzr.c src/cr-tknzr.h src/cr-term.c src/cr-term.h src/cr-attr-sel.c src/cr-attr-sel.h src/cr-pseudo.c src/cr-pseudo.h src/cr-additional-sel.c src/cr-additional-sel.h src/cr-simple-sel.c src/cr-simple-sel.h src/cr-selector.c src/cr-selector.h src/cr-doc-handler.c src/cr-doc-handler.h src/cr-parser.c src/cr-parser.h src/cr-declaration.c src/cr-declaration.h src/cr-statement.c src/cr-statement.h src/cr-stylesheet.c src/cr-stylesheet.h src/cr-cascade.c src/cr-cascade.h src/cr-om-parser.c src/cr-om-parser.h src/cr-style.c src/cr-style.h src/cr-sel-eng.c src/cr-sel-eng.h src/cr-fonts.c src/cr-fonts.h src/cr-prop-list.c src/cr-prop-list.h src/cr-parsing-location.c src/cr-parsing-location.h src/cr-string.c src/cr-string.h src/libcroco.def)
set(CMAKE_DEBUG_POSTFIX "d")
add_library(croco-0.6 ${SOURCES})
target_include_directories(croco-0.6 PRIVATE ${GLIB_INCLUDE_DIRS} ${LIBXML2_INCLUDE_DIR})target_link_libraries(croco-0.6 PRIVATE PkgConfig::GLIB2 ${LIBXML2_LIBRARIES} ${Intl_LIBRARIES} Iconv::Iconv)
install(TARGETS croco-0.6 EXPORT libcroco-targets RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
install(FILES src/libcroco.h src/cr-additional-sel.h src/cr-attr-sel.h src/cr-cascade.h src/cr-declaration.h src/cr-doc-handler.h src/cr-enc-handler.h src/cr-input.h src/cr-num.h src/cr-om-parser.h src/cr-parser.h src/cr-pseudo.h src/cr-rgb.h src/cr-selector.h src/cr-simple-sel.h src/cr-statement.h src/cr-stylesheet.h src/cr-term.h src/cr-tknzr.h src/cr-token.h src/cr-utils.h src/cr-fonts.h src/cr-sel-eng.h src/cr-style.h src/cr-prop-list.h src/cr-parsing-location.h src/cr-string.h src/libcroco-config.h DESTINATION include/libcroco)
install( EXPORT libcroco-targets NAMESPACE unofficial::libcroco:: FILE unofficial-libcroco-targets.cmake DESTINATION share/unofficial-libcroco)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/unofficial-libcroco-config.cmake "include(CMakeFindDependencyMacro)find_dependency(Intl)find_dependency(Iconv)find_dependency(PkgConfig)pkg_check_modules(GLIB2 glib-2.0 gobject-2.0 gmodule-2.0 gio-2.0 IMPORTED_TARGET)find_dependency(LibXml2)if(NOT WIN32) find_dependency(Threads)endif()include(\${CMAKE_CURRENT_LIST_DIR}/unofficial-libcroco-targets.cmake)")install(FILES ${CMAKE_CURRENT_BINARY_DIR}/unofficial-libcroco-config.cmake DESTINATION share/unofficial-libcroco)123456789101112131415161718192021222324252627282930313233vcpkg_download_distfile(ARCHIVE
URLS "https://download.gnome.org/sources/libcroco/0.6/libcroco-0.6.13.tar.xz"
FILENAME "libcroco-0.6.13.tar.xz"
SHA512 038a3ac9d160a8cf86a8a88c34367e154ef26ede289c93349332b7bc449a5199b51ea3611cebf3a2416ae23b9e45ecf8f9c6b24ea6d16a5519b796d3c7e272d4
)
vcpkg_extract_source_archive_ex(
OUT_SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE}
)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
configure_file(${SOURCE_PATH}/config.h.win32 ${SOURCE_PATH}/src/config.h COPYONLY)
file(READ "${SOURCE_PATH}/src/libcroco.symbols" SYMBOLS)
string(REGEX REPLACE ";[^\n]*\n" "" DEF "EXPORTS\n${SYMBOLS}")
file(WRITE "${SOURCE_PATH}/src/libcroco.def" "${DEF}")
vcpkg_find_acquire_program(PKGCONFIG)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-libcroco TARGET_PATH share/unofficial-libcroco)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
# Handle copyright
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libcroco RENAME copyright)
vcpkg_copy_pdbs()12345678910{ "name": "libcroco", "version": "0.6.13", "port-version": 3, "description": "A standalone css2 parsing and manipulation library", "dependencies": [ "glib", "libxml2" ]}1234567891011121314151617181920212223242526272829# Header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO efficient/libcuckoo
REF 8785773896d74f72b6224e59d37f5f8c3c1e022a
SHA512 e47f8fd132ee2acf347ee375759f96235cd090fdb825792f994ff5eb4d8fed55b8e8bea8d293ec96c1a5f1b46d19c6648eaf2482e482b7b9c0d6dc734bc2121d
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DBUILD_EXAMPLES=OFF
-DBUILD_TESTS=OFF
-DBUILD_STRESS_TESTS=OFF
-DBUILD_UNIT_TESTS=OFF
-DBUILD_UNIVERSAL_BENCHMARK=OFF
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/${PORT})
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)1234567{ "name": "libcuckoo", "version-string": "0.3", "port-version": 1, "description": "A high-performance, concurrent hash table", "homepage": "https://github.com/efficient/libcuckoo"}12345678910111213141516171819vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO SamuelMarks/curl-simple-https REF 5a115053ba4d249fc1af22c3673b4d014e56bcf5 SHA512 6274bfeec5235d39c627850b1b6ef03c3f1982c74f937b604137cf3cf87e982f971c4681760b42926a3fb15bc8268f2fa48c197919516066d73f53425aa24545 HEAD_REF master)
vcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}" OPTIONS "-DBUILD_CLI=OFF")vcpkg_cmake_install()file(INSTALL "${SOURCE_PATH}/cmake/License.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")123456789101112131415161718{ "name": "libcurl-simple-https", "version-date": "2022-02-14", "description": "Very simple HTTPS interface built atop libcurl", "license": "Apache-2.0 OR MIT", "supports": "!uwp", "dependencies": [ "curl", { "name": "vcpkg-cmake", "host": true }, { "name": "vcpkg-cmake-config", "host": true } ]}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475diff --git a/CMakeLists.txt b/CMakeLists.txtindex c0e59d1..1d71e38 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -28,7 +28,6 @@ endif() set(CMAKE_POSITION_INDEPENDENT_CODE ON) set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules)-set(BUILD_SHARED_LIBS OFF) # to force usrsctp to be built static if(WIN32) add_definitions(-DWIN32_LEAN_AND_MEAN)@@ -197,12 +196,13 @@ set(CMAKE_THREAD_PREFER_PTHREAD TRUE) set(THREADS_PREFER_PTHREAD_FLAG TRUE) find_package(Threads REQUIRED) -set(CMAKE_POLICY_DEFAULT_CMP0048 NEW)-add_subdirectory(deps/plog EXCLUDE_FROM_ALL)+find_library(USRSCTP_LIBRARY usrsctp REQUIRED)+find_path(PLOG_INCLUDE_DIRS "plog/Appenders/AndroidAppender.h") if(SCTP_DEBUG) add_definitions(-DSCTP_DEBUG) endif()+if(0) option(sctp_build_programs 0) option(sctp_build_shared_lib 0) set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)@@ -214,8 +214,9 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU") target_compile_options(usrsctp PRIVATE -Wno-error=format-truncation) endif() add_library(Usrsctp::Usrsctp ALIAS usrsctp)+endif() -add_library(datachannel SHARED+add_library(datachannel ${LIBDATACHANNEL_SOURCES} ${LIBDATACHANNEL_HEADERS} ${LIBDATACHANNEL_IMPL_SOURCES}@@ -239,16 +240,18 @@ target_include_directories(datachannel PUBLIC $<INSTALL_INTERFACE:include>) target_include_directories(datachannel PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include/rtc) target_include_directories(datachannel PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src)+target_include_directories(datachannel PRIVATE ${PLOG_INCLUDE_DIRS}) target_link_libraries(datachannel PRIVATE Threads::Threads)-target_link_libraries(datachannel PRIVATE Usrsctp::Usrsctp plog::plog)+target_link_libraries(datachannel PRIVATE ${USRSCTP_LIBRARY}) target_include_directories(datachannel-static PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>) target_include_directories(datachannel-static PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include/rtc) target_include_directories(datachannel-static PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src)+target_include_directories(datachannel PRIVATE ${PLOG_INCLUDE_DIRS}) target_link_libraries(datachannel-static PRIVATE Threads::Threads)-target_link_libraries(datachannel-static PRIVATE Usrsctp::Usrsctp plog::plog)+target_link_libraries(datachannel-static PRIVATE ${USRSCTP_LIBRARY}) if(WIN32) target_link_libraries(datachannel PUBLIC ws2_32) # winsock2@@ -351,11 +354,11 @@ else() target_link_libraries(datachannel PRIVATE LibJuice::LibJuice) target_link_libraries(datachannel-static PRIVATE LibJuice::LibJuice) else()- add_subdirectory(deps/libjuice EXCLUDE_FROM_ALL)+ find_package(LibJuice CONFIG REQUIRED) target_compile_definitions(datachannel PRIVATE RTC_SYSTEM_JUICE=0) target_compile_definitions(datachannel-static PRIVATE RTC_SYSTEM_JUICE=0)- target_link_libraries(datachannel PRIVATE LibJuice::LibJuiceStatic)- target_link_libraries(datachannel-static PRIVATE LibJuice::LibJuiceStatic)+ target_link_libraries(datachannel PRIVATE LibJuice::LibJuice)+ target_link_libraries(datachannel-static PRIVATE LibJuice::LibJuice) endif() endif() 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849set(PATCHES 0001-fix-for-vcpkg.patch)
if(VCPKG_TARGET_IS_UWP)
list(APPEND PATCHES uwp-warnings.patch)
endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO paullouisageneau/libdatachannel
REF 127f157fc00abeb6fe5a57ce56a7c4e092721203 #v0.16.4
SHA512 ef7d1f652af031c13260a4c436c949eb566d40d15dcde5b56ab782e9e9d7b5e287f4a6a61bc4eb3fcdbb835c102637b0368f3c43af6f9fa9c87cd99d15bde454
HEAD_REF master
PATCHES
${PATCHES}
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
stdcall CAPI_STDCALL
INVERTED_FEATURES
ws NO_WEBSOCKET
srtp NO_MEDIA
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${FEATURE_OPTIONS}
-DUSE_SYSTEM_SRTP=ON
-DNO_EXAMPLES=ON
-DNO_TESTS=ON
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME LibDataChannel CONFIG_PATH lib/cmake/LibDataChannel)
vcpkg_fixup_pkgconfig()
file(READ "${CURRENT_PACKAGES_DIR}/share/LibDataChannel/LibDataChannelConfig.cmake" DATACHANNEL_CONFIG)
file(WRITE "${CURRENT_PACKAGES_DIR}/share/LibDataChannel/LibDataChannelConfig.cmake" "
include(CMakeFindDependencyMacro)
find_dependency(Threads)
find_dependency(OpenSSL)
find_dependency(LibJuice)
${DATACHANNEL_CONFIG}")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)1234567891011121314diff --git a/CMakeLists.txt b/CMakeLists.txt
index b79b458..790bf95 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -385,6 +385,9 @@ if(WARNINGS_AS_ERRORS)
endif()
endif()
+target_compile_options(datachannel PRIVATE /wd4996)
+target_compile_options(datachannel-static PRIVATE /wd4996)
+
install(TARGETS datachannel EXPORT LibDataChannelTargets
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib1234567891011121314151617181920212223242526272829303132333435363738{ "name": "libdatachannel", "version-semver": "0.16.4", "port-version": 1, "description": "libdatachannel is a standalone implementation of WebRTC Data Channels, WebRTC Media Transport, and WebSockets in C++17 with C bindings for POSIX platforms (including GNU/Linux, Android, and Apple macOS) and Microsoft Windows.", "homepage": "https://github.com/paullouisageneau/libdatachannel", "dependencies": [ "libjuice", "openssl", "plog", "usrsctp", { "name": "vcpkg-cmake", "host": true }, { "name": "vcpkg-cmake-config", "host": true } ], "default-features": [ "ws" ], "features": { "srtp": { "description": "Use Cisco's libSRTP for media transport.", "dependencies": [ "libsrtp" ] }, "stdcall": { "description": "Use stdcall convention in callbacks" }, "ws": { "description": "Web Socket support" } }}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697cmake_minimum_required(VERSION 3.22)project(libdatrie LANGUAGES C)
option(SKIP_HEADERS "Skip headers" OFF)option(SKIP_TOOL "Skip tool" OFF)option(BUILD_SHARED_LIBS "Build shared libs" OFF)
set(LIB_SRCS datrie/alpha-map.c datrie/darray.c datrie/dstring.c datrie/fileutils.c datrie/tail.c datrie/trie.c datrie/trie-string.c)
set(LIB_HDRS datrie/alpha-map.h datrie/trie.h datrie/triedefs.h datrie/typedefs.h)
if(WIN32) list(APPEND LIB_SRCS datrie/libdatrie.def)endif()
include(CheckIncludeFile)include(CheckFunctionExists)
set(STDC_HEADERS 1)check_include_file(dlfcn.h HAVE_DLFCN_H)check_include_file(inttypes.h HAVE_INTTYPES_H)check_include_file(limits.h HAVE_LIMITS_H)check_include_file(memory.h HAVE_MEMORY_H)check_include_file(stdint.h HAVE_STDINT_H)check_include_file(stdio.h HAVE_STDIO_H)check_include_file(stdlib.h HAVE_STDLIB_H)check_include_file(strings.h HAVE_STRINGS_H)check_include_file(string.h HAVE_STRING_H)check_include_file(sys/stat.h HAVE_SYS_STAT_H)check_include_file(sys/types.h HAVE_SYS_TYPES_H)check_include_file(unistd.h HAVE_UNISTD_H)
check_function_exists(nl_langinfo HAVE_LANGINFO_CODESET)check_function_exists(locale_charset HAVE_LOCALE_CHARSET)check_function_exists(malloc HAVE_MALLOC)
configure_file(config.h.cmake config.h)
include_directories( "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}")
add_library(libdatrie ${LIB_SRCS})set_target_properties(libdatrie PROPERTIES OUTPUT_NAME "datrie")
if(MSVC) add_definitions(-D_CRT_SECURE_NO_WARNINGS) add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)endif()
if (NOT SKIP_TOOL) add_executable(trietool "tools/trietool.c" ) find_package(Iconv REQUIRED) target_link_libraries(trietool PRIVATE libdatrie Iconv::Iconv) install( TARGETS trietool RUNTIME DESTINATION bin )endif()
install( TARGETS libdatrie RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
if (NOT SKIP_HEADERS) install( FILES ${LIB_HDRS} DESTINATION "include/datrie" )endif()
set(prefix "${CMAKE_INSTALL_PREFIX}")set(exec_prefix "\${prefix}")set(libdir "\${prefix}/lib")set(includedir "\${prefix}/include")configure_file(datrie-0.2.pc.in datrie-0.2.pc)install( FILES "${CMAKE_CURRENT_BINARY_DIR}/datrie-0.2.pc" DESTINATION "lib/pkgconfig")123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687/* config.h.in. Generated from configure.ac by autoheader. */
/* Define to 1 if you have the <dlfcn.h> header file. */#cmakedefine HAVE_DLFCN_H
/* Define to 1 if you have the <inttypes.h> header file. */#cmakedefine HAVE_INTTYPES_H
/* Have nl_langinfo (CODESET) */#cmakedefine HAVE_LANGINFO_CODESET
/* Define to 1 if you have the <limits.h> header file. */#cmakedefine HAVE_LIMITS_H
/* Have locale_charset() */#cmakedefine HAVE_LOCALE_CHARSET
/* Define to 1 if your system has a GNU libc compatible `malloc' function, and to 0 otherwise. */#cmakedefine HAVE_MALLOC
/* Define to 1 if you have the <memory.h> header file. */#cmakedefine HAVE_MEMORY_H
/* Define to 1 if you have the <stdint.h> header file. */#cmakedefine HAVE_STDINT_H
/* Define to 1 if you have the <stdio.h> header file. */#cmakedefine HAVE_STDIO_H
/* Define to 1 if you have the <stdlib.h> header file. */#cmakedefine HAVE_STDLIB_H
/* Define to 1 if you have the <strings.h> header file. */#cmakedefine HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */#cmakedefine HAVE_STRING_H
/* Define to 1 if you have the <sys/stat.h> header file. */#cmakedefine HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/types.h> header file. */#cmakedefine HAVE_SYS_TYPES_H
/* Define to 1 if you have the <unistd.h> header file. */#cmakedefine HAVE_UNISTD_H
/* Define to the sub-directory in which libtool stores uninstalled libraries. */#cmakedefine LT_OBJDIR
/* Name of package */#define PACKAGE "libdatrie"
/* Define to the address where bug reports for this package should be sent. */#cmakedefine PACKAGE_BUGREPORT
/* Define to the full name of this package. */#define PACKAGE_NAME "libdatrie"
/* Define to the full name and version of this package. */#cmakedefine PACKAGE_STRING
/* Define to the one symbol short name of this package. */#cmakedefine PACKAGE_TARNAME
/* Define to the home page for this package. */#define PACKAGE_URL "https://linux.thai.net/~thep/datrie/datrie.html"
/* Define to the version of this package. */#cmakedefine PACKAGE_VERSION
/* Define to 1 if you have the ANSI C header files. */#cmakedefine STDC_HEADERS 1
/* Version number of package */#cmakedefine VERSION "@VERSION@"
/* Define to empty if `const' does not conform to ANSI C. */#cmakedefine const
/* Define to rpl_malloc if the replacement function should be used. */#cmakedefine malloc
/* Define to `unsigned int' if <sys/types.h> does not define. */#cmakedefine size_t12345678diff -Naur ./a/libdatrie.def ./b/libdatrie.def--- a/datrie/libdatrie.def 2013-10-17 06:27:57.000000000 +0300+++ b/datrie/libdatrie.def 2017-12-21 02:42:39.873879000 +0300@@ -1,3 +1,4 @@+EXPORTS alpha_map_new alpha_map_clone alpha_map_free12345678910111213141516171819202122232425262728293031323334353637383940set(LIBDATRIE_VERSION 0.2.13)
vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO tlwg/libdatrie REF v${LIBDATRIE_VERSION} SHA512 38f5a3ee1f3ca0f0601a5fcfeec3892cb34857d4b4720b8e018ca1beb6520c4c10af3bd2f0e4d64367cb256e8e2bca4d0a59b1c81fb36782613d2c258b64df59 HEAD_REF master PATCHES fix-exports.patch)
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")file(COPY "${CMAKE_CURRENT_LIST_DIR}/config.h.cmake" DESTINATION "${SOURCE_PATH}")
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS INVERTED_FEATURES tool SKIP_TOOL)
vcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}" OPTIONS -DVERSION=${LIBDATRIE_VERSION} ${FEATURE_OPTIONS} OPTIONS_DEBUG -DSKIP_TOOL=ON -DSKIP_HEADERS=ON)
vcpkg_cmake_install()vcpkg_copy_pdbs()vcpkg_fixup_pkgconfig()
if(NOT SKIP_TOOL) vcpkg_copy_tools(TOOL_NAMES trietool AUTO_CLEAN)endif()
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)12345678910111213The package libdatrie can be used via CMake:
find_path(LIBDATRIE_INCLUDE_DIR datrie/trie.h)
find_library(LIBDATRIE_LIBRARY NAMES datrie)
target_include_directories(main PRIVATE "${LIBDATRIE_INCLUDE_DIR}")
target_link_libraries(main PRIVATE "${LIBDATRIE_LIBRARY}")
The package libdatrie can be imported via CMake FindPkgConfig module:
find_package(PkgConfig)
pkg_check_modules(LIBDATRIE REQUIRED IMPORTED_TARGET datrie-0.2)
target_link_libraries(main PRIVATE PkgConfig::LIBDATRIE)1234567891011121314151617181920212223{ "name": "libdatrie", "version": "0.2.13", "port-version": 1, "description": "Implementation of double-array structure for representing trie", "homepage": "https://linux.thai.net/pub/ThaiLinux/software/libthai", "license": "LGPL-2.1-or-later", "dependencies": [ { "name": "vcpkg-cmake", "host": true } ], "features": { "tool": { "description": "Build the trietool application", "supports": "!uwp", "dependencies": [ "libiconv" ] } }}12345678910111213141516171819202122set(LIBDC1394_VER "2.2.6")
vcpkg_from_sourceforge( OUT_SOURCE_PATH SOURCE_PATH REPO libdc1394/libdc1394-2 REF "${LIBDC1394_VER}" FILENAME "libdc1394-${LIBDC1394_VER}.tar.gz" SHA512 2d60ed1054da67d8518e870193b60c1d79778858f48cc6487e252de00cc57a08548515d41914a37d0227d29e158d68892c290f83930ffd95f4a483dce5aa3d25)
vcpkg_configure_make( SOURCE_PATH "${SOURCE_PATH}" OPTIONS "--disable-examples")vcpkg_install_make()vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
# Handle copyrightfile(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)12345678910{ "name": "libdc1394", "version": "2.2.6", "description": "libdc1394 is a library that provides a complete high level application programming interface (API) for developers who wish to control IEEE 1394 based cameras that conform to the 1394-based Digital Camera Specifications (also known as the IIDC or DCAM Specifications).", "homepage": "https://damien.douxchamps.net/ieee1394/libdc1394", "supports": "!windows", "dependencies": [ "sdl1" ]}third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcanberra/gtk_dont_assume_x11.patchAdded+70
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcanberra/macos_fix.patchAdded+14
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcanberra/pkgconfig.patchAdded+12
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcanberra/portfile.cmakeAdded+92
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcanberra/undefined_reference.diffAdded+40
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcanberra/vcpkg.jsonAdded+53
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcbor/LibCborConfig.cmakeAdded+13
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcbor/portfile.cmakeAdded+29
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcbor/vcpkg.jsonAdded+7
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcds/001-cmake-install.patchAdded+32
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcds/002-lib-suffix-option.patchAdded+13
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcds/portfile.cmakeAdded+36
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcds/vcpkg.jsonAdded+11
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcerf/001-fix-static-build.patchAdded+13
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcerf/portfile.cmakeAdded+33
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcerf/vcpkg.jsonAdded+7
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfig/CMakeLists.txtAdded+53
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfig/portfile.cmakeAdded+54
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfig/vcpkg.jsonAdded+7
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfuse/CMakeLists.txtAdded+139
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfuse/config.h.inAdded+99
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfuse/portfile.cmakeAdded+40
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfuse/vcpkg.jsonAdded+7
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcopp/portfile.cmakeAdded+36
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcopp/vcpkg.jsonAdded+20
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcpplocate/fix-install-paths.patchAdded+39
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcpplocate/portfile.cmakeAdded+41
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcpplocate/vcpkg.jsonAdded+18
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcrafter/fix-build-error.patchAdded+20
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcrafter/portfile.cmakeAdded+26
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcrafter/vcpkg.jsonAdded+11
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcroco/CMakeLists.txtAdded+138
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcroco/portfile.cmakeAdded+33
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcroco/vcpkg.jsonAdded+10
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcuckoo/portfile.cmakeAdded+29
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcuckoo/vcpkg.jsonAdded+7
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcurl-simple-https/portfile.cmakeAdded+19
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcurl-simple-https/vcpkg.jsonAdded+18
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatachannel/0001-fix-for-vcpkg.patchAdded+75
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatachannel/portfile.cmakeAdded+49
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatachannel/uwp-warnings.patchAdded+14
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatachannel/vcpkg.jsonAdded+38
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatrie/CMakeLists.txtAdded+97
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatrie/config.h.cmakeAdded+87
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatrie/fix-exports.patchAdded+8
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatrie/portfile.cmakeAdded+40
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatrie/usageAdded+13
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatrie/vcpkg.jsonAdded+23
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdc1394/portfile.cmakeAdded+22
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdc1394/vcpkg.jsonAdded+10