diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-11-01 14:47:34 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-11-01 14:47:34 -0700 |
| commit | 807a39c07888ac33ba3fc351c592b78307310e79 (patch) | |
| tree | 2835304de839769692bb1e5650ab0a9e397a8d3b | |
| parent | fec804f2361284bed911bfc373207c4d28fcaaf1 (diff) | |
| download | vcpkg-807a39c07888ac33ba3fc351c592b78307310e79.tar.gz vcpkg-807a39c07888ac33ba3fc351c592b78307310e79.zip | |
[libharu] Fix DLLIMPORT macro replacement
| -rw-r--r-- | ports/libharu/CONTROL | 2 | ||||
| -rw-r--r-- | ports/libharu/portfile.cmake | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/ports/libharu/CONTROL b/ports/libharu/CONTROL index 5919acef0..623628ab8 100644 --- a/ports/libharu/CONTROL +++ b/ports/libharu/CONTROL @@ -1,4 +1,4 @@ Source: libharu -Version: 2017-08-15-d84867ebf9f-3 +Version: 2017-08-15-d84867ebf9f-4 Description: libharu - free PDF library Build-Depends: zlib, libpng diff --git a/ports/libharu/portfile.cmake b/ports/libharu/portfile.cmake index 7896d7659..c8e9250b9 100644 --- a/ports/libharu/portfile.cmake +++ b/ports/libharu/portfile.cmake @@ -37,17 +37,17 @@ file(REMOVE_RECURSE file(READ "${CURRENT_PACKAGES_DIR}/include/hpdf.h" _contents) if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") - string(REPLACE "#ifdef HPDF_DLL" "#if 1" _contents "${_contents}") + string(REPLACE "#ifdef HPDF_DLL\n" "#if 1\n" _contents "${_contents}") else() - string(REPLACE "#ifdef HPDF_DLL" "#if 0" _contents "${_contents}") + 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" "#if 1" _contents "${_contents}") + string(REPLACE "#ifdef HPDF_DLL\n" "#if 1\n" _contents "${_contents}") else() - string(REPLACE "#ifdef HPDF_DLL" "#if 0" _contents "${_contents}") + string(REPLACE "#ifdef HPDF_DLL\n" "#if 0\n" _contents "${_contents}") endif() file(WRITE "${CURRENT_PACKAGES_DIR}/include/hpdf_types.h" "${_contents}") |
