Skip to content

Commit

Permalink
[cairo] Windows: Fix cairo dll definition (#17596)
Browse files Browse the repository at this point in the history
* [cairo] fix def name for dll

* version stuff

* use same approach as the fontconfig fix

* update version
  • Loading branch information
Neumann-A committed May 3, 2021
1 parent 8f03e22 commit 95836f4
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ports/cairo/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ vcpkg_download_distfile(ARCHIVE
FILENAME "cairo-${CAIRO_VERSION}.tar.xz"
SHA512 9eb27c4cf01c0b8b56f2e15e651f6d4e52c99d0005875546405b64f1132aed12fbf84727273f493d84056a13105e065009d89e94a8bfaf2be2649e232b82377f
)

if(NOT VCPKG_TARGET_IS_MINGW AND VCPKG_TARGET_IS_WINDOWS)
set(PATCHES win_dll_def.patch)
endif()

vcpkg_extract_source_archive_ex(
OUT_SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE}
Expand All @@ -14,6 +19,7 @@ vcpkg_extract_source_archive_ex(
0001_fix_osx_defined.patch
build2.patch
remove_test_perf.patch
${PATCHES}
)

#TODO the autoconf script has a lot of additional option which use auto detection and should be disabled!
Expand Down
2 changes: 1 addition & 1 deletion ports/cairo/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cairo",
"version": "1.16.0",
"port-version": 11,
"port-version": 12,
"description": "Cairo is a 2D graphics library with support for multiple output devices. Currently supported output targets include the X Window System (via both Xlib and XCB), Quartz, Win32, image buffers, PostScript, PDF, and SVG file output. Experimental backends include OpenGL, BeOS, OS/2, and DirectFB.",
"homepage": "https://cairographics.org",
"dependencies": [
Expand Down
13 changes: 13 additions & 0 deletions ports/cairo/win_dll_def.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/Makefile.am b/src/Makefile.am
index df6de0136..b8de9669c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -72,7 +72,7 @@ cairo.def: cairo-features.h $(enabled_cairo_headers)
$(EGREP) '^cairo_.* \(' | \
sed -e 's/[ ].*//' | \
sort; \
- echo LIBRARY libcairo-$(CAIRO_VERSION_SONUM).dll; \
+ echo LIBRARY cairo-$(CAIRO_VERSION_SONUM).dll; \
) >$@
@ ! grep -q cairo_ERROR $@ || ($(RM) $@; false)

2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,7 @@
},
"cairo": {
"baseline": "1.16.0",
"port-version": 11
"port-version": 12
},
"cairomm": {
"baseline": "1.16.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/c-/cairo.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "ea721528bdf86a3a1fd35b78550e3c9463a8e715",
"version": "1.16.0",
"port-version": 12
},
{
"git-tree": "f5e2e3535796b2fb785709ae2273c1243b4aa2fc",
"version": "1.16.0",
Expand Down

0 comments on commit 95836f4

Please sign in to comment.