mxe/src/imagemagick.mk

32 lines
1.1 KiB
Makefile
Raw Normal View History

# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# ImageMagick
PKG := imagemagick
$(PKG)_IGNORE :=
2010-09-30 11:07:55 +01:00
$(PKG)_VERSION := 6.6.4-8
$(PKG)_CHECKSUM := 9016b8fe4b48dead5a2e5770ad68d86d5b0c92fc
$(PKG)_SUBDIR := ImageMagick-$($(PKG)_VERSION)
$(PKG)_FILE := ImageMagick-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://www.imagemagick.org/
$(PKG)_URL := http://ftp.nluug.nl/ImageMagick/$($(PKG)_FILE)
$(PKG)_DEPS := gcc bzip2 ffmpeg fftw freetype jasper jpeg lcms libpng libtool openexr pthreads tiff zlib
define $(PKG)_UPDATE
wget -q -O- 'http://ftp.nluug.nl/ImageMagick/?C=M;O=D' | \
$(SED) -n 's,.*<a href="ImageMagick-\([0-9][^"]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
2010-10-05 21:58:21 +01:00
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-shared \
--with-x=no
$(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS=
$(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS=
endef