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.
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.
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]
21 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
23 include ..
/..
/..
/make-rules
/shared-macros.mk
26 COMPONENT_VERSION
= 1.19
28 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
29 COMPONENT_PROJECT_URL
= http
://www.littlecms.com
/
30 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
31 COMPONENT_ARCHIVE_HASH
= \
32 sha256
:80ae32cb9f568af4dc7ee4d3c05a4c31fc513fc3e31730fed0ce7378237273a9
33 COMPONENT_ARCHIVE_URL
= http
://sourceforge.net
/projects
/lcms
/files
/lcms
/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
34 COMPONENT_BUGDB
= utility
/lcms
36 include $(WS_MAKE_RULES
)/prep.mk
37 include $(WS_MAKE_RULES
)/configure.mk
38 include $(WS_MAKE_RULES
)/ips.mk
42 # It seems that we have no other way to designate that we want large file support
43 CFLAGS
+= $(CPP_LARGEFILES
)
44 CXXFLAGS
+= $(CPP_LARGEFILES
)
46 CONFIGURE_ENV
+= PYTHON
="$(PYTHON)"
47 CONFIGURE_ENV
+= PYTHONMODULEDIR
="$(PYTHON_VENDOR_PACKAGES)"
49 CONFIGURE_OPTIONS
+= --includedir=/usr
/include/lcms
50 CONFIGURE_OPTIONS
+= --enable-shared
51 CONFIGURE_OPTIONS
+= --disable-static
52 CONFIGURE_OPTIONS
+= --with-jpeg
53 CONFIGURE_OPTIONS
+= --with-tiff
54 CONFIGURE_OPTIONS
+= --with-zlib
55 CONFIGURE_OPTIONS
+= --with-python
56 CONFIGURE_OPTIONS
+= --with-pic
58 PKG_PROTO_DIRS
+= $(COMPONENT_SRC
)
60 # in order to run the tests, we need to use cloney
61 COMPONENT_PRE_CONFIGURE_ACTION
= ($(CLONEY
) $(SOURCE_DIR
) $(@D
))
63 COMPONENT_POST_CONFIGURE_ACTION
= \
65 $(CP
) -p
$(SOURCE_DIR
)/include/lcms.h .
/include/ ; \
66 $(RM
) -f
$(SOURCE_DIR
)/include/icc34.h
; \
67 $(CP
) -p
include/icc34.h
$(SOURCE_DIR
)/include/ )
69 LINT_FLAGS
+= -I
$(COMPONENT_DIR
)/$(COMPONENT_SRC
)/include
71 build
: $(BUILD_32_and_64
)
73 install: $(INSTALL_32_and_64
)
74 $(PYTHON
.2.7.32) -m compileall
$(PROTO_DIR
)/usr
/lib
/python2.7
/vendor-packages
77 test: $(TEST_32_and_64
)