Andreas Wacknitz
2024-04-09 7bea32fd382fe993229cd2db29c3a13cb8138b09
commit | author | age
bbaf7a 1 #
AP 2 # CDDL HEADER START
3 #
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.
7 #
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.
12 #
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]
18 #
19 # CDDL HEADER END
20 #
21
22 #
68c100 23 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
5dfbed 24 # Copyright (c) 2023, Andreas Wacknitz
bbaf7a 25 #
827a06 26
5dfbed 27 BUILD_BITS= 64
dc4b3e 28 USE_PARALLEL_BUILD= yes
827a06 29 USE_DEFAULT_TEST_TRANSFORMS= yes
bbaf7a 30 include ../../../make-rules/shared-macros.mk
AP 31
32 COMPONENT_NAME=            ImageMagick
5dfbed 33 COMPONENT_VERSION=        7.1.1
6888e1 34 COMPONENT_SUBVERSION=        30
bbaf7a 35 HUMAN_VERSION=            $(COMPONENT_VERSION)-$(COMPONENT_SUBVERSION)
8f8bee 36 IPS_COMPONENT_VERSION=    $(COMPONENT_VERSION).$(COMPONENT_SUBVERSION)
bbaf7a 37 COMPONENT_SUMMARY=        ImageMagick - Image Manipulation Utilities and Libraries
42e67e 38 COMPONENT_PROJECT_URL=    https://imagemagick.org
5dfbed 39 COMPONENT_SRC=            $(COMPONENT_NAME)-$(COMPONENT_VERSION)-$(COMPONENT_SUBVERSION)
563d9d 40 COMPONENT_ARCHIVE=        $(COMPONENT_NAME)-$(HUMAN_VERSION).tar.gz
6888e1 41 COMPONENT_ARCHIVE_HASH=    sha256:1f719ceb809e9b9b5f485af121be3df328c0acec6f714f5875a9bfb1512de074
5dfbed 42 COMPONENT_ARCHIVE_URL=    https://github.com/ImageMagick/ImageMagick/archive/$(HUMAN_VERSION).tar.gz
827a06 43 COMPONENT_FMRI=            image/imagemagick
AW 44 COMPONENT_CLASSIFICATION=    System/Multimedia Libraries
8f8bee 45 COMPONENT_LICENSE= Apache 2.0 license
AW 46 COMPONENT_LICENSE_FILE= LICENSE
bbaf7a 47
8f8bee 48 include $(WS_MAKE_RULES)/common.mk
bbaf7a 49
5dfbed 50 COMPONENT_PREP_ACTION = ( cd $(@D) && libtoolize -f && autoreconf -fi )
bbaf7a 51
AP 52 # To get the Perl modules built it is necessary to copy the PerlMagick directory
53 # to the build directory
54 #
5dfbed 55 COMPONENT_PRE_CONFIGURE_ACTION= ( $(CP) -R $(SOURCE_DIR)/PerlMagick $(@D) )
bbaf7a 56
AP 57 # Don't use rpath, or relink!
58 COMPONENT_POST_CONFIGURE_ACTION = \
59     (cd $(BUILD_DIR_$(BITS)) ; \
60     $(GSED) -i \
61     -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
62     -e 's|need_relink=yes|need_relink=not_on_solaris|' \
63     libtool)
64
65 LIBS += -lsocket -lnsl
66 CONFIGURE_ENV += LIBS="$(LIBS)"
67
68c100 68 # build with the distribution preferred libjpeg implementation
AL 69 CFLAGS   += $(JPEG_CPPFLAGS) $(JPEG_CFLAGS)
70 CXXFLAGS += $(JPEG_CPPFLAGS) $(JPEG_CXXFLAGS)
71 LDFLAGS  += $(JPEG_LDFLAGS)
bbaf7a 72
5dfbed 73 CONFIGURE_OPTIONS += --with-modules
AW 74 CONFIGURE_OPTIONS += --enable-shared
75 CONFIGURE_OPTIONS += --disable-static
bbaf7a 76 # Using option 'with-fontconfig=no' so that the fonts/fonts path specified in
AP 77 # configuration file 'type-ghostscript.xml' is being used.
5dfbed 78 #CONFIGURE_OPTIONS+= --with-fontconfig=no
bbaf7a 79 # Configure option 'with-gs-font-dir' is required because some build systems might 
AP 80 # not have ghostscript fonts installed.
5dfbed 81 CONFIGURE_OPTIONS += --with-gs-font-dir="/usr/share/ghostscript/fonts"
AW 82 CONFIGURE_OPTIONS += --x-libraries=$(CONFIGURE_LIBDIR.$(BITS)) 
83 CONFIGURE_OPTIONS += --with-perl=$(PERL)
84 CONFIGURE_OPTIONS += --with-perl-options="INSTALLDIRS=vendor"
4ee745 85 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
5dfbed 86
AW 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
9a68c5 90
AP 91 # Tests hang waiting for input unless stdin is redirected.
92 COMPONENT_TEST_TARGETS = check < /dev/null
93
aa81e1 94 # PKGVERS is needed for manifest processing
MT 95 PKG_MACROS += PERLVER=$(PERL_VERSION)
96
68c100 97 # Build dependencies
AL 98 REQUIRED_PACKAGES += print/filter/ghostscript/fonts/gnu-gs-fonts-std
99
100 # Auto-generated dependencies
563d9d 101 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
MT 102 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
827a06 103 REQUIRED_PACKAGES += $(JPEG_IMPLEM_PKG)
bbaf7a 104 REQUIRED_PACKAGES += compress/bzip2
AP 105 REQUIRED_PACKAGES += compress/xz
106 REQUIRED_PACKAGES += image/djvulibre
5dfbed 107 REQUIRED_PACKAGES += image/graphviz
6888e1 108 REQUIRED_PACKAGES += image/library/libjpeg-turbo
bbaf7a 109 REQUIRED_PACKAGES += image/library/libpng16
8c1e0e 110 REQUIRED_PACKAGES += image/library/libraw
bbaf7a 111 REQUIRED_PACKAGES += image/library/libtiff
AP 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
5dfbed 120 REQUIRED_PACKAGES += library/libzip
68c100 121 REQUIRED_PACKAGES += library/openexr
bbaf7a 122 REQUIRED_PACKAGES += library/zlib
563d9d 123 REQUIRED_PACKAGES += shell/ksh93
bbaf7a 124 REQUIRED_PACKAGES += system/library
5dfbed 125 REQUIRED_PACKAGES += system/library/fontconfig
bbaf7a 126 REQUIRED_PACKAGES += system/library/freetype-2
AP 127 REQUIRED_PACKAGES += system/library/math
128 REQUIRED_PACKAGES += x11/library/libx11
129 REQUIRED_PACKAGES += x11/library/libxext