#
# 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 2016 Jim Klimov
# Copyright 2018 Michal Nowak
#

set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_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)

<transform file path=usr.*/man/.+ -> default mangler.man.stability volatile>

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

file path=usr/include/magic.h
link path=usr/lib/$(MACH64)/libmagic.so target=libmagic.so.1.0.0
link path=usr/lib/$(MACH64)/libmagic.so.1 target=libmagic.so.1.0.0
file path=usr/lib/$(MACH64)/libmagic.so.1.0.0
file path=usr/lib/$(MACH64)/pkgconfig/libmagic.pc
link path=usr/lib/libmagic.so target=libmagic.so.1.0.0
link path=usr/lib/libmagic.so.1 target=libmagic.so.1.0.0
file path=usr/lib/libmagic.so.1.0.0
file path=usr/lib/pkgconfig/libmagic.pc
file usr/share/man/man3/libmagic.3 path=usr/gnu/share/man/man3/libmagic.3
file usr/share/man/man4/magic.4 path=usr/gnu/share/man/man4/magic.4
file path=usr/share/misc/magic.mgc