#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

#
# Copyright 2015 Aurelien Larcher
#

set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.human-version value=$(HUMAN_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)

license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'

file path=usr/include/libjpeg6-turbo/jconfig.h
file path=usr/include/libjpeg6-turbo/jerror.h
file path=usr/include/libjpeg6-turbo/jmorecfg.h
file path=usr/include/libjpeg6-turbo/jpeglib.h
# This file conflicts with image/library/libjpeg6.  We should uncomment it
# once the image/library/libjpeg6 package is obsoleted.
#link path=usr/lib/$(MACH64)/libjpeg.so.62 \
#    target=../libjpeg6-turbo/lib/$(MACH64)/libjpeg.so.62
link path=usr/lib/$(MACH64)/libjpeg.so.62.4.0 \
    target=../libjpeg6-turbo/lib/$(MACH64)/libjpeg.so.62.4.0
file path=usr/lib/libjpeg6-turbo/lib/$(MACH64)/cmake/libjpeg-turbo/libjpeg-turboConfig.cmake
file path=usr/lib/libjpeg6-turbo/lib/$(MACH64)/cmake/libjpeg-turbo/libjpeg-turboConfigVersion.cmake
file path=usr/lib/libjpeg6-turbo/lib/$(MACH64)/cmake/libjpeg-turbo/libjpeg-turboTargets-release.cmake
file path=usr/lib/libjpeg6-turbo/lib/$(MACH64)/cmake/libjpeg-turbo/libjpeg-turboTargets.cmake
link path=usr/lib/libjpeg6-turbo/lib/$(MACH64)/libjpeg.so target=libjpeg.so.62
link path=usr/lib/libjpeg6-turbo/lib/$(MACH64)/libjpeg.so.62 \
    target=libjpeg.so.62.4.0
file path=usr/lib/libjpeg6-turbo/lib/$(MACH64)/libjpeg.so.62.4.0
file path=usr/lib/libjpeg6-turbo/lib/$(MACH64)/pkgconfig/libjpeg.pc