6197N/A#
6197N/A# CDDL HEADER START
6197N/A#
6197N/A# The contents of this file are subject to the terms of the
6197N/A# Common Development and Distribution License (the "License").
6197N/A# You may not use this file except in compliance with the License.
6197N/A#
6197N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6197N/A# or http://www.opensolaris.org/os/licensing.
6197N/A# See the License for the specific language governing permissions
6197N/A# and limitations under the License.
6197N/A#
6197N/A# When distributing Covered Code, include this CDDL HEADER in each
6197N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6197N/A# If applicable, add the following below this CDDL HEADER, with the
6197N/A# fields enclosed by brackets "[]" replaced with your own identifying
6197N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6197N/A#
6197N/A# CDDL HEADER END
6197N/A#
6197N/A
6197N/A#
6197N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
6197N/A#
6197N/A
6197N/ABUILD_BITS = 64_and_32
6197N/Ainclude ../../../make-rules/shared-macros.mk
6197N/A
6197N/ACOMPONENT_NAME= openjpeg
6197N/ACOMPONENT_VERSION= 2.1.0
6197N/ACOMPONENT_PROJECT_URL= http://www.openjpeg.org/
6197N/ACOMPONENT_SRC= $(COMPONENT_NAME)-version.2.1
6197N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
6197N/ACOMPONENT_ARCHIVE_HASH= \
6197N/A sha256:4afc996cd5e0d16360d71c58216950bcb4ce29a3272360eb29cadb1c8bce4efc
6197N/ACOMPONENT_ARCHIVE_URL= https://github.com/uclouvain/$(COMPONENT_NAME)/archive/version.2.1.tar.gz
6197N/ACOMPONENT_BUGDB= library/openjpeg
6197N/A
6197N/ATPNO= 18449
6197N/A
6197N/ABUILD_STYLE = cmake
6197N/A
6197N/A# Requires images from an external source
6197N/ATEST_TARGET = $(SKIP_TEST)
6197N/A
6197N/Ainclude $(WS_MAKE_RULES)/common.mk
6197N/A
6197N/A# Workaround non-standard type usage in big endian builds.
6197N/ACFLAGS.studio.sparc += -Du_int16_t=uint16_t
6197N/A
6197N/ACMAKE_OPTIONS += -DOPENJPEG_INSTALL_BIN_DIR=$(USRBIN)
6197N/ACMAKE_OPTIONS += -DOPENJPEG_INSTALL_LIB_DIR=$(USRLIB)
6197N/ACMAKE_OPTIONS += -DCMAKE_VERBOSE_MAKEFILE=ON
6197N/ACMAKE_OPTIONS += -DLCMS2_INCLUDE_DIR=$(USRINCDIR)/lcms
6197N/A
6197N/AREQUIRED_PACKAGES += developer/build/cmake
6197N/AREQUIRED_PACKAGES += image/library/libpng
6197N/AREQUIRED_PACKAGES += image/library/libtiff
6197N/AREQUIRED_PACKAGES += library/lcms2
6197N/AREQUIRED_PACKAGES += system/library/math