Host's libfreetype is being linked during build. libtool: warning: relinking 'MagickWand/libMagickWand-7.Q8.la' libtool: install: (cd /home/egorenar/Repositories/openwrt-rel/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/ImageMagick-7.0.9-5; /bin/sh "/home/egorenar/Repositories/openwrt-rel/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/ImageMagick-7.0.9-5/libtool" --tag CC --mode=relink arm-openwrt-linux-muslgnueabi-gcc -I/home/egorenar/Repositories/openwrt-rel/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/include/libpng16 -I/home/egorenar/Repositories/openwrt-rel/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/include -I/home/egorenar/Repositories/openwrt-rel/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/include/freetype2 -I/home/egorenar/Repositories/openwrt-rel/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/include -I/home/egorenar/Repositories/openwrt-rel/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/include/libpng16 -I/home/egorenar/Repositories/openwrt-rel/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/include -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -fmacro-prefix-map=/home/egorenar/Repositories/openwrt-rel/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/ImageMagick-7.0.9-5=ImageMagick-7.0.9-5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -Wall -fexceptions -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=8 -no-undefined -Wl,--version-script=./MagickWand/libMagickWand.map -version-info 7:0:0 -L/home/egorenar/Repositories/openwrt-rel/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-8.4.0_musl_eabi/usr/lib -L/home/egorenar/Repositories/openwrt-rel/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-8.4.0_musl_eabi/lib -znow -zrelro -o MagickWand/libMagickWand-7.Q8.la -rpath /usr/lib MagickWand/libMagickWand_7_Q8_la-animate.lo MagickWand/libMagickWand_7_Q8_la-compare.lo MagickWand/libMagickWand_7_Q8_la-composite.lo MagickWand/libMagickWand_7_Q8_la-conjure.lo MagickWand/libMagickWand_7_Q8_la-convert.lo MagickWand/libMagickWand_7_Q8_la-deprecate.lo MagickWand/libMagickWand_7_Q8_la-display.lo MagickWand/libMagickWand_7_Q8_la-drawing-wand.lo MagickWand/libMagickWand_7_Q8_la-identify.lo MagickWand/libMagickWand_7_Q8_la-import.lo MagickWand/libMagickWand_7_Q8_la-magick-cli.lo MagickWand/libMagickWand_7_Q8_la-magick-image.lo MagickWand/libMagickWand_7_Q8_la-magick-property.lo MagickWand/libMagickWand_7_Q8_la-magick-wand.lo MagickWand/libMagickWand_7_Q8_la-mogrify.lo MagickWand/libMagickWand_7_Q8_la-montage.lo MagickWand/libMagickWand_7_Q8_la-operation.lo MagickWand/libMagickWand_7_Q8_la-pixel-iterator.lo MagickWand/libMagickWand_7_Q8_la-pixel-wand.lo MagickWand/libMagickWand_7_Q8_la-script-token.lo MagickWand/libMagickWand_7_Q8_la-stream.lo MagickWand/libMagickWand_7_Q8_la-wand.lo MagickWand/libMagickWand_7_Q8_la-wandcli.lo MagickWand/libMagickWand_7_Q8_la-wand-view.lo MagickCore/libMagickCore-7.Q8.la -lm -inst-prefix-dir /home/egorenar/Repositories/openwrt-rel/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/ImageMagick-7.0.9-5/ipkg-install) libtool: relink: arm-openwrt-linux-muslgnueabi-gcc -shared -fPIC -DPIC MagickWand/.libs/libMagickWand_7_Q8_la-animate.o MagickWand/.libs/libMagickWand_7_Q8_la-compare.o MagickWand/.libs/libMagickWand_7_Q8_la-composite.o MagickWand/.libs/libMagickWand_7_Q8_la-conjure.o MagickWand/.libs/libMagickWand_7_Q8_la-convert.o MagickWand/.libs/libMagickWand_7_Q8_la-deprecate.o MagickWand/.libs/libMagickWand_7_Q8_la-display.o MagickWand/.libs/libMagickWand_7_Q8_la-drawing-wand.o MagickWand/.libs/libMagickWand_7_Q8_la-identify.o MagickWand/.libs/libMagickWand_7_Q8_la-import.o MagickWand/.libs/libMagickWand_7_Q8_la-magick-cli.o MagickWand/.libs/libMagickWand_7_Q8_la-magick-image.o MagickWand/.libs/libMagickWand_7_Q8_la-magick-property.o MagickWand/.libs/libMagickWand_7_Q8_la-magick-wand.o MagickWand/.libs/libMagickWand_7_Q8_la-mogrify.o MagickWand/.libs/libMagickWand_7_Q8_la-montage.o MagickWand/.libs/libMagickWand_7_Q8_la-operation.o MagickWand/.libs/libMagickWand_7_Q8_la-pixel-iterator.o MagickWand/.libs/libMagickWand_7_Q8_la-pixel-wand.o MagickWand/.libs/libMagickWand_7_Q8_la-script-token.o MagickWand/.libs/libMagickWand_7_Q8_la-stream.o MagickWand/.libs/libMagickWand_7_Q8_la-wand.o MagickWand/.libs/libMagickWand_7_Q8_la-wandcli.o MagickWand/.libs/libMagickWand_7_Q8_la-wand-view.o -L/home/egorenar/Repositories/openwrt-rel/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-8.4.0_musl_eabi/usr/lib -L/home/egorenar/Repositories/openwrt-rel/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-8.4.0_musl_eabi/lib -L/home/egorenar/Repositories/openwrt-rel/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/ImageMagick-7.0.9-5/ipkg-install/usr/lib -L/usr/lib -lMagickCore-7.Q8 -L/home/egorenar/Repositories/openwrt-rel/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/lib -lfreetype -lz -lltdl -lm -Os -mfloat-abi=hard -fstack-protector -Wl,-z -Wl,now -Wl,-z -Wl,relro -flto -pthread -Wl,--version-script=./MagickWand/libMagickWand.map -pthread -Wl,-soname -Wl,libMagickWand-7.Q8.so.7 -o MagickWand/.libs/libMagickWand-7.Q8.so.7.0.0 /usr/lib/libfreetype.so: file not recognized: file format not recognized collect2: error: ld returned 1 exit status libtool: error: error: relink 'MagickWand/libMagickWand-7.Q8.la' with the above command before installing it make[5]: *** [Makefile:6264: install-libLTLIBRARIES] Error 1 make[5]: Leaving directory '/home/egorenar/Repositories/openwrt-rel/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/ImageMagick-7.0.9-5' make[4]: *** [Makefile:12263: install-am] Error 2 make[4]: Leaving directory '/home/egorenar/Repositories/openwrt-rel/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/ImageMagick-7.0.9-5' make[3]: *** [Makefile:12257: install] Error 2 make[3]: Leaving directory '/home/egorenar/Repositories/openwrt-rel/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/ImageMagick-7.0.9-5' make[2]: *** [Makefile:153: /home/egorenar/Repositories/openwrt-rel/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/ImageMagick-7.0.9-5/.built] Error 2 make[2]: Leaving directory '/home/egorenar/Repositories/openwrt-rel/feeds/packages/multimedia/imagemagick' time: package/feeds/packages/imagemagick/compile#105.77#18.23#212.14 ERROR: package/feeds/packages/imagemagick failed to build. make[1]: *** [package/Makefile:114: package/feeds/packages/imagemagick/compile] Error 1 make[1]: Leaving directory '/home/egorenar/Repositories/openwrt-rel' make: *** [/home/egorenar/Repositories/openwrt-rel/include/toplevel.mk:230: package/imagemagick/compile] Error 2 Signed-off-by: Alexander Egorenkov <egorenar-dev@posteo.net>
149 lines
3.7 KiB
Makefile
149 lines
3.7 KiB
Makefile
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=imagemagick
|
|
PKG_VERSION:=7.0.9
|
|
PKG_REVISION:=5
|
|
PKG_RELEASE:=4
|
|
PKG_MAINTAINER:=Val Kulkov <val.kulkov@gmail.com>
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REVISION).tar.gz
|
|
PKG_SOURCE_URL:=http://github.com/ImageMagick/ImageMagick/archive/$(PKG_VERSION)-$(PKG_REVISION)
|
|
PKG_HASH:=d15abd31e7e18f7edec47df156773a23e5100386e55c6ce50f5353e9572d3413
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/ImageMagick-$(PKG_VERSION)-$(PKG_REVISION)
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
PKG_LICENSE:=Apache-2.0
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
PKG_CPE_ID:=cpe:/a:imagemagick:imagemagick
|
|
|
|
PKG_USE_MIPS16:=0
|
|
PKG_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/imagemagick/Default
|
|
SECTION:=multimedia
|
|
CATEGORY:=Multimedia
|
|
TITLE:=Image manipulation tools
|
|
URL:=https://www.imagemagick.org/
|
|
endef
|
|
|
|
define Package/imagemagick
|
|
$(call Package/imagemagick/Default)
|
|
DEPENDS:=+libltdl +libpthread +zlib +libfreetype +libpng +libjpeg +libtiff
|
|
endef
|
|
|
|
define Package/imagemagick/description
|
|
ImageMagick is a free and open-source software suite for displaying,
|
|
converting, and editing raster image and vector image files.
|
|
NOTE: this package may not be suitable for many embedded devices because
|
|
of its large size. Consider using extroot or alternatively consider
|
|
graphicsmagick which is smaller but similar in functionality.
|
|
endef
|
|
|
|
define Package/imagemagick/conffiles
|
|
/etc/ImageMagick-7/colors.xml
|
|
/etc/ImageMagick-7/delegates.xml
|
|
/etc/ImageMagick-7/log.xml
|
|
/etc/ImageMagick-7/mime.xml
|
|
/etc/ImageMagick-7/policy.xml
|
|
/etc/ImageMagick-7/quantization-table.xml
|
|
/etc/ImageMagick-7/thresholds.xml
|
|
/etc/ImageMagick-7/type-apple.xml
|
|
/etc/ImageMagick-7/type-dejavu.xml
|
|
/etc/ImageMagick-7/type-ghostscript.xml
|
|
/etc/ImageMagick-7/type-urw-base35.xml
|
|
/etc/ImageMagick-7/type-windows.xml
|
|
/etc/ImageMagick-7/type.xml
|
|
endef
|
|
|
|
CONFIGURE_ARGS += \
|
|
--enable-shared \
|
|
--disable-static \
|
|
--disable-docs \
|
|
--enable-dependency-tracking \
|
|
--with-modules \
|
|
--with-threads \
|
|
--with-ltdl \
|
|
--with-zlib \
|
|
--disable-hdri \
|
|
--with-quantum-depth=8 \
|
|
--disable-deprecated \
|
|
--disable-cipher \
|
|
--without-bzlib \
|
|
--without-autotrace \
|
|
--without-djvu \
|
|
--without-dps \
|
|
--without-fftw \
|
|
--without-flif \
|
|
--without-fpx \
|
|
--without-fontconfig \
|
|
--without-gslib \
|
|
--without-gvc \
|
|
--without-heic \
|
|
--without-jbig \
|
|
--without-lcms \
|
|
--without-lqr \
|
|
--without-lzma \
|
|
--without-magick-plus-plus \
|
|
--without-openexr \
|
|
--without-openjp2 \
|
|
--without-raqm \
|
|
--without-raw \
|
|
--without-webp \
|
|
--without-x \
|
|
--without-zstd \
|
|
--without-gslib \
|
|
--without-gvc \
|
|
--without-pango \
|
|
--without-perl \
|
|
--without-rsvg \
|
|
--without-wmf \
|
|
--without-xml \
|
|
--with-freetype \
|
|
--with-jpeg \
|
|
--with-png \
|
|
--with-tiff
|
|
|
|
TARGET_CFLAGS += $(if $(CONFIG_GCC_USE_VERSION_10),,-flto)
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/include/* \
|
|
$(1)/usr/include/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
|
|
$(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
$(INSTALL_DATA) \
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
|
|
$(1)/usr/lib/pkgconfig/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) \
|
|
$(PKG_INSTALL_DIR)/usr/bin/*-config \
|
|
$(1)/usr/bin/
|
|
$(SED) 's|prefix=/usr|prefix=$(STAGING_DIR)/usr|' \
|
|
$(1)/usr/bin/*-config
|
|
endef
|
|
|
|
IMlibdir:=usr/lib/ImageMagick-$(PKG_VERSION)
|
|
define Package/imagemagick/install
|
|
$(INSTALL_DIR) $(1)/etc $(1)/usr/bin $(1)/$(IMlibdir)
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
|
|
$(RM) $(1)/usr/bin/*-config
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/ImageMagick-* $(1)/etc/
|
|
$(CP) $(PKG_INSTALL_DIR)/$(IMlibdir)/* $(1)/$(IMlibdir)/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,imagemagick))
|