# HG changeset patch # User John D # Date 1510174554 18000 # Node ID d3c12e857e9ba3af0a8a38abf606fe9a0b307122 # Parent c283aa086767c3d5cfd4e406a52ead13f6d2a5c0 graphicsmagick: enable jbig * src/graphicsmagick.mk: and as dependancy and enable jbig, in windows dont use clock_xxxx functions diff -r c283aa086767 -r d3c12e857e9b src/graphicsmagick.mk --- a/src/graphicsmagick.mk Wed Nov 08 08:20:54 2017 -0500 +++ b/src/graphicsmagick.mk Wed Nov 08 15:55:54 2017 -0500 @@ -8,11 +8,17 @@ $(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 jpeg jasper lcms libpng tiff freetype libxml2 +$(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,.*/\([0-9][^"]*\)/".*,\1,p' | \ @@ -23,6 +29,7 @@ # 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) \ @@ -36,7 +43,7 @@ --without-dps \ --without-fpx \ --without-gslib \ - --without-jbig \ + --with-jbig \ --with-jpeg \ --with-jp2 \ --with-lcms2 \