diff --git a/ports/libharu/CONTROL b/ports/libharu/CONTROL index 5919acef06..623628ab8e 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 7896d76598..c8e9250b9a 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}")