mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 17:13:02 +08:00
[vcpkg baseline][libmicrohttpd] Control dependencies, doc, examples, test (#17653)
* Quote filepath expressions * Add mingw support * Disable https, doc, examples, (curl) tests * Declare gettext dependency * x-add-version * Disable gnutls in addition to disabling https * x-add-version
This commit is contained in:
parent
ca466d339e
commit
38e7e0367e
@ -1,6 +0,0 @@
|
||||
Source: libmicrohttpd
|
||||
Version: 0.9.63
|
||||
Port-Version: 5
|
||||
Homepage: https://www.gnu.org/software/libmicrohttpd/
|
||||
Description: GNU libmicrohttpd is a small C library that is supposed to make it easy to run an HTTP server as part of another application
|
||||
Supports: !(arm|uwp)
|
@ -11,12 +11,12 @@ vcpkg_download_distfile(ARCHIVE
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive_ex(
|
||||
ARCHIVE ${ARCHIVE}
|
||||
ARCHIVE "${ARCHIVE}"
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
PATCHES fix-msvc-project.patch
|
||||
)
|
||||
|
||||
if (VCPKG_TARGET_IS_WINDOWS)
|
||||
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
||||
set(CFG_SUFFIX "dll")
|
||||
else()
|
||||
@ -30,19 +30,25 @@ if (VCPKG_TARGET_IS_WINDOWS)
|
||||
DEBUG_CONFIGURATION "Debug-${CFG_SUFFIX}"
|
||||
)
|
||||
|
||||
file(GLOB MICROHTTPD_HEADERS ${SOURCE_PATH}/src/include/microhttpd*.h)
|
||||
file(COPY ${MICROHTTPD_HEADERS} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
||||
file(GLOB MICROHTTPD_HEADERS "${SOURCE_PATH}/src/include/microhttpd*.h")
|
||||
file(COPY ${MICROHTTPD_HEADERS} DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
||||
else()
|
||||
if(VCPKG_TARGET_IS_OSX AND VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
set(ENV{LIBS} "$ENV{LIBS} -framework Foundation -framework AppKit") # TODO: Get this from the extracted cmake vars somehow
|
||||
endif()
|
||||
vcpkg_configure_make(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
--disable-doc
|
||||
--disable-examples
|
||||
--disable-curl
|
||||
--disable-https
|
||||
--with-gnutls=no
|
||||
)
|
||||
|
||||
vcpkg_install_make()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
endif()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
14
ports/libmicrohttpd/vcpkg.json
Normal file
14
ports/libmicrohttpd/vcpkg.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "libmicrohttpd",
|
||||
"version": "0.9.63",
|
||||
"port-version": 6,
|
||||
"description": "GNU libmicrohttpd is a small C library that is supposed to make it easy to run an HTTP server as part of another application",
|
||||
"homepage": "https://www.gnu.org/software/libmicrohttpd/",
|
||||
"supports": "!(arm | uwp)",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "gettext",
|
||||
"platform": "!windows"
|
||||
}
|
||||
]
|
||||
}
|
@ -3278,7 +3278,7 @@
|
||||
},
|
||||
"libmicrohttpd": {
|
||||
"baseline": "0.9.63",
|
||||
"port-version": 5
|
||||
"port-version": 6
|
||||
},
|
||||
"libmikmod": {
|
||||
"baseline": "3.3.11.1-8",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "c221d15de1cc1eedc33f912269d69d5ade11e3c1",
|
||||
"version": "0.9.63",
|
||||
"port-version": 6
|
||||
},
|
||||
{
|
||||
"git-tree": "da43ec88147e3aa99a5d4e7378f0011a92a25ad2",
|
||||
"version-string": "0.9.63",
|
||||
|
Loading…
Reference in New Issue
Block a user