Makefile revision 977
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews###############################################################################
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews#
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews#
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# Permission is hereby granted, free of charge, to any person obtaining a
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# copy of this software and associated documentation files (the "Software"),
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# to deal in the Software without restriction, including without limitation
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# the rights to use, copy, modify, merge, publish, distribute, sublicense,
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# and/or sell copies of the Software, and to permit persons to whom the
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# Software is furnished to do so, subject to the following conditions:
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews#
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# The above copyright notice and this permission notice (including the next
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# paragraph) shall be included in all copies or substantial portions of the
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# Software.
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews#
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
f4bd7d27a6b3b4c732b0b8d585a9d3098480bbbfJeremy C. Reed# DEALINGS IN THE SOFTWARE.
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews#
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews#
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews#
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# Files for integration with Solaris Service Management Framework (SMF) and
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# Role Based Access Control (RBAC)
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsMODULE_NAME=ogl-select
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# pkg(5) name we deliver the files in (override default)
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsMODULE_PKGNAME=service/opengl/ogl-select
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsMODULE_PKGNAME_SET=yes
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# ARC cases that covered this module
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# LSARC 2005/700 OpenGL boot time selection of libraries and headers
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsMODULE_ARC_CASES = LSARC/2005/700
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# No upstream sources for these files, since they're Solaris-specific
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsMODULE_VERSION=NONE
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsSOURCE_TARBALL_NAME=NONE
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsSOURCE_TARBALL_NAME_SET=yes
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsSOURCE_TARGETS=
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsSOURCE_TARGETS_SET=yes
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsCONFIGURE_TARGETS=
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsCONFIGURE_TARGETS_SET=yes
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsBUILD_TARGETS = check
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsBUILD_TARGETS_SET=yes
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsINSTALL_TARGETS = install_ogl-select
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsINSTALL_TARGETS_SET=yes
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews### Include common rulesets
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrewsinclude ../Makefile.inc
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsSUN_SMF_MANIFEST_DIR=/var/svc/manifest/application
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsSUN_SMF_METHOD_DIR=/lib/svc/method
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsDESTDIR=$(PROTODIR)
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrewscheck: ogl-select.xml
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews /usr/sbin/svccfg validate ogl-select.xml
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsOGL_VENDOR_SCRIPTS_sparc=sun_vendor_select
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsOGL_VENDOR_SCRIPTS_i386=nvidia_vendor_select
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsOGL_VENDOR_SCRIPTS=mesa_vendor_select $(OGL_VENDOR_SCRIPTS_$(MACH))
f4bd7d27a6b3b4c732b0b8d585a9d3098480bbbfJeremy C. Reed
f4bd7d27a6b3b4c732b0b8d585a9d3098480bbbfJeremy C. Reedinstall_ogl-select:
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews mkdir -p $(DESTDIR)$(SUN_SMF_MANIFEST_DIR)/opengl \
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews $(DESTDIR)$(SUN_SMF_METHOD_DIR) \
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews $(DESTDIR)$(X11_DIR)/share/man/man1 \
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews $(DESTDIR)/lib/opengl/ogl_select/
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews $(INSTALL_SCRIPT) -c -m 0444 ogl-select.xml \
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews $(DESTDIR)$(SUN_SMF_MANIFEST_DIR)/opengl
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews $(INSTALL_SCRIPT) -c -m 0555 ogl-select \
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews $(DESTDIR)$(SUN_SMF_METHOD_DIR)/ogl-select
f4bd7d27a6b3b4c732b0b8d585a9d3098480bbbfJeremy C. Reed $(INSTALL_SCRIPT) -c -m 0444 ogl-select.man \
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews $(DESTDIR)$(X11_DIR)/share/man/man1/ogl-select.1
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews $(INSTALL_SCRIPT) -c -m 0555 $(OGL_VENDOR_SCRIPTS) \
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews $(DESTDIR)/lib/opengl/ogl_select/
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews