Mercurial > mxe-octave
view src/graphicsmagick.mk @ 6139:d9280cef2ee4
* src/graphicsmagick.mk:update to v1.3.38
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Wed, 30 Mar 2022 15:05:05 -0400 |
parents | 7ac858194666 |
children | 63ab9ea78e61 |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := graphicsmagick $(PKG)_IGNORE := $(PKG)_VERSION := 1.3.38 $(PKG)_CHECKSUM := 9494a31b057a79db27cc909f9ba332cf7aa578f5 $(PKG)_SUBDIR := GraphicsMagick-$($(PKG)_VERSION) $(PKG)_FILE := GraphicsMagick-$($(PKG)_VERSION).tar.xz $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE) $(PKG)_DEPS := zlib bzip2 libjbig jpeg jasper lcms libpng tiff freetype libxml2 ifneq ($(MXE_SYSTEM),msvc) $(PKG)_DEPS += pthreads libtool endif $(PKG)_CONFIGURE_OPTIONS := ifeq ($(MXE_WINDOWS_BUILD),yes) $(PKG)_CONFIGURE_OPTIONS += ac_cv_func_clock_getres=no ac_cv_func_clock_gettime=no endif define $(PKG)_UPDATE $(WGET) -q -O- 'http://sourceforge.net/projects/graphicsmagick/files/graphicsmagick/' | \ $(SED) -n 's,.*tr title="\([0-9][^"]*\)".*,\1,p' | \ head -1 endef define $(PKG)_BUILD # This can be removed once the patch "graphicsmagick-1-fix-xml2-config.patch" is accepted by upstream cd '$(1)' && autoconf cd '$(1)' && ./configure \ $($(PKG)_CONFIGURE_OPTIONS) \ $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ $(ENABLE_SHARED_OR_STATIC) \ $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ --prefix='$(HOST_PREFIX)' \ --disable-openmp \ --with-modules \ --with-threads \ --with-magick-plus-plus \ --without-perl \ --with-bzlib \ --without-dps \ --without-fpx \ --without-gslib \ --with-jbig \ --with-jpeg \ --with-jp2 \ --with-lcms2 \ --with-png \ --with-tiff \ --without-trio \ --with-ttf='$(HOST_PREFIX)' \ --without-wmf \ --with-xml \ --with-zlib \ --without-x \ --with-quantum-depth=16 \ ac_cv_prog_xml2_config='$(HOST_BINDIR)/xml2-config' \ ac_cv_path_xml2_config='$(HOST_BINDIR)/xml2-config' \ && $(CONFIGURE_POST_HOOK) $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= DESTDIR='$(3)' if [ "$(ENABLE_DEP_DOCS)" == "no" ]; then \ rm -rf "$(3)$(HOST_PREFIX)/share/doc/GraphicsMagick"; \ fi # Build (and install) fork of dcraw if [ "x$(MXE_WINDOWS_BUILD)" == "xyes" ]; then \ cd '$(1)/dcraw' && $(MXE_CC) -O4 -o $(3)$(HOST_PREFIX)/bin/dcraw dcraw.c \ -Wall -Wno-unused-result -Wno-array-bounds -Wno-maybe-uninitialized \ -Wno-unused-but-set-variable \ -I$(HOST_PREFIX)/include -L$(HOST_PREFIX)/lib \ -lm -ljasper -ljpeg -llcms2 -lws2_32 -s; \ fi endef