2018-03-06 19:57:00 +00:00
|
|
|
modules-$(CONFIG_CAIRO) += cairo
|
|
|
|
|
|
|
|
cairo_version := 1.14.12
|
|
|
|
cairo_dir := cairo-$(cairo_version)
|
|
|
|
cairo_tar := cairo-$(cairo_version).tar.xz
|
2024-01-05 02:32:08 +00:00
|
|
|
cairo_url := https://www.cairographics.org/releases/$(cairo_tar)
|
2018-03-06 19:57:00 +00:00
|
|
|
cairo_hash := 8c90f00c500b2299c0a323dd9beead2a00353752b2092ead558139bd67f7bf16
|
|
|
|
|
|
|
|
cairo_configure := \
|
2023-03-01 16:12:46 +00:00
|
|
|
CFLAGS="-DCAIRO_NO_MUTEX=1 -Os" \
|
2018-03-06 19:57:00 +00:00
|
|
|
$(CROSS_TOOLS) \
|
|
|
|
./configure \
|
2021-07-18 17:34:20 +00:00
|
|
|
--host $(MUSL_ARCH)-elf-linux \
|
2018-03-06 19:57:00 +00:00
|
|
|
--prefix="/" \
|
|
|
|
--disable-xlib --disable-xcb --disable-pdf \
|
|
|
|
--disable-ps --disable-svg --disable-script \
|
|
|
|
--disable-ft --disable-fc --disable-pthread \
|
2018-11-24 17:12:41 +00:00
|
|
|
--disable-gobject \
|
|
|
|
&& sed \
|
|
|
|
-e 's/^hardcode_libdir_flag_spec.*/hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_DISABLE__ "/' \
|
|
|
|
< libtool \
|
|
|
|
> libtool-2 \
|
|
|
|
&& mv libtool-2 libtool \
|
|
|
|
&& chmod 755 libtool
|
2018-03-06 19:57:00 +00:00
|
|
|
|
|
|
|
cairo_target := \
|
|
|
|
$(MAKE_JOBS) \
|
|
|
|
$(CROSS_TOOLS) \
|
|
|
|
DESTDIR="$(INSTALL)" \
|
|
|
|
install
|
|
|
|
|
|
|
|
cairo_libraries := src/.libs/libcairo.so.2
|
|
|
|
|
|
|
|
cairo_depends := pixman $(musl_dep)
|