Mercurial > mxe-octave
view src/cairo.mk @ 3256:7fb479d0241c
Update build tools for native mingw
* src/build-m4.mk: do nothing for native mingw build
* Makefile.in:
- add bison, m4 as natve mingw, and python as jit build requirements.
- remove build-bison as a mingw build dependancy
* index.html: Add msys-bison to mingw required packages and mention ghostscript and python.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Thu, 26 Sep 2013 21:18:39 -0400 |
parents | 81ef4be24f2e |
children | 13be64f9f16d |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := cairo $(PKG)_IGNORE := $(PKG)_CHECKSUM := 9106ab09b2e7b9f90521b18dd4a7e9577eba6c15 $(PKG)_SUBDIR := cairo-$($(PKG)_VERSION) $(PKG)_FILE := cairo-$($(PKG)_VERSION).tar.xz $(PKG)_URL := http://cairographics.org/releases/$($(PKG)_FILE) $(PKG)_DEPS := zlib libpng fontconfig freetype pixman glib define $(PKG)_UPDATE $(WGET) -q -O- 'http://cairographics.org/releases/?C=M;O=D' | \ $(SED) -n 's,.*"cairo-\([0-9][^"]*\)\.tar.*,\1,p' | \ head -1 endef $(PKG)_EXTRA_CONFIGURE_OPTIONS := # FIXME: Not sure why i was disabled... #$(PKG)_EXTRA_CONFIGURE_OPTIONS += --disable-atomic # Add special flag for static Win32 builds ifneq ($(filter mingw msvc,$(MXE_SYSTEM)),) ifeq ($(BUILD_STATIC),yes) $(PKG)_EXTRA_CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -DCAIRO_WIN32_STATIC_BUILD" endif endif # Configure script to detect float word endianness fails on MSVC. ifeq ($(MXE_SYSTEM),msvc) $(PKG)_EXTRA_CONFIGURE_OPTIONS += ax_cv_c_float_words_bigendian=no endif define $(PKG)_BUILD $(SED) -i 's,libpng12,libpng,g' '$(1)/configure' $(SED) -i 's,^\(Libs:.*\),\1 @CAIRO_NONPKGCONFIG_LIBS@,' '$(1)/src/cairo.pc.in' cd '$(1)' && ./configure \ $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ $(ENABLE_SHARED_OR_STATIC) \ --prefix='$(HOST_PREFIX)' \ --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 \ --enable-win32 \ --enable-win32-font \ --enable-png \ --enable-ft \ --enable-ps \ --enable-pdf \ --enable-svg \ --disable-pthread \ $($(PKG)_EXTRA_CONFIGURE_OPTIONS) \ PKG_CONFIG='$(MXE_PKG_CONFIG)' \ PKG_CONFIG_PATH='$(HOST_LIBDIR)/pkgconfig' \ && $(CONFIGURE_POST_HOOK) $(MAKE) -C '$(1)' -j '$(JOBS)' install noinst_PROGRAMS= endef