components/imagemagick/Makefile
changeset 5638 b88b6c00208e
parent 4959 a998fbbcbd44
child 5682 94c0ca64c022
equal deleted inserted replaced
5636:de01957cc68c 5638:b88b6c00208e
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 
    25 
    26 include ../../make-rules/shared-macros.mk
    26 include ../../make-rules/shared-macros.mk
    27 
    27 
    28 COMPONENT_NAME=			ImageMagick
    28 COMPONENT_NAME=			ImageMagick
    50 IPS_COMPONENT_VERSION=	$(COMPONENT_VERSION).$(COMPONENT_SUBVERSION)
    50 IPS_COMPONENT_VERSION=	$(COMPONENT_VERSION).$(COMPONENT_SUBVERSION)
    51 
    51 
    52 COMPONENT_POST_UNPACK_ACTION= ( $(MV) $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION) \
    52 COMPONENT_POST_UNPACK_ACTION= ( $(MV) $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION) \
    53     $(COMPONENT_SRC))
    53     $(COMPONENT_SRC))
    54 
    54 
    55 # To get the Perl modules built it is necessary to copy the PerlMagick directory
    55 # To get the Perl modules built it is necessary to copy the PerlMagick
    56 # to the build directory
    56 # directory to the build directory
    57 COMPONENT_PRE_CONFIGURE_ACTION= ($(CP) -R $(SOURCE_DIR)/PerlMagick $(@D))
    57 COMPONENT_PRE_CONFIGURE_ACTION= ($(CP) -R $(SOURCE_DIR)/PerlMagick $(@D))
    58 
    58 
    59 ifeq ($(OS_VERSION),5.11)
    59 ifeq ($(OS_VERSION),5.11)
    60 LIBS += -lsocket -lnsl
    60 LIBS += -lsocket -lnsl
    61 CONFIGURE_ENV += LIBS="$(LIBS)"
    61 CONFIGURE_ENV += LIBS="$(LIBS)"
    84 CONFIGURE_OPTIONS+= --with-fontconfig=no
    84 CONFIGURE_OPTIONS+= --with-fontconfig=no
    85 # Configure option 'with-gs-font-dir' is required because some build systems
    85 # Configure option 'with-gs-font-dir' is required because some build systems
    86 # might not have ghostscript fonts installed.
    86 # might not have ghostscript fonts installed.
    87 CONFIGURE_OPTIONS+= --with-gs-font-dir="/usr/share/ghostscript/fonts"
    87 CONFIGURE_OPTIONS+= --with-gs-font-dir="/usr/share/ghostscript/fonts"
    88 CONFIGURE_OPTIONS+= --x-libraries=$(CONFIGURE_LIBDIR.$(BITS)) 
    88 CONFIGURE_OPTIONS+= --x-libraries=$(CONFIGURE_LIBDIR.$(BITS)) 
    89 CONFIGURE_OPTIONS.32+= --with-perl=$(PERL)
    89 CONFIGURE_OPTIONS.32+= --without-perl
    90 CONFIGURE_OPTIONS.32+= --with-perl-options="INSTALLDIRS=vendor"
    90 CONFIGURE_OPTIONS.64+= --with-perl=$(PERL)
    91 CONFIGURE_OPTIONS.64+= --without-perl
    91 CONFIGURE_OPTIONS.64+= --with-perl-options="INSTALLDIRS=vendor"
    92 
    92 
    93 # Needed for "gmake test" to work successfully.  If SHELLOPTS is exported (as
    93 # Needed for "gmake test" to work successfully.  If SHELLOPTS is exported (as
    94 # it is by the Userland Makefiles), then all shell options get exported to
    94 # it is by the Userland Makefiles), then all shell options get exported to
    95 # child invocations of bash, which results in test failures due to nounset and
    95 # child invocations of bash, which results in test failures due to nounset and
    96 # xtrace being set unexpectedly, and errors such as "$1: unbound variable" and
    96 # xtrace being set unexpectedly, and errors such as "$1: unbound variable" and