w3m: switch to openssl 3.1
[oi-userland.git] / components / image / imagemagick / Makefile
blobd6292f2cc1277b4ef8515b0a19a3b426b2cb37bc
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= 34
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:19f4303774b56be182c576b266c34bc824fcaef1d1d243192344d015adb0ec28
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 # build with the distribution preferred libjpeg implementation
68 CFLAGS += $(JPEG_CPPFLAGS) $(JPEG_CFLAGS)
69 CXXFLAGS += $(JPEG_CPPFLAGS) $(JPEG_CXXFLAGS)
70 LDFLAGS += $(JPEG_LDFLAGS)
72 CONFIGURE_OPTIONS += --with-modules
73 CONFIGURE_OPTIONS += --enable-shared
74 CONFIGURE_OPTIONS += --disable-static
75 # Using option 'with-fontconfig=no' so that the fonts/fonts path specified in
76 # configuration file 'type-ghostscript.xml' is being used.
77 #CONFIGURE_OPTIONS+= --with-fontconfig=no
78 # Configure option 'with-gs-font-dir' is required because some build systems might
79 # not have ghostscript fonts installed.
80 CONFIGURE_OPTIONS += --with-gs-font-dir="/usr/share/ghostscript/fonts"
81 CONFIGURE_OPTIONS += --x-libraries=$(CONFIGURE_LIBDIR.$(BITS))
82 CONFIGURE_OPTIONS += --with-perl=$(PERL)
83 CONFIGURE_OPTIONS += --with-perl-options="INSTALLDIRS=vendor"
84 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
85 CONFIGURE_OPTIONS += --mandir=$(USRSHAREMANDIR)
87 # As of version 7.1.0-34, a "Linux-compatible sendfile()" is detected;
88 # override thiis.
89 CONFIGURE_OPTIONS += ac_cv_have_linux_sendfile=no
91 # Tests hang waiting for input unless stdin is redirected.
92 COMPONENT_TEST_TARGETS = check < /dev/null
94 # PKGVERS is needed for manifest processing
95 PKG_MACROS += PERLVER=$(PERL_VERSION)
97 # Build dependencies
98 REQUIRED_PACKAGES += print/filter/ghostscript/fonts/gnu-gs-fonts-std
100 # Auto-generated dependencies
101 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
102 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
103 REQUIRED_PACKAGES += $(JPEG_IMPLEM_PKG)
104 REQUIRED_PACKAGES += compress/bzip2
105 REQUIRED_PACKAGES += compress/xz
106 REQUIRED_PACKAGES += image/djvulibre
107 REQUIRED_PACKAGES += image/graphviz
108 REQUIRED_PACKAGES += image/library/libjpeg-turbo
109 REQUIRED_PACKAGES += image/library/libpng16
110 REQUIRED_PACKAGES += image/library/libraw
111 REQUIRED_PACKAGES += image/library/libtiff
112 REQUIRED_PACKAGES += image/library/openjpeg
113 REQUIRED_PACKAGES += library/desktop/cairo
114 REQUIRED_PACKAGES += library/desktop/pango
115 REQUIRED_PACKAGES += library/glib2
116 REQUIRED_PACKAGES += library/lcms2
117 REQUIRED_PACKAGES += library/libtool/libltdl
118 REQUIRED_PACKAGES += library/libwebp
119 REQUIRED_PACKAGES += library/libxml2
120 REQUIRED_PACKAGES += library/libzip
121 REQUIRED_PACKAGES += library/openexr
122 REQUIRED_PACKAGES += library/zlib
123 REQUIRED_PACKAGES += shell/ksh93
124 REQUIRED_PACKAGES += system/library
125 REQUIRED_PACKAGES += system/library/fontconfig
126 REQUIRED_PACKAGES += system/library/freetype-2
127 REQUIRED_PACKAGES += system/library/math
128 REQUIRED_PACKAGES += x11/library/libx11
129 REQUIRED_PACKAGES += x11/library/libxext