2007-07-23 11:06:34 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# imagemagick
|
|
|
|
#
|
|
|
|
#############################################################
|
2009-10-01 22:11:59 +02:00
|
|
|
IMAGEMAGICK_MAJOR:=6.4.8
|
|
|
|
IMAGEMAGICK_VERSION:=$(IMAGEMAGICK_MAJOR)-4
|
2009-01-12 08:42:09 +01:00
|
|
|
IMAGEMAGICK_SOURCE:=ImageMagick-$(IMAGEMAGICK_VERSION).tar.bz2
|
2007-07-23 11:06:34 +02:00
|
|
|
IMAGEMAGICK_SITE:=ftp://ftp.imagemagick.org/pub/ImageMagick
|
2007-07-23 14:26:49 +02:00
|
|
|
IMAGEMAGICK_DIR:=$(BUILD_DIR)/ImageMagick-$(IMAGEMAGICK_VERSION)
|
2007-07-23 11:06:34 +02:00
|
|
|
IMAGEMAGICK_CAT:=$(BZCAT)
|
2009-10-01 22:11:59 +02:00
|
|
|
IMAGEMAGICK_LIB:=$(TARGET_DIR)/usr/lib/libMagickCore.so
|
2007-07-23 11:06:34 +02:00
|
|
|
|
2007-07-27 09:48:56 +02:00
|
|
|
IMAGEMAGICK_TARGET_BINARIES:=$(TARGET_DIR)/usr/bin/animate
|
|
|
|
IMAGEMAGICK_TARGET_BINARIES+=$(TARGET_DIR)/usr/bin/compare
|
|
|
|
IMAGEMAGICK_TARGET_BINARIES+=$(TARGET_DIR)/usr/bin/composite
|
|
|
|
IMAGEMAGICK_TARGET_BINARIES+=$(TARGET_DIR)/usr/bin/conjure
|
|
|
|
IMAGEMAGICK_TARGET_BINARIES+=$(TARGET_DIR)/usr/bin/display
|
|
|
|
IMAGEMAGICK_TARGET_BINARIES+=$(TARGET_DIR)/usr/bin/import
|
|
|
|
IMAGEMAGICK_TARGET_BINARIES+=$(TARGET_DIR)/usr/bin/mogrify
|
|
|
|
IMAGEMAGICK_TARGET_BINARIES+=$(TARGET_DIR)/usr/bin/montage
|
|
|
|
IMAGEMAGICK_TARGET_BINARIES+=$(TARGET_DIR)/usr/bin/convert
|
|
|
|
|
|
|
|
IMAGEMAGICK_COPY:=cp -df --preserve=mode,ownership
|
2007-07-23 11:06:34 +02:00
|
|
|
$(DL_DIR)/$(IMAGEMAGICK_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(IMAGEMAGICK_SITE),$(IMAGEMAGICK_SOURCE))
|
2007-07-23 11:06:34 +02:00
|
|
|
|
|
|
|
$(IMAGEMAGICK_DIR)/.unpacked: $(DL_DIR)/$(IMAGEMAGICK_SOURCE)
|
|
|
|
$(IMAGEMAGICK_CAT) $(DL_DIR)/$(IMAGEMAGICK_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2009-01-12 08:42:09 +01:00
|
|
|
toolchain/patch-kernel.sh $(IMAGEMAGICK_DIR) package/imagemagick/ imagemagick-$(IMAGEMAGICK_VERSION)\*.patch\*
|
2007-07-23 11:06:34 +02:00
|
|
|
$(CONFIG_UPDATE) $(IMAGEMAGICK_DIR)/config
|
2007-07-23 14:26:49 +02:00
|
|
|
touch $@
|
2007-07-23 11:06:34 +02:00
|
|
|
|
|
|
|
$(IMAGEMAGICK_DIR)/.configured: $(IMAGEMAGICK_DIR)/.unpacked
|
2007-09-25 14:34:09 +02:00
|
|
|
(cd $(IMAGEMAGICK_DIR); rm -f config.cache; \
|
2007-07-23 11:06:34 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-07-23 14:26:49 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2009-10-01 21:24:42 +02:00
|
|
|
./configure $(QUIET) \
|
2007-07-23 11:06:34 +02:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--without-perl \
|
|
|
|
--without-wmf \
|
|
|
|
--without-xml \
|
|
|
|
--without-rsvg \
|
|
|
|
--without-openexr \
|
|
|
|
--without-jp2 \
|
|
|
|
--without-jbig \
|
|
|
|
--without-gvc \
|
|
|
|
--without-djvu \
|
|
|
|
--without-dps \
|
|
|
|
--without-gslib \
|
|
|
|
--without-fpx \
|
|
|
|
--without-freetype \
|
|
|
|
--without-x \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-07-23 14:26:49 +02:00
|
|
|
touch $@
|
2007-07-23 11:06:34 +02:00
|
|
|
|
|
|
|
$(IMAGEMAGICK_DIR)/.compiled: $(IMAGEMAGICK_DIR)/.configured
|
|
|
|
$(MAKE) -C $(IMAGEMAGICK_DIR)
|
2007-07-23 14:26:49 +02:00
|
|
|
touch $@
|
2007-07-23 11:06:34 +02:00
|
|
|
|
2009-10-01 22:11:59 +02:00
|
|
|
$(STAGING_DIR)/usr/lib/libMagickCore.a: $(IMAGEMAGICK_DIR)/.compiled
|
2007-07-23 11:06:34 +02:00
|
|
|
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(IMAGEMAGICK_DIR) install
|
2007-07-23 14:26:49 +02:00
|
|
|
touch -c $@
|
2007-07-23 11:06:34 +02:00
|
|
|
|
2009-10-01 22:11:59 +02:00
|
|
|
$(IMAGEMAGICK_LIB): $(STAGING_DIR)/usr/lib/libMagickCore.a
|
|
|
|
$(IMAGEMAGICK_COPY) $(STAGING_DIR)/usr/lib/libMagickWand.so* $(TARGET_DIR)/usr/lib/
|
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libMagickWand.so*
|
|
|
|
mkdir -p $(TARGET_DIR)/usr/lib/ImageMagick-$(IMAGEMAGICK_MAJOR)
|
|
|
|
$(IMAGEMAGICK_COPY) -r $(STAGING_DIR)/usr/lib/ImageMagick-$(IMAGEMAGICK_MAJOR) $(TARGET_DIR)/usr/lib
|
|
|
|
$(IMAGEMAGICK_COPY) $(STAGING_DIR)/usr/lib/libMagickCore.so* $(TARGET_DIR)/usr/lib/
|
2007-10-01 18:15:31 +02:00
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(IMAGEMAGICK_LIB)*
|
2007-07-23 14:26:49 +02:00
|
|
|
touch -c $@
|
2007-07-23 11:06:34 +02:00
|
|
|
|
2007-08-20 19:21:16 +02:00
|
|
|
$(IMAGEMAGICK_DIR)/.libinstall: $(IMAGEMAGICK_LIB)
|
2009-10-01 22:11:59 +02:00
|
|
|
libtool --finish $(TARGET_DIR)/usr/lib/ImageMagick-$(IMAGEMAGICK_MAJOR)/modules-Q16/coders
|
|
|
|
libtool --finish $(TARGET_DIR)/usr/lib/ImageMagick-$(IMAGEMAGICK_MAJOR)/modules-Q16/filters
|
2007-08-21 21:33:00 +02:00
|
|
|
touch $@
|
2007-07-27 09:48:56 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/usr/bin/animate: $(IMAGEMAGICK_LIB)
|
|
|
|
ls -l $(IMAGEMAGICK_LIB) >> datefile
|
|
|
|
$(IMAGEMAGICK_COPY) $(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)-animate $(TARGET_DIR)/usr/bin/animate
|
2007-10-01 18:15:31 +02:00
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/animate
|
2007-08-21 21:33:00 +02:00
|
|
|
touch $@
|
2007-07-27 09:48:56 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/usr/bin/compare: $(IMAGEMAGICK_LIB)
|
|
|
|
$(IMAGEMAGICK_COPY) $(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)-compare $(TARGET_DIR)/usr/bin/compare
|
2007-10-01 18:15:31 +02:00
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/compare
|
2007-08-21 21:33:00 +02:00
|
|
|
touch $@
|
2007-07-27 09:48:56 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/usr/bin/composite: $(IMAGEMAGICK_LIB)
|
|
|
|
$(IMAGEMAGICK_COPY) $(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)-composite $(TARGET_DIR)/usr/bin/composite
|
2007-10-01 18:15:31 +02:00
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/composite
|
2007-08-21 21:33:00 +02:00
|
|
|
touch $@
|
2007-07-27 09:48:56 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/usr/bin/conjure: $(IMAGEMAGICK_LIB)
|
|
|
|
$(IMAGEMAGICK_COPY) $(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)-conjure $(TARGET_DIR)/usr/bin/conjure
|
2007-10-01 18:15:31 +02:00
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/conjure
|
2007-08-21 21:33:00 +02:00
|
|
|
touch $@
|
2007-07-27 09:48:56 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/usr/bin/display: $(IMAGEMAGICK_LIB)
|
|
|
|
$(IMAGEMAGICK_COPY) $(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)-display $(TARGET_DIR)/usr/bin/display
|
2007-10-01 18:15:31 +02:00
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/display
|
2007-08-21 21:33:00 +02:00
|
|
|
touch $@
|
2007-07-27 09:48:56 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/usr/bin/import: $(IMAGEMAGICK_LIB)
|
|
|
|
$(IMAGEMAGICK_COPY) $(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)-import $(TARGET_DIR)/usr/bin/import
|
2007-10-01 18:15:31 +02:00
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/import
|
2007-08-21 21:33:00 +02:00
|
|
|
touch $@
|
2007-07-27 09:48:56 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/usr/bin/mogrify: $(IMAGEMAGICK_LIB)
|
|
|
|
$(IMAGEMAGICK_COPY) $(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)-mogrify $(TARGET_DIR)/usr/bin/mogrify
|
2007-10-01 18:15:31 +02:00
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/mogrify
|
2007-08-21 21:33:00 +02:00
|
|
|
touch $@
|
2007-07-27 09:48:56 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/usr/bin/montage: $(IMAGEMAGICK_LIB)
|
|
|
|
$(IMAGEMAGICK_COPY) $(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)-montage $(TARGET_DIR)/usr/bin/montage
|
2007-10-01 18:15:31 +02:00
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/montage
|
2007-08-21 21:33:00 +02:00
|
|
|
touch $@
|
2007-07-27 09:48:56 +02:00
|
|
|
|
2007-08-20 19:21:16 +02:00
|
|
|
$(TARGET_DIR)/usr/bin/convert: $(IMAGEMAGICK_LIB)
|
2007-07-27 09:48:56 +02:00
|
|
|
$(IMAGEMAGICK_COPY) $(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)-convert $(TARGET_DIR)/usr/bin/convert
|
2007-10-01 18:15:31 +02:00
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/convert
|
2007-08-21 21:33:00 +02:00
|
|
|
touch $@
|
2007-07-23 11:06:34 +02:00
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
imagemagick: jpeg tiff $(IMAGEMAGICK_LIB) \
|
2007-08-21 21:33:00 +02:00
|
|
|
$(IMAGEMAGICK_DIR)/.libinstall \
|
2007-07-27 09:48:56 +02:00
|
|
|
$(IMAGEMAGICK_TARGET_BINARIES)
|
2007-07-23 11:06:34 +02:00
|
|
|
|
2008-02-19 14:39:25 +01:00
|
|
|
imagemagick-source: $(DL_DIR)/$(IMAGEMAGICK_SOURCE)
|
|
|
|
|
2009-01-12 08:42:09 +01:00
|
|
|
imagemagick-unpacked:$(IMAGEMAGICK_DIR)/.unpacked
|
|
|
|
|
2007-07-23 11:06:34 +02:00
|
|
|
imagemagick-clean:
|
2009-10-13 14:23:08 +02:00
|
|
|
for target_binary in $(IMAGEMAGICK_TARGET_BINARIES); do \
|
|
|
|
rm -f $$target_binary; \
|
|
|
|
done
|
2009-10-01 22:11:59 +02:00
|
|
|
rm -rf $(TARGET_DIR)/usr/lib/libMagick*
|
|
|
|
rm -rf $(TARGET_DIR)/usr/lib/ImageMagick-$(IMAGEMAGICK_MAJOR)
|
2007-07-23 11:06:34 +02:00
|
|
|
-$(MAKE) -C $(IMAGEMAGICK_DIR) clean
|
|
|
|
|
|
|
|
imagemagick-dirclean:
|
|
|
|
rm -rf $(IMAGEMAGICK_DIR)
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_IMAGEMAGICK),y)
|
2007-07-23 11:06:34 +02:00
|
|
|
TARGETS+=imagemagick
|
|
|
|
endif
|