2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2010-12-11 21:50:57 +00:00
|
|
|
|
|
|
|
PKG := graphicsmagick
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_WEBSITE := http://www.graphicsmagick.org/
|
|
|
|
$(PKG)_DESCR := GraphicsMagick
|
2010-12-11 21:50:57 +00:00
|
|
|
$(PKG)_IGNORE :=
|
2019-07-21 23:12:35 +01:00
|
|
|
$(PKG)_VERSION := 1.3.33
|
|
|
|
$(PKG)_CHECKSUM := ae86f749815d3039ac431caf9fc4b65acf32bfd140d1817644d3463b6ba9d51c
|
2010-12-11 21:50:57 +00:00
|
|
|
$(PKG)_SUBDIR := GraphicsMagick-$($(PKG)_VERSION)
|
2019-07-06 15:24:35 +01:00
|
|
|
$(PKG)_FILE := GraphicsMagick-$($(PKG)_VERSION).tar.lz
|
2017-03-05 03:41:39 +00:00
|
|
|
$(PKG)_URL := https://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
|
2017-11-25 13:36:07 +00:00
|
|
|
$(PKG)_DEPS := cc bzip2 freetype jasper jpeg lcms libltdl libpng libxml2 pthreads tiff zlib
|
2010-12-11 21:50:57 +00:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2017-03-04 10:33:47 +00:00
|
|
|
$(WGET) -q -O- 'https://sourceforge.net/projects/graphicsmagick/files/graphicsmagick/' | \
|
2018-03-25 15:01:54 +01:00
|
|
|
$(SED) -n 's,.*/projects/.*/\([0-9][^"]*\)/".*,\1,p' | \
|
2010-12-11 21:50:57 +00:00
|
|
|
head -1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
|
|
|
# This can be removed once the patch "graphicsmagick-1-fix-xml2-config.patch" is accepted by upstream
|
2020-08-01 04:25:24 +01:00
|
|
|
cd '$(SOURCE_DIR)' && autoconf
|
|
|
|
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
|
2013-12-20 10:45:15 +00:00
|
|
|
$(MXE_CONFIGURE_OPTS) \
|
2010-12-11 21:50:57 +00:00
|
|
|
--without-modules \
|
|
|
|
--with-threads \
|
|
|
|
--with-magick-plus-plus \
|
|
|
|
--without-perl \
|
|
|
|
--with-bzlib \
|
|
|
|
--without-dps \
|
|
|
|
--without-fpx \
|
|
|
|
--without-gslib \
|
|
|
|
--without-jbig \
|
|
|
|
--with-jpeg \
|
|
|
|
--with-jp2 \
|
2013-08-17 20:31:21 +01:00
|
|
|
--with-lcms2 \
|
2010-12-11 21:50:57 +00:00
|
|
|
--with-png \
|
|
|
|
--with-tiff \
|
|
|
|
--without-trio \
|
|
|
|
--with-ttf='$(PREFIX)/$(TARGET)' \
|
|
|
|
--without-wmf \
|
|
|
|
--with-xml \
|
|
|
|
--with-zlib \
|
|
|
|
--without-x \
|
2012-02-04 05:43:41 +00:00
|
|
|
ac_cv_prog_xml2_config='$(PREFIX)/$(TARGET)/bin/xml2-config' \
|
2015-04-23 11:16:12 +01:00
|
|
|
ac_cv_path_xml2_config='$(PREFIX)/$(TARGET)/bin/xml2-config' \
|
2020-08-01 04:25:24 +01:00
|
|
|
LIBS='-lgomp -fopenmp' \
|
|
|
|
$(PKG_CONFIGURE_OPTS)
|
|
|
|
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' bin_PROGRAMS=
|
|
|
|
$(MAKE) -C '$(BUILD_DIR)' -j 1 install bin_PROGRAMS=
|
2010-12-11 21:50:57 +00:00
|
|
|
|
|
|
|
'$(TARGET)-g++' \
|
|
|
|
-W -Wall -Werror -pedantic -std=gnu++0x \
|
2016-07-30 20:14:38 +01:00
|
|
|
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-graphicsmagick.exe' \
|
2013-08-25 10:44:47 +01:00
|
|
|
`'$(TARGET)-pkg-config' GraphicsMagick++ --cflags --libs` -llzma
|
2010-12-11 21:50:57 +00:00
|
|
|
endef
|