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) 2015, Oracle and/or its affiliates. All rights reserved. |
21 |
22 # |
22 # |
|
23 # Copyright (c) 2015, 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 = lcms2 |
28 COMPONENT_NAME = lcms2 |
26 COMPONENT_VERSION= 2.7 |
29 COMPONENT_VERSION= 2.7 |
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:4524234ae7de185e6b6da5d31d6875085b2198bc63b1211f7dde6e2d197d6a53 |
32 sha256:4524234ae7de185e6b6da5d31d6875085b2198bc63b1211f7dde6e2d197d6a53 |
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 COMPONENT_BUGDB= utility/lcms |
34 |
35 |
35 TPNO= 25712 |
36 TPNO= 25712 |
36 |
37 |
37 include $(WS_MAKE_RULES)/prep.mk |
38 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 |
39 |
42 # In order to run the tests, we need to use cloney |
40 # In order to run the tests, we need to use cloney |
43 COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D)) |
41 COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D)) |
44 |
42 |
45 # Seems that we have no other way to designate that we want large file support. |
43 # Seems that we have no other way to designate that we want large file support. |
46 CFLAGS += $(CPP_LARGEFILES) |
44 CFLAGS += $(CPP_LARGEFILES) |
47 |
45 |
48 CONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin |
46 CONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/lcms |
49 |
|
50 CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
|
51 CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" |
|
52 |
|
53 CONFIGURE_OPTIONS += --includedir=/usr/include/lcms |
|
54 CONFIGURE_OPTIONS += --enable-shared |
47 CONFIGURE_OPTIONS += --enable-shared |
55 CONFIGURE_OPTIONS += --disable-static |
48 CONFIGURE_OPTIONS += --disable-static |
56 CONFIGURE_OPTIONS += --with-jpeg |
49 CONFIGURE_OPTIONS += --with-jpeg |
57 CONFIGURE_OPTIONS += --with-tiff |
50 CONFIGURE_OPTIONS += --with-tiff |
58 CONFIGURE_OPTIONS += --with-zlib |
51 CONFIGURE_OPTIONS += --with-zlib |
80 '-e "s|^.*DEPDIR=.deps.*$$|XXX_REMOVE_XXX|g" ' \ |
73 '-e "s|^.*DEPDIR=.deps.*$$|XXX_REMOVE_XXX|g" ' \ |
81 '-e "s|^make.*: Leaving directory.*$$|XXX_REMOVE_XXX|g" ' \ |
74 '-e "s|^make.*: Leaving directory.*$$|XXX_REMOVE_XXX|g" ' \ |
82 '-e "s|^make.*: Entering directory.*$$|XXX_REMOVE_XXX|g" ' \ |
75 '-e "s|^make.*: Entering directory.*$$|XXX_REMOVE_XXX|g" ' \ |
83 '-e "/^XXX_REMOVE_XXX$$/d" ' |
76 '-e "/^XXX_REMOVE_XXX$$/d" ' |
84 |
77 |
85 ASLR_MODE = $(ASLR_ENABLE) |
|
86 |
|
87 configure: $(CONFIGURE_32_and_64) |
|
88 |
|
89 build: $(BUILD_32_and_64) |
|
90 |
|
91 install: $(INSTALL_32_and_64) |
|
92 |
|
93 test: $(TEST_32_and_64) |
|
94 |
|
95 system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED) |
|
96 |
|
97 REQUIRED_PACKAGES += image/library/libjpeg |
78 REQUIRED_PACKAGES += image/library/libjpeg |
98 REQUIRED_PACKAGES += image/library/libtiff |
79 REQUIRED_PACKAGES += image/library/libtiff |
99 REQUIRED_PACKAGES += system/library |
|
100 REQUIRED_PACKAGES += system/library/math |
80 REQUIRED_PACKAGES += system/library/math |