developer/check: configure: WARNING: filterdiff not installed; build will not be...
[oi-userland.git] / components / image / imagemagick / Makefile
blobfd92399e7eb38b2f6f5398ec7a987f2106e6c5d5
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2023, Andreas Wacknitz
27 USE_PARALLEL_BUILD= yes
28 USE_DEFAULT_TEST_TRANSFORMS= yes
29 include ../../../make-rules/shared-macros.mk
31 COMPONENT_NAME= ImageMagick
32 COMPONENT_VERSION= 7.1.1
33 COMPONENT_SUBVERSION= 40
34 HUMAN_VERSION= $(COMPONENT_VERSION)-$(COMPONENT_SUBVERSION)
35 IPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_SUBVERSION)
36 COMPONENT_SUMMARY= ImageMagick - Image Manipulation Utilities and Libraries
37 COMPONENT_PROJECT_URL= https://imagemagick.org
38 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)-$(COMPONENT_SUBVERSION)
39 COMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(HUMAN_VERSION).tar.gz
40 COMPONENT_ARCHIVE_HASH= sha256:a6aba2cfd9c20c909614b332d8b91b389909e233041aa46d29db9e371c6f114a
41 COMPONENT_ARCHIVE_URL= https://github.com/ImageMagick/ImageMagick/archive/$(HUMAN_VERSION).tar.gz
42 COMPONENT_FMRI= image/imagemagick
43 COMPONENT_CLASSIFICATION= System/Multimedia Libraries
44 COMPONENT_LICENSE= Apache 2.0 license
45 COMPONENT_LICENSE_FILE= LICENSE
47 include $(WS_MAKE_RULES)/common.mk
49 COMPONENT_PREP_ACTION = ( cd $(@D) && libtoolize -f && autoreconf -fi )
51 # To get the Perl modules built it is necessary to copy the PerlMagick directory
52 # to the build directory
54 COMPONENT_PRE_CONFIGURE_ACTION= ( $(CP) -R $(SOURCE_DIR)/PerlMagick $(@D) )
56 # Don't use rpath, or relink!
57 COMPONENT_POST_CONFIGURE_ACTION = \
58 (cd $(BUILD_DIR_$(BITS)) ; \
59 $(GSED) -i \
60 -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
61 -e 's|need_relink=yes|need_relink=not_on_solaris|' \
62 libtool)
64 LIBS += -lsocket -lnsl
65 CONFIGURE_ENV += LIBS="$(LIBS)"
67 CONFIGURE_OPTIONS += --with-modules
68 CONFIGURE_OPTIONS += --enable-shared
69 CONFIGURE_OPTIONS += --disable-static
70 # Using option 'with-fontconfig=no' so that the fonts/fonts path specified in
71 # configuration file 'type-ghostscript.xml' is being used.
72 #CONFIGURE_OPTIONS+= --with-fontconfig=no
73 # Configure option 'with-gs-font-dir' is required because some build systems might
74 # not have ghostscript fonts installed.
75 CONFIGURE_OPTIONS += --with-gs-font-dir="/usr/share/ghostscript/fonts"
76 CONFIGURE_OPTIONS += --x-libraries=$(CONFIGURE_LIBDIR.$(BITS))
77 CONFIGURE_OPTIONS += --with-perl=$(PERL)
78 CONFIGURE_OPTIONS += --with-perl-options="INSTALLDIRS=vendor"
79 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
80 CONFIGURE_OPTIONS += --mandir=$(USRSHAREMANDIR)
82 # As of version 7.1.0-34, a "Linux-compatible sendfile()" is detected;
83 # override thiis.
84 CONFIGURE_OPTIONS += ac_cv_have_linux_sendfile=no
86 # Tests hang waiting for input unless stdin is redirected.
87 COMPONENT_TEST_TARGETS = check < /dev/null
89 # PKGVERS is needed for manifest processing
90 PKG_MACROS += PERLVER=$(PERL_VERSION)
92 # Build dependencies
93 REQUIRED_PACKAGES += print/filter/ghostscript/fonts/gnu-gs-fonts-std
95 # Auto-generated dependencies
96 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
97 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
98 REQUIRED_PACKAGES += $(JPEG_IMPLEM_PKG)
99 REQUIRED_PACKAGES += compress/bzip2
100 REQUIRED_PACKAGES += compress/xz
101 REQUIRED_PACKAGES += image/djvulibre
102 REQUIRED_PACKAGES += image/graphviz
103 REQUIRED_PACKAGES += image/library/libpng16
104 REQUIRED_PACKAGES += image/library/libraw
105 REQUIRED_PACKAGES += image/library/libtiff
106 REQUIRED_PACKAGES += image/library/openjpeg
107 REQUIRED_PACKAGES += library/desktop/cairo
108 REQUIRED_PACKAGES += library/desktop/pango
109 REQUIRED_PACKAGES += library/glib2
110 REQUIRED_PACKAGES += library/lcms2
111 REQUIRED_PACKAGES += library/libtool/libltdl
112 REQUIRED_PACKAGES += library/libwebp
113 REQUIRED_PACKAGES += library/libxml2
114 REQUIRED_PACKAGES += library/libzip
115 REQUIRED_PACKAGES += library/openexr
116 REQUIRED_PACKAGES += library/zlib
117 REQUIRED_PACKAGES += shell/ksh93
118 REQUIRED_PACKAGES += system/library
119 REQUIRED_PACKAGES += system/library/fontconfig
120 REQUIRED_PACKAGES += system/library/freetype-2
121 REQUIRED_PACKAGES += system/library/math
122 REQUIRED_PACKAGES += x11/library/libx11
123 REQUIRED_PACKAGES += x11/library/libxext