###############################################################################
#
# xdriinfo - Utility to query configuration information of DRI drivers
#
# Copyright (c) 2008, 2015, 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.
#
#
# Package name used in tarballs
MODULE_NAME=xdriinfo
# Version number (used in path names)
MODULE_VERSION=1.0.5
# Checksums for upstream tarball
TARBALL_MD5 = fceddaeb08e32e027d12a71490665866
TARBALL_SHA1 = 0c2c0a369c3a63f28622ddefd84e964c14625f25
TARBALL_SHA256 = 4cba3766ef89557422062287248adeb933999071bad6f3ef9c0a478a3c680119
# Patches to apply to source after unpacking, in order
SOURCE_PATCHES = compile-on-sparc.patch
# Package metadata
MODULE_DESC = the xdriinfo DRI driver query utility
# pkg(5) name we deliver the files in (override default)
MODULE_PKGNAME=x11/diagnostic/x11-info-clients
MODULE_PKGNAME_SET=yes
# ARC cases that covered this module
# PSARC/2008/292 xdriinfo
MODULE_ARC_CASES = PSARC/2008/292
# PSARC/2015/221 X11 application updates
MODULE_ARC_CASES += PSARC/2015/221
# Man pages to apply Sun footer to & attributes to list
SUNTOUCHED_MANPAGES=man/*.man
MODULE_STABILITY=Committed
# Needed for libGL to find libdrm at build time
MODULE_LDFLAGS=-L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR)
# Needed to force use of Mesa libGL at runtime, since xdriinfo just prints
# "libGL is too old" if nvidia libGL is found.
MODULE_LDFLAGS += -R$(X11_LIB_DIR)/mesa$(ARCHLIBSUBDIR)
# Compatibility links from /usr/X11/bin to /usr/bin
MODULE_X11_BINCOMPAT_LINKS = xdriinfo
include ../Makefile.inc