author | Rich Burridge <rich.burridge@oracle.com> |
Thu, 23 Feb 2017 13:46:52 -0800 | |
changeset 7687 | 1093e2a9adbd |
parent 7477 | 8032dcc67e07 |
permissions | -rw-r--r-- |
6199
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
1 |
# |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
3 |
# |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
7 |
# |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
12 |
# |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
18 |
# |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
20 |
# |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
21 |
|
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
22 |
# |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7477
diff
changeset
|
23 |
# Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. |
6199
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
24 |
# |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
25 |
|
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
26 |
BUILD_BITS = 64_and_32 |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
27 |
include ../../../make-rules/shared-macros.mk |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
28 |
|
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
29 |
COMPONENT_NAME= openjpeg |
7477
8032dcc67e07
25126076 Upgrade openjpeg to 2.1.2
Swaroop M S <swaroop.sadare@oracle.com>
parents:
6199
diff
changeset
|
30 |
COMPONENT_VERSION= 2.1.2 |
6199
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
31 |
COMPONENT_PROJECT_URL= http://www.openjpeg.org/ |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
32 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
33 |
COMPONENT_ARCHIVE_HASH= \ |
7477
8032dcc67e07
25126076 Upgrade openjpeg to 2.1.2
Swaroop M S <swaroop.sadare@oracle.com>
parents:
6199
diff
changeset
|
34 |
sha256:4ce77b6ef538ef090d9bde1d5eeff8b3069ab56c4906f083475517c2c023dfa7 |
8032dcc67e07
25126076 Upgrade openjpeg to 2.1.2
Swaroop M S <swaroop.sadare@oracle.com>
parents:
6199
diff
changeset
|
35 |
COMPONENT_ARCHIVE_URL= https://github.com/uclouvain/$(COMPONENT_NAME)/archive/v$(COMPONENT_VERSION).tar.gz |
6199
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
36 |
COMPONENT_BUGDB= library/openjpeg |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7477
diff
changeset
|
37 |
COMPONENT_ANITYA_ID= 2550 |
6199
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
38 |
|
7477
8032dcc67e07
25126076 Upgrade openjpeg to 2.1.2
Swaroop M S <swaroop.sadare@oracle.com>
parents:
6199
diff
changeset
|
39 |
TPNO= 32786 |
6199
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
40 |
|
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
41 |
BUILD_STYLE = cmake |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
42 |
|
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
43 |
# Requires images from an external source |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
44 |
TEST_TARGET = $(SKIP_TEST) |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
45 |
|
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
46 |
include $(WS_MAKE_RULES)/common.mk |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
47 |
|
7477
8032dcc67e07
25126076 Upgrade openjpeg to 2.1.2
Swaroop M S <swaroop.sadare@oracle.com>
parents:
6199
diff
changeset
|
48 |
studio_C99MODE=$(studio_C99_ENABLE) |
8032dcc67e07
25126076 Upgrade openjpeg to 2.1.2
Swaroop M S <swaroop.sadare@oracle.com>
parents:
6199
diff
changeset
|
49 |
|
6199
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
50 |
# Workaround non-standard type usage in big endian builds. |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
51 |
CFLAGS.studio.sparc += -Du_int16_t=uint16_t |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
52 |
|
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
53 |
CMAKE_OPTIONS += -DOPENJPEG_INSTALL_BIN_DIR=$(USRBIN) |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
54 |
CMAKE_OPTIONS += -DOPENJPEG_INSTALL_LIB_DIR=$(USRLIB) |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
55 |
CMAKE_OPTIONS += -DCMAKE_VERBOSE_MAKEFILE=ON |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
56 |
CMAKE_OPTIONS += -DLCMS2_INCLUDE_DIR=$(USRINCDIR)/lcms |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
57 |
|
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
58 |
REQUIRED_PACKAGES += developer/build/cmake |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
59 |
REQUIRED_PACKAGES += image/library/libpng |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
60 |
REQUIRED_PACKAGES += image/library/libtiff |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
61 |
REQUIRED_PACKAGES += library/lcms2 |
80d7c11e9814
23245658 Deliver openjpeg 2.1.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
62 |
REQUIRED_PACKAGES += system/library/math |