aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackBoosY <47264268+JackBoosY@users.noreply.github.com>2019-09-21 03:49:36 +0800
committerPhil Christensen <philc@microsoft.com>2019-09-20 12:49:36 -0700
commitd060ff5b8bcc3c42cafec2dbf51d6be2e1cd4cac (patch)
tree0760adf674255a8a8228692e1c4c9de54a008821
parentb519061ed5f202042e12276c3df4c205e06f0b0b (diff)
downloadvcpkg-d060ff5b8bcc3c42cafec2dbf51d6be2e1cd4cac.tar.gz
vcpkg-d060ff5b8bcc3c42cafec2dbf51d6be2e1cd4cac.zip
[io2d]Fix linux build: add dependency cairo[x11]. (#8251)
-rw-r--r--ports/io2d/CONTROL4
-rw-r--r--ports/io2d/fix-linux-build.patch22
-rw-r--r--ports/io2d/portfile.cmake4
3 files changed, 27 insertions, 3 deletions
diff --git a/ports/io2d/CONTROL b/ports/io2d/CONTROL
index ed88f595c..c48e73334 100644
--- a/ports/io2d/CONTROL
+++ b/ports/io2d/CONTROL
@@ -1,4 +1,4 @@
Source: io2d
-Version: 2019-07-11
+Version: 2019-07-11-1
Description: a lightweight, cross platform drawing library
-Build-Depends: cairo (!osx), graphicsmagick (!osx)
+Build-Depends: cairo (!osx), cairo[x11] (linux), graphicsmagick (!osx)
diff --git a/ports/io2d/fix-linux-build.patch b/ports/io2d/fix-linux-build.patch
new file mode 100644
index 000000000..be038fab4
--- /dev/null
+++ b/ports/io2d/fix-linux-build.patch
@@ -0,0 +1,22 @@
+diff --git a/P0267_RefImpl/P0267_RefImpl/cairo/CMakeLists.txt b/P0267_RefImpl/P0267_RefImpl/cairo/CMakeLists.txt
+index 5ebeb6a..d0e9176 100644
+--- a/P0267_RefImpl/P0267_RefImpl/cairo/CMakeLists.txt
++++ b/P0267_RefImpl/P0267_RefImpl/cairo/CMakeLists.txt
+@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.8)
+ project(io2d CXX)
+
+ find_package(Cairo REQUIRED)
+-find_package(GraphicsMagick REQUIRED)
++find_package(unofficial-graphicsmagick REQUIRED)
+
+ add_library(io2d_cairo
+ cairo_renderer-graphicsmagickinit.cpp
+@@ -24,7 +24,7 @@ target_include_directories(io2d_cairo PUBLIC
+
+ target_compile_features(io2d_cairo PUBLIC cxx_std_17)
+
+-target_link_libraries(io2d_cairo PUBLIC io2d_core Cairo::Cairo GraphicsMagick::GraphicsMagick)
++target_link_libraries(io2d_cairo PUBLIC io2d_core Cairo::Cairo unofficial::graphicsmagick::graphicsmagick)
+
+ install(
+ TARGETS io2d_cairo EXPORT io2d_targets
diff --git a/ports/io2d/portfile.cmake b/ports/io2d/portfile.cmake
index f171d9e34..ceb553e9a 100644
--- a/ports/io2d/portfile.cmake
+++ b/ports/io2d/portfile.cmake
@@ -11,7 +11,9 @@ vcpkg_from_github(
REF add3c9792dcd3f08c497ae3adafb2a3b5b5fc338
SHA512 2727342fbb31523583374ab6df6ff7542e80b4f94319cf0f293e8c085711fa10ed312b4fc4b91391112b5e27eaaae519cb4141ea9d4108ffb5b7383a043b38b8
HEAD_REF master
- PATCHES find-package.patch
+ PATCHES
+ find-package.patch
+ fix-linux-build.patch
)
# Configure the library, using CMake