mirror of
https://github.com/microsoft/vcpkg.git
synced 2026-01-18 01:11:23 +01:00
[libharu] Fix x64-linux-dynamic (#38551)
Fixes #32493 Without this fix, vtk doesn't compile. Before, HPDF_DLL was forced for shared library. But enabling HPDF_DLL will prefix all functions with `__stdcall`. This should be done only for Windows. - [X] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [X] SHA512s are updated for each updated download. - [ ] ~~The "supports" clause reflects platforms that may be fixed by this new version.~~ - [X] Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file. - [X] Any patches that are no longer applied are deleted from the port's directory. - [X] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [X] Only one version is added to each modified port's versions file.
This commit is contained in:
committed by
GitHub
parent
44fb94f7a1
commit
e22c90648c
@@ -41,21 +41,24 @@ file(REMOVE_RECURSE
|
||||
)
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
file(READ "${CURRENT_PACKAGES_DIR}/include/hpdf.h" _contents)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
||||
string(REPLACE "#ifdef HPDF_DLL\n" "#if 1\n" _contents "${_contents}")
|
||||
else()
|
||||
string(REPLACE "#ifdef HPDF_DLL\n" "#if 0\n" _contents "${_contents}")
|
||||
endif()
|
||||
file(WRITE "${CURRENT_PACKAGES_DIR}/include/hpdf.h" "${_contents}")
|
||||
|
||||
file(READ "${CURRENT_PACKAGES_DIR}/include/hpdf_types.h" _contents)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
||||
string(REPLACE "#ifdef HPDF_DLL\n" "#if 1\n" _contents "${_contents}")
|
||||
else()
|
||||
string(REPLACE "#ifdef HPDF_DLL\n" "#if 0\n" _contents "${_contents}")
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
file(READ "${CURRENT_PACKAGES_DIR}/include/hpdf.h" _contents)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
||||
string(REPLACE "#ifdef HPDF_DLL\n" "#if 1\n" _contents "${_contents}")
|
||||
else()
|
||||
string(REPLACE "#ifdef HPDF_DLL\n" "#if 0\n" _contents "${_contents}")
|
||||
endif()
|
||||
file(WRITE "${CURRENT_PACKAGES_DIR}/include/hpdf.h" "${_contents}")
|
||||
|
||||
file(READ "${CURRENT_PACKAGES_DIR}/include/hpdf_types.h" _contents)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
||||
string(REPLACE "#ifdef HPDF_DLL\n" "#if 1\n" _contents "${_contents}")
|
||||
else()
|
||||
string(REPLACE "#ifdef HPDF_DLL\n" "#if 0\n" _contents "${_contents}")
|
||||
endif()
|
||||
file(WRITE "${CURRENT_PACKAGES_DIR}/include/hpdf_types.h" "${_contents}")
|
||||
endif()
|
||||
file(WRITE "${CURRENT_PACKAGES_DIR}/include/hpdf_types.h" "${_contents}")
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "libharu",
|
||||
"version": "2.4.4",
|
||||
"port-version": 1,
|
||||
"description": "libharu - free PDF library",
|
||||
"homepage": "https://github.com/libharu/libharu",
|
||||
"license": "Zlib",
|
||||
|
||||
@@ -4482,7 +4482,7 @@
|
||||
},
|
||||
"libharu": {
|
||||
"baseline": "2.4.4",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"libhdfs3": {
|
||||
"baseline": "2019-11-05",
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "b7b936e1377328e2f1421b8727762bebb302813f",
|
||||
"version": "2.4.4",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "0acfe5296a4986caf51cea318361967f5d57e3ee",
|
||||
"version": "2.4.4",
|
||||
|
||||
Reference in New Issue
Block a user