Makefile revision 1196
98N/A###############################################################################
98N/A#
98N/A# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
98N/A#
911N/A# Permission is hereby granted, free of charge, to any person obtaining a
851N/A# copy of this software and associated documentation files (the "Software"),
98N/A# to deal in the Software without restriction, including without limitation
98N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
919N/A# and/or sell copies of the Software, and to permit persons to whom the
919N/A# Software is furnished to do so, subject to the following conditions:
919N/A#
919N/A# The above copyright notice and this permission notice (including the next
919N/A# paragraph) shall be included in all copies or substantial portions of the
919N/A# Software.
919N/A#
919N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
919N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
919N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
919N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
919N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
919N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
919N/A# DEALINGS IN THE SOFTWARE.
919N/A#
919N/A#
919N/A#
98N/A# Files for integration with Solaris Service Management Framework (SMF) and
98N/A# Role Based Access Control (RBAC)
98N/A
98N/AMODULE_NAME=ogl-select
493N/A
98N/A# pkg(5) name we deliver the files in (override default)
98N/AMODULE_PKGNAME=service/opengl/ogl-select
851N/AMODULE_PKGNAME_SET=yes
98N/A
911N/A# ARC cases that covered this module
911N/A# LSARC 2005/700 OpenGL boot time selection of libraries and headers
911N/AMODULE_ARC_CASES = LSARC/2005/700
911N/A
98N/A# Package metadata
98N/AMODULE_LICENSE = Oracle
98N/AMODULE_LICENSE_SET = yes
98N/A
98N/A# No upstream sources for these files, since they're Solaris-specific
493N/AMODULE_VERSION=NONE
493N/ASOURCE_TARBALL_NAME=NONE
98N/ASOURCE_TARBALL_NAME_SET=yes
98N/ASOURCE_TARGETS=
493N/ASOURCE_TARGETS_SET=yes
493N/A
493N/ACONFIGURE_TARGETS=
194N/ACONFIGURE_TARGETS_SET=yes
98N/A
98N/ABUILD_TARGETS = check
BUILD_TARGETS_SET=yes
INSTALL_TARGETS = install_ogl-select
INSTALL_TARGETS_SET=yes
### Include common rulesets
include ../Makefile.inc
OGL_SMF_MANIFEST_DIR=$(SMF_MANIFEST_DIR)/application/opengl
DESTDIR=$(PROTODIR)
check: ogl-select.xml
/usr/sbin/svccfg validate ogl-select.xml
OGL_VENDOR_SCRIPTS_sparc=sun_vendor_select
OGL_VENDOR_SCRIPTS_i386=nvidia_vendor_select
OGL_VENDOR_SCRIPTS=mesa_vendor_select $(OGL_VENDOR_SCRIPTS_$(MACH))
install_ogl-select:
mkdir -p $(DESTDIR)$(OGL_SMF_MANIFEST_DIR) \
$(DESTDIR)$(SMF_METHOD_DIR) \
$(DESTDIR)$(X11_DIR)/share/man/man1 \
$(DESTDIR)/lib/opengl/ogl_select/
$(INSTALL_SCRIPT) -c -m 0444 ogl-select.xml \
$(DESTDIR)$(OGL_SMF_MANIFEST_DIR)
$(INSTALL_SCRIPT) -c -m 0555 ogl-select \
$(DESTDIR)$(SMF_METHOD_DIR)/ogl-select
$(INSTALL_SCRIPT) -c -m 0444 ogl-select.man \
$(DESTDIR)$(X11_DIR)/share/man/man1/ogl-select.1
$(INSTALL_SCRIPT) -c -m 0555 $(OGL_VENDOR_SCRIPTS) \
$(DESTDIR)/lib/opengl/ogl_select/