# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice (including the next
# paragraph) shall be included in all copies or substantial portions of the
# Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
#
set name=pkg.fmri value=pkg:/x11/library/libsm@__version:libSM__
set name=pkg.summary value="libSM - X Session Management Library"
set name=pkg.description \
value="The purpose of the X Session Management Protocol (XSMP) is to provide a uniform mechanism for users to save and restore their sessions. The Session Management Library (SMlib) is a low-level C language interface to XSMP. It is expected that higher level toolkits will hide many of the details of session management from clients."
link path=usr/X11/lib/$(ARCH64)/libSM.so.6 \
target=../../../lib/$(ARCH64)/libSM.so.6
link path=usr/X11/lib/libSM.so target=../../lib/libSM.so
link path=usr/X11/lib/libSM.so.6 target=../../lib/libSM.so.6
dir path=usr/include/X11/SM
file path=usr/include/X11/SM/SM.h
file path=usr/include/X11/SM/SMlib.h
file path=usr/include/X11/SM/SMproto.h
file path=usr/lib/$(ARCH64)/libSM.so.6
file path=usr/lib/$(ARCH64)/pkgconfig/sm.pc
link path=usr/lib/libSM.so target=libSM.so.6
file path=usr/lib/libSM.so.6
file path=usr/lib/pkgconfig/sm.pc
dir path=usr/share/doc/libSM
file path=usr/share/doc/libSM/SMlib.xml
file path=usr/share/doc/libSM/xsmp.xml
depend type=require fmri=pkg:/x11/header/x11-protocols facet.devel=true