components/lcms/Makefile
changeset 5682 94c0ca64c022
parent 5125 34cc580c62c2
child 7294 61f1f259467a
equal deleted inserted replaced
5681:b8fe51f35344 5682:94c0ca64c022
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
    21 
    22 #
    22 #
       
    23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 BUILD_BITS= 64_and_32
    23 include ../../make-rules/shared-macros.mk
    26 include ../../make-rules/shared-macros.mk
    24 
    27 
    25 COMPONENT_NAME =        lcms
    28 COMPONENT_NAME =        lcms
    26 COMPONENT_VERSION=      1.19
    29 COMPONENT_VERSION=      1.19
    27 COMPONENT_SRC=          $(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    28 COMPONENT_PROJECT_URL=  http://www.littlecms.com/
    30 COMPONENT_PROJECT_URL=  http://www.littlecms.com/
    29 COMPONENT_ARCHIVE=      $(COMPONENT_SRC).tar.gz
       
    30 COMPONENT_ARCHIVE_HASH= \
    31 COMPONENT_ARCHIVE_HASH= \
    31     sha256:80ae32cb9f568af4dc7ee4d3c05a4c31fc513fc3e31730fed0ce7378237273a9
    32     sha256:80ae32cb9f568af4dc7ee4d3c05a4c31fc513fc3e31730fed0ce7378237273a9
    32 COMPONENT_ARCHIVE_URL=  http://sourceforge.net/projects/lcms/files/lcms/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
    33 COMPONENT_ARCHIVE_URL=  http://sourceforge.net/projects/lcms/files/lcms/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
    33 COMPONENT_BUGDB=	utility/lcms
       
    34 
    34 
    35 TPNO=			9072
    35 TPNO=			9072
    36 
    36 
    37 include $(WS_MAKE_RULES)/prep.mk
    37 include $(WS_MAKE_RULES)/common.mk
    38 include $(WS_MAKE_RULES)/configure.mk
       
    39 include $(WS_MAKE_RULES)/ips.mk
       
    40 include $(WS_MAKE_RULES)/lint-libraries.mk
       
    41 
    38 
    42 PATCH_LEVEL = 0
    39 PATCH_LEVEL = 0
    43 
    40 
    44 # adding to the C++ compiler because libtool appears to strip it from CXXFLAGS
    41 # adding to the C++ compiler because libtool appears to strip it from CXXFLAGS
    45 CXX +=	$(studio_NORUNPATH)
    42 CXX +=	$(studio_NORUNPATH)
    59 
    56 
    60 # non-default C++ flags
    57 # non-default C++ flags
    61 CXXFLAGS += -features=extensions,nestedaccess,tmplrefstatic
    58 CXXFLAGS += -features=extensions,nestedaccess,tmplrefstatic
    62 CXXFLAGS += -template=geninlinefuncs
    59 CXXFLAGS += -template=geninlinefuncs
    63 
    60 
    64 CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
       
    65 CONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
       
    66 CONFIGURE_ENV += PYTHON="$(PYTHON)"
    61 CONFIGURE_ENV += PYTHON="$(PYTHON)"
    67 CONFIGURE_ENV += PYTHONMODULEDIR="$(PYTHON_VENDOR_PACKAGES)"
    62 CONFIGURE_ENV += PYTHONMODULEDIR="$(PYTHON_VENDOR_PACKAGES)"
    68 
    63 
    69 CONFIGURE_OPTIONS  +=           --includedir=/usr/include/lcms
    64 CONFIGURE_OPTIONS  +=           --includedir=$(USRINCDIR)/lcms
    70 CONFIGURE_OPTIONS  +=           --enable-shared
    65 CONFIGURE_OPTIONS  +=           --enable-shared
    71 CONFIGURE_OPTIONS  +=           --disable-static
    66 CONFIGURE_OPTIONS  +=           --disable-static
    72 CONFIGURE_OPTIONS  +=           --with-jpeg
    67 CONFIGURE_OPTIONS  +=           --with-jpeg
    73 CONFIGURE_OPTIONS  +=           --with-tiff
    68 CONFIGURE_OPTIONS  +=           --with-tiff
    74 CONFIGURE_OPTIONS  +=           --with-zlib
    69 CONFIGURE_OPTIONS  +=           --with-zlib
    75 CONFIGURE_OPTIONS  +=           --with-python
    70 CONFIGURE_OPTIONS  +=           --with-python
    76 CONFIGURE_OPTIONS  +=           --with-pic
    71 CONFIGURE_OPTIONS  +=           --with-pic
    77 
       
    78 PKG_PROTO_DIRS +=	$(COMPONENT_SRC)
       
    79 
    72 
    80 # in order to run the tests, we need to use cloney
    73 # in order to run the tests, we need to use cloney
    81 COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
    74 COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
    82 
    75 
    83 COMPONENT_POST_CONFIGURE_ACTION = \
    76 COMPONENT_POST_CONFIGURE_ACTION = \
    86     $(RM) -f $(SOURCE_DIR)/include/icc34.h ; \
    79     $(RM) -f $(SOURCE_DIR)/include/icc34.h ; \
    87     $(CP) -p include/icc34.h $(SOURCE_DIR)/include/ )
    80     $(CP) -p include/icc34.h $(SOURCE_DIR)/include/ )
    88 
    81 
    89 LINT_FLAGS += -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include
    82 LINT_FLAGS += -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include
    90 
    83 
    91 configure:	$(CONFIGURE_32_and_64)
    84 COMPONENT_POST_INSTALL_ACTION += \
    92 
    85 	$(PYTHON.2.7.32) -m compileall $(PROTOUSRLIBDIR)/python2.7/vendor-packages
    93 build: $(BUILD_32_and_64)
       
    94 
       
    95 install: $(INSTALL_32_and_64)
       
    96 	$(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/python2.7/vendor-packages
       
    97 
       
    98 
       
    99 test: $(TEST_32_and_64)
       
   100 
       
   101 system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)
       
   102 
    86 
   103 REQUIRED_PACKAGES += image/library/libjpeg
    87 REQUIRED_PACKAGES += image/library/libjpeg
   104 REQUIRED_PACKAGES += image/library/libtiff
    88 REQUIRED_PACKAGES += image/library/libtiff
   105 REQUIRED_PACKAGES += library/lcms
    89 REQUIRED_PACKAGES += library/lcms
   106 REQUIRED_PACKAGES += runtime/python-27
    90 REQUIRED_PACKAGES += runtime/python-27
   107 REQUIRED_PACKAGES += system/library
       
   108 REQUIRED_PACKAGES += system/library/c++-runtime
    91 REQUIRED_PACKAGES += system/library/c++-runtime
   109 REQUIRED_PACKAGES += system/library/math
    92 REQUIRED_PACKAGES += system/library/math