2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2009-02-28 21:44:12 +00:00
|
|
|
|
2009-04-05 13:00:17 +01:00
|
|
|
PKG := cairo
|
2017-03-04 10:33:47 +00:00
|
|
|
$(PKG)_WEBSITE := https://cairographics.org/
|
2009-09-20 13:36:46 +01:00
|
|
|
$(PKG)_IGNORE :=
|
2018-11-15 23:34:14 +00:00
|
|
|
$(PKG)_VERSION := 1.16.0
|
|
|
|
$(PKG)_CHECKSUM := 5e7b29b3f113ef870d1e3ecf8adf21f923396401604bda16d44be45e66052331
|
2009-04-05 13:00:17 +01:00
|
|
|
$(PKG)_SUBDIR := cairo-$($(PKG)_VERSION)
|
2012-06-04 16:56:56 +01:00
|
|
|
$(PKG)_FILE := cairo-$($(PKG)_VERSION).tar.xz
|
2018-11-15 23:34:14 +00:00
|
|
|
$(PKG)_URL := https://cairographics.org/releases/$($(PKG)_FILE)
|
2017-11-25 13:36:07 +00:00
|
|
|
$(PKG)_DEPS := cc fontconfig freetype-bootstrap glib libpng lzo pixman zlib
|
2009-02-28 21:44:12 +00:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2017-03-04 10:33:47 +00:00
|
|
|
$(WGET) -q -O- 'https://cairographics.org/releases/?C=M;O=D' | \
|
2019-09-07 14:00:47 +01:00
|
|
|
$(SED) -n 's,.*"cairo-\([0-9]\.[0-9][^"]*\)\.tar.*,\1,p' | \
|
2009-02-28 21:44:12 +00:00
|
|
|
head -1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
2010-02-16 03:12:53 +00:00
|
|
|
$(SED) -i 's,libpng12,libpng,g' '$(1)/configure'
|
|
|
|
$(SED) -i 's,^\(Libs:.*\),\1 @CAIRO_NONPKGCONFIG_LIBS@,' '$(1)/src/cairo.pc.in'
|
2009-02-28 21:44:12 +00:00
|
|
|
cd '$(1)' && ./configure \
|
2013-12-15 13:52:35 +00:00
|
|
|
$(MXE_CONFIGURE_OPTS) \
|
2014-05-09 04:23:21 +01:00
|
|
|
--disable-lto \
|
2009-03-01 01:26:09 +00:00
|
|
|
--disable-gtk-doc \
|
|
|
|
--disable-test-surfaces \
|
|
|
|
--disable-gcov \
|
|
|
|
--disable-xlib \
|
|
|
|
--disable-xlib-xrender \
|
|
|
|
--disable-xcb \
|
|
|
|
--disable-quartz \
|
|
|
|
--disable-quartz-font \
|
|
|
|
--disable-quartz-image \
|
|
|
|
--disable-os2 \
|
|
|
|
--disable-beos \
|
|
|
|
--disable-directfb \
|
2010-09-23 12:11:57 +01:00
|
|
|
--disable-atomic \
|
2009-03-01 01:26:09 +00:00
|
|
|
--enable-win32 \
|
|
|
|
--enable-win32-font \
|
|
|
|
--enable-png \
|
|
|
|
--enable-ft \
|
|
|
|
--enable-ps \
|
|
|
|
--enable-pdf \
|
|
|
|
--enable-svg \
|
2009-03-05 15:54:57 +00:00
|
|
|
--disable-pthread \
|
2014-02-10 05:33:26 +00:00
|
|
|
CFLAGS="$(CFLAGS) $(if $(BUILD_STATIC),-DCAIRO_WIN32_STATIC_BUILD)" \
|
2010-01-16 21:33:50 +00:00
|
|
|
LIBS="-lmsimg32 -lgdi32 `$(TARGET)-pkg-config pixman-1 --libs`"
|
2009-02-28 21:44:12 +00:00
|
|
|
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
|
|
|
|
endef
|