Skip to content

Commit

Permalink
Update cairo (#1432)
Browse files Browse the repository at this point in the history
* Enable png

* Update recipe

* Remove patches

* Add libffi
  • Loading branch information
IsabelParedes authored Nov 26, 2024
1 parent 081ac6d commit 441551c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 25 deletions.
6 changes: 1 addition & 5 deletions recipes/recipes_emscripten/cairo/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@

set -ex

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$BUILD_PREFIX/lib/pkgconfig
export PKG_CONFIG=$BUILD_PREFIX/bin/pkg-config

export CFLAGS="${CFLAGS} -DCAIRO_NO_MUTEX=1"
export LDFLAGS="${LDFLAGS} -lz"

meson_config_args=(
-Dfontconfig=enabled
-Dfreetype=enabled
-Dglib=enabled
-Dpng=disabled
-Dpng=enabled
-Dxlib=disabled
-Dxlib-xcb=disabled
-Dxcb=disabled
Expand Down
13 changes: 0 additions & 13 deletions recipes/recipes_emscripten/cairo/patches/cairo-wasm.patch

This file was deleted.

16 changes: 9 additions & 7 deletions recipes/recipes_emscripten/cairo/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ package:
source:
url: http://cairographics.org/releases/${{ name }}-${{ version }}.tar.xz
sha256: 243a0736b978a33dee29f9cca7521733b78a65b5418206fef7bd1c3d4cf10b64
patches:
- patches/cairo-wasm.patch

build:
number: 1
number: 2

requirements:
build:
Expand All @@ -32,12 +30,16 @@ requirements:
- lzo
- expat
- zlib
- libffi

tests:
- script:
- test -f $PREFIX/lib/libcairo.a
- test -f $PREFIX/lib/libcairo-gobject.a
- test -f $PREFIX/include/cairo/cairo.h
- package_contents:
lib:
- libcairo.a
- libcairo-script-interpreter.a
include:
- cairo/cairo.h
- cairo/cairo-svg.h

about:
homepage: http://cairographics.org/
Expand Down

0 comments on commit 441551c

Please sign in to comment.