[nmap] msbuild (#33143)

* [nmap] msbuild

* cleanup

* port bump

* v db
This commit is contained in:
Alexander Neumann 2023-08-16 01:41:15 +02:00 committed by GitHub
parent 5ac6f3b37a
commit 628c0143b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 22 deletions

View File

@ -38,24 +38,11 @@ if(VCPKG_TARGET_IS_WINDOWS)
WORKING_DIRECTORY ${SOURCE_PATH}/mswin32
LOGNAME upgrade-Packet-${TARGET_TRIPLET}
)
# Build
vcpkg_build_msbuild(
PROJECT_PATH ${SOURCE_PATH}/mswin32/nmap.vcxproj
PLATFORM ${MSBUILD_PLATFORM}
USE_VCPKG_INTEGRATION
vcpkg_msbuild_install(
SOURCE_PATH "${SOURCE_PATH}"
PROJECT_SUBPATH mswin32/nmap.vcxproj
PLATFORM ${MSBUILD_PLATFORM}
)
# Install
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL Release)
file(INSTALL ${SOURCE_PATH}/mswin32/Release/nmap.exe
${SOURCE_PATH}/mswin32/Release/nmap.pdb
DESTINATION ${CURRENT_PACKAGES_DIR}/tools)
endif()
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL Debug)
file(INSTALL ${SOURCE_PATH}/mswin32/Debug/nmap.exe
${SOURCE_PATH}/mswin32/Debug/nmap.pdb
DESTINATION ${CURRENT_PACKAGES_DIR}/tools)
endif()
else()
set(ENV{LDFLAGS} "$ENV{LDFLAGS} -pthread")
set(OPTIONS --without-nmap-update --with-openssl=${CURRENT_INSTALLED_DIR} --with-libssh2=${CURRENT_INSTALLED_DIR} --with-libz=${CURRENT_INSTALLED_DIR} --with-libpcre=${CURRENT_INSTALLED_DIR})
@ -112,9 +99,7 @@ else()
set(SOURCE_PATH "${source_path_release}")
endif()
vcpkg_copy_pdbs()
# Handle copyright
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

View File

@ -1,7 +1,7 @@
{
"name": "nmap",
"version": "7.70",
"port-version": 9,
"port-version": 10,
"description": "A library for scanning network ports.",
"dependencies": [
{
@ -16,6 +16,11 @@
"name": "python2",
"platform": "windows"
},
{
"name": "vcpkg-msbuild",
"host": true,
"platform": "windows"
},
{
"name": "winpcap",
"platform": "windows"

View File

@ -5742,7 +5742,7 @@
},
"nmap": {
"baseline": "7.70",
"port-version": 9
"port-version": 10
},
"nmslib": {
"baseline": "2.1.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "fd1dcfaf73ff23b171247d76abdca50cd7f10f33",
"version": "7.70",
"port-version": 10
},
{
"git-tree": "6822fee19cc3071389e5a218c77e4ffadb963327",
"version": "7.70",