# Copyright (c) 2010, 2014, 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/libdrm@__version:libdrm__
set name=pkg.summary \
value="Direct Rendering Module (DRM) client libraries/interface"
set name=pkg.description \
value="User-space library interface to kernel modules using the Direct Rendering Infrastructure (DRI) and Kernel Mode-Setting (KMS) interfaces"
link path=usr/X11/include/drm target=../../include/drm
link path=usr/include/drm target=libdrm
dir path=usr/include/libdrm
file path=usr/include/libdrm/drm.h
file path=usr/include/libdrm/drm_fourcc.h
file path=usr/include/libdrm/drm_mode.h
file path=usr/include/libdrm/drm_sarea.h
file path=usr/include/libdrm/i915_drm.h
$(i386_ONLY)file path=usr/include/libdrm/intel_bufmgr.h
$(i386_ONLY)file path=usr/include/libdrm/intel_debug.h
file path=usr/include/libdrm/mach64_drm.h
file path=usr/include/libdrm/mga_drm.h
file path=usr/include/libdrm/nouveau_drm.h
file path=usr/include/libdrm/r128_drm.h
file path=usr/include/libdrm/r600_pci_ids.h
file path=usr/include/libdrm/radeon_bo.h
file path=usr/include/libdrm/radeon_bo_gem.h
file path=usr/include/libdrm/radeon_bo_int.h
file path=usr/include/libdrm/radeon_cs.h
file path=usr/include/libdrm/radeon_cs_gem.h
file path=usr/include/libdrm/radeon_cs_int.h
file path=usr/include/libdrm/radeon_drm.h
file path=usr/include/libdrm/radeon_surface.h
file path=usr/include/libdrm/savage_drm.h
file path=usr/include/libdrm/sis_drm.h
file path=usr/include/libdrm/via_drm.h
file path=usr/include/libdrm/vmwgfx_drm.h
dir path=usr/include/libkms
file path=usr/include/libkms/libkms.h
file path=usr/include/xf86drm.h
file path=usr/include/xf86drmMode.h
file path=usr/lib/$(ARCH64)/pkgconfig/libdrm.pc
$(i386_ONLY)file path=usr/lib/$(ARCH64)/pkgconfig/libdrm_intel.pc
$(i386_ONLY)file path=usr/lib/$(ARCH64)/pkgconfig/libdrm_radeon.pc
file path=usr/lib/$(ARCH64)/pkgconfig/libkms.pc
file path=usr/lib/pkgconfig/libdrm.pc
$(i386_ONLY)file path=usr/lib/pkgconfig/libdrm_intel.pc
$(i386_ONLY)file path=usr/lib/pkgconfig/libdrm_radeon.pc
file path=usr/lib/pkgconfig/libkms.pc
link path=usr/lib/xorg/$(ARCH64)/libdrm.so target=libdrm.so.2
file path=usr/lib/xorg/$(ARCH64)/libdrm.so.2
$(i386_ONLY)link path=usr/lib/xorg/$(ARCH64)/libdrm_intel.so \
target=libdrm_intel.so.1
$(i386_ONLY)file path=usr/lib/xorg/$(ARCH64)/libdrm_intel.so.1
$(i386_ONLY)link path=usr/lib/xorg/$(ARCH64)/libdrm_radeon.so \
target=libdrm_radeon.so.1
$(i386_ONLY)file path=usr/lib/xorg/$(ARCH64)/libdrm_radeon.so.1
link path=usr/lib/xorg/$(ARCH64)/libkms.so target=libkms.so.1
file path=usr/lib/xorg/$(ARCH64)/libkms.so.1
link path=usr/lib/xorg/libdrm.so target=libdrm.so.2
file path=usr/lib/xorg/libdrm.so.2
$(i386_ONLY)link path=usr/lib/xorg/libdrm_intel.so target=libdrm_intel.so.1
$(i386_ONLY)file path=usr/lib/xorg/libdrm_intel.so.1
$(i386_ONLY)link path=usr/lib/xorg/libdrm_radeon.so target=libdrm_radeon.so.1
$(i386_ONLY)file path=usr/lib/xorg/libdrm_radeon.so.1
link path=usr/lib/xorg/libkms.so target=libkms.so.1
file path=usr/lib/xorg/libkms.so.1
file path=usr/share/man/man3/drmAvailable.3
file path=usr/share/man/man3/drmHandleEvent.3
file path=usr/share/man/man3/drmModeGetResources.3
file path=usr/share/man/man7/drm-gem.7
file path=usr/share/man/man7/drm-kms.7
file path=usr/share/man/man7/drm-memory.7
file path=usr/share/man/man7/drm-mm.7
file path=usr/share/man/man7/drm-ttm.7
file path=usr/share/man/man7/drm.7
depend type=require fmri=pkg:/x11/header/x11-protocols facet.devel=true