# # CDDL HEADER START # # The contents of this file are subject to the terms of the # Common Development and Distribution License (the "License"). # You may not use this file except in compliance with the License. # # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE # or http://www.opensolaris.org/os/licensing. # See the License for the specific language governing permissions # and limitations under the License. # # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file at usr/src/OPENSOLARIS.LICENSE. # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] # # CDDL HEADER END # # Copyright (c) 2015-2017, Aurelien Larcher # include ../../../make-rules/shared-macros.mk COMPONENT_NAME = lcms2 COMPONENT_VERSION= 2.9 COMPONENT_REVISION= 1 COMPONENT_FMRI= library/lcms2 COMPONENT_CLASSIFICATION=System/Libraries COMPONENT_SUMMARY= The Little Color Management System COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) COMPONENT_PROJECT_URL= http://www.littlecms.com/ COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz COMPONENT_ARCHIVE_HASH= \ sha256:48c6fdf98396fa245ed86e622028caf49b96fa22f3e5734f853f806fbc8e7d20 COMPONENT_ARCHIVE_URL= \ http://sourceforge.net/projects/lcms/files/lcms/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) COMPONENT_LICENSE= MIT include $(WS_MAKE_RULES)/prep.mk include $(WS_MAKE_RULES)/configure.mk include $(WS_MAKE_RULES)/ips.mk # build with the distribution preferred libjpeg implementation CFLAGS += $(JPEG_CPPFLAGS) $(JPEG_CFLAGS) CXXFLAGS += $(JPEG_CPPFLAGS) $(JPEG_CXXFLAGS) LDFLAGS += $(JPEG_LDFLAGS) # Seems that we have no other way to designate that we want large file support. CFLAGS += $(CPP_LARGEFILES) # Need to ensure lcms custom chunk memory allocator aligns properly for all # of our platforms - see _cmsALIGNMEM macro in src/lcms2_internal.h and # _MAX_ALIGNMENT definition in per-platform sections of CPPFLAGS += -DCMS_PTR_ALIGNMENT=_MAX_ALIGNMENT CONFIGURE_OPTIONS += --includedir=/usr/include/lcms2 CONFIGURE_OPTIONS += --enable-shared CONFIGURE_OPTIONS += --disable-static CONFIGURE_OPTIONS += --with-jpeg CONFIGURE_OPTIONS += --with-tiff CONFIGURE_OPTIONS += --with-zlib CONFIGURE_OPTIONS += --with-pic COMPONENT_PRE_TEST_ACTION = ( cd $(@D); $(MAKE) -C testbed clean ) # One test fails in 32-bit COMPONENT_TEST_ARGS = -k -i COMPONENT_TEST_TRANSFORMS += \ '-e "s|^.*test bed.*$$|XXX_REMOVE_XXX|g" ' \ '-e "s|^.*MPixel.*$$|XXX_REMOVE_XXX|g" ' \ '-e "s|^.*Single block hit.*$$|XXX_REMOVE_XXX|g" ' \ '-e "s|^.*$(CC).*$$|XXX_REMOVE_XXX|g" ' \ '-e "s|^.*source=.*libtool=no.*$$|XXX_REMOVE_XXX|g" ' \ '-e "s|^.*DEPDIR=.deps.*$$|XXX_REMOVE_XXX|g" ' \ '-e "s|^make.*(ignored)*$$|XXX_REMOVE_XXX|g" ' \ '-e "s|^make.*: Leaving directory.*$$|XXX_REMOVE_XXX|g" ' \ '-e "s|^make.*: Entering directory.*$$|XXX_REMOVE_XXX|g" ' \ '-e "/^XXX_REMOVE_XXX$$/d" ' build: $(BUILD_32_and_64) install: $(INSTALL_32_and_64) test: $(TEST_32_and_64) REQUIRED_PACKAGES += image/library/$(JPEG_IMPLEM) REQUIRED_PACKAGES += image/library/libtiff REQUIRED_PACKAGES += system/library REQUIRED_PACKAGES += system/library/math