diff options
Diffstat (limited to 'ports/io2d')
| -rw-r--r-- | ports/io2d/CONTROL | 3 | ||||
| -rw-r--r-- | ports/io2d/fix-expat.patch | 13 | ||||
| -rw-r--r-- | ports/io2d/portfile.cmake | 9 |
3 files changed, 19 insertions, 6 deletions
diff --git a/ports/io2d/CONTROL b/ports/io2d/CONTROL index 4e69350d4..596cdcd23 100644 --- a/ports/io2d/CONTROL +++ b/ports/io2d/CONTROL @@ -1,4 +1,5 @@ Source: io2d -Version: 2019-07-11-2 +Version: 2019-07-11 +Port-Version: 3 Description: a lightweight, cross platform drawing library Build-Depends: cairo (!osx), cairo[x11] (linux), graphicsmagick (!osx) diff --git a/ports/io2d/fix-expat.patch b/ports/io2d/fix-expat.patch new file mode 100644 index 000000000..25d38bb10 --- /dev/null +++ b/ports/io2d/fix-expat.patch @@ -0,0 +1,13 @@ +diff --git a/P0267_RefImpl/P0267_RefImpl/cairo/win32/CMakeLists.txt b/P0267_RefImpl/P0267_RefImpl/cairo/win32/CMakeLists.txt
+index abb1501..412f3d4 100644
+--- a/P0267_RefImpl/P0267_RefImpl/cairo/win32/CMakeLists.txt
++++ b/P0267_RefImpl/P0267_RefImpl/cairo/win32/CMakeLists.txt
+@@ -32,7 +32,7 @@ if(MSVC)
+ find_library(BZ_LIB bz2)
+ find_library(JPEG_LIB jpeg)
+ find_library(TIFF_LIB tiff)
+- find_library(EXPAT_LIB expat)
++ find_library(EXPAT_LIB libexpat)
+ find_library(LZMA_LIB lzma)
+ find_library(ICONV_LIB libiconv)
+ find_library(CHARSET_LIB libcharset)
diff --git a/ports/io2d/portfile.cmake b/ports/io2d/portfile.cmake index cb07ea3d8..f6f9011e5 100644 --- a/ports/io2d/portfile.cmake +++ b/ports/io2d/portfile.cmake @@ -9,9 +9,10 @@ vcpkg_from_github( PATCHES fix-linux-build.patch Fix-FindCairo.patch + fix-expat.patch ) -if (VCPKG_CMAKE_SYSTEM_NAME STREQUAL Darwin) +if (VCPKG_TARGET_IS_OSX) set(IO2D_DEFAULT_OPTION "-DIO2D_DEFAULT=COREGRAPHICS_MAC") endif() @@ -31,7 +32,7 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/io2d) -if (NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL Darwin) +if (NOT VCPKG_TARGET_IS_OSX) file(RENAME ${CURRENT_PACKAGES_DIR}/share/io2d/io2dConfig.cmake ${CURRENT_PACKAGES_DIR}/share/io2d/io2dTargets.cmake) file(WRITE ${CURRENT_PACKAGES_DIR}/share/io2d/io2dConfig.cmake " include(CMakeFindDependencyMacro) @@ -42,6 +43,4 @@ if (NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL Darwin) ") endif() -file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) - -vcpkg_test_cmake(PACKAGE_NAME io2d) +file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
\ No newline at end of file |
