Makefile revision 1258
606N/A###############################################################################
606N/A#
1397N/A# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
606N/A#
606N/A# Permission is hereby granted, free of charge, to any person obtaining a
919N/A# copy of this software and associated documentation files (the "Software"),
919N/A# to deal in the Software without restriction, including without limitation
919N/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.
606N/A#
606N/A#
606N/A
606N/A# This makefile simply creates a number of compatibility links in the
606N/A# proto area that we include in our packages
606N/A
970N/A# Package name used in tarballs
970N/AMODULE_NAME=compat-links
970N/A
970N/A# pkg(5) name we deliver the files in (override default)
1339N/AMODULE_PKGNAME=x11/compatibility/links-xorg
1397N/AMODULE_PKGNAME_SET=yes
970N/A
606N/A# Package classification (override default)
1351N/AMODULE_PKGCLASS=System/X11
606N/AMODULE_PKGCLASS_SET=yes
911N/A
1351N/A# ARC cases that covered this module
1351N/A# PSARC/2004/187 Xorg Server For Solaris
911N/AMODULE_ARC_CASES = PSARC/2004/187
606N/A# PSARC/2008/405 Removal of /usr/openwin
947N/AMODULE_ARC_CASES += PSARC/2008/405
1345N/A
947N/A# No sources
1351N/AMODULE_VERSION=NONE
1351N/ASOURCE_TARBALL_NAME=NONE
1351N/ASOURCE_TARBALL_NAME_SET=yes
1351N/A
947N/A# Don't need default targets for configure, build, or install, since there's
947N/A# nothing to build, and the install rule follows here
606N/ACONFIGURE_TARGETS =
606N/ACONFIGURE_TARGETS_SET=yes
606N/ABUILD_TARGETS =
606N/ABUILD_TARGETS_SET=yes
606N/AINSTALL_TARGETS = install_links
606N/AINSTALL_TARGETS_SET=yes
606N/A
1351N/A### Include common rulesets
606N/Ainclude ../Makefile.inc
606N/A
606N/ADESTDIR=$(PROTODIR)
1097N/A
606N/A# Even though we deliver all our files to /usr/{bin,lib} now, other
1351N/A# consolidations still deliver to /usr/X11, so we have to maintain
1351N/A# /usr/X11, which means leaving symlinks there to our programs & libraries
1351N/A# to avoid breaking existing scripts and binaries
1097N/A$(DESTDIR)/usr/X11:
606N/A mkdir -p $@
1088N/A
1351N/A# The SVID ABI established the X->X11 link
1351N/A# PSARC 2004/187 established the X11R6->X11 link for compatibility with Linux
606N/A# PSARC 2008/405 removed /usr/openwin and replaced it with a link to /usr/X11
606N/AINSTALL_LINKS = $(DESTDIR)/usr/X $(DESTDIR)/usr/X11R6 $(DESTDIR)/usr/openwin
1351N/A
1351N/A$(INSTALL_LINKS): $(DESTDIR)/usr/X11
1351N/A @rm -f $@
1351N/A ln -s X11 $@
1351N/A
1351N/Ainstall_links: $(INSTALL_LINKS)
1351N/A
1351N/A# Link directory for Xserver private libraries and data files for
1351N/A# compatibility with Xnewt binaries built for Solaris 10
1351N/AXSERVER_LIB_LINKDIR = $(DESTDIR)/usr/X11/lib/X11
XSERVER_LIB_LINKPATH = $(XSERVER_LIB_LINKDIR)/xserver
install_links: $(XSERVER_LIB_LINKPATH)
$(XSERVER_LIB_LINKDIR): $(DESTDIR)/usr/X11
mkdir -p $@
$(XSERVER_LIB_LINKPATH): $(XSERVER_LIB_LINKDIR)
@rm -f $@
ln -s ../../../lib/xorg $@
# Font links so that Java fontconfig.properties can find the fonts they use
# (see CR 6905518 & 6972032)
FONT_LINKDIR = $(DESTDIR)/usr/X11/lib/X11/fonts
FONT_LINKS = 75dpi 100dpi misc TrueType
FONT_LINKPATHS = $(FONT_LINKS:%=$(FONT_LINKDIR)/%)
install_links: $(FONT_LINKPATHS)
$(FONT_LINKDIR): $(XSERVER_LIB_LINKDIR)
mkdir -p $@
$(FONT_LINKDIR)/75dpi $(FONT_LINKDIR)/100dpi: $(FONT_LINKDIR)
@rm -f $@
ln -s ../../../../share/fonts/X11/$(@F)-ISO8859-1 $@
$(FONT_LINKDIR)/misc: $(FONT_LINKDIR)
@rm -f $@
ln -s ../../../../share/fonts/X11/misc $@
$(FONT_LINKDIR)/TrueType: $(FONT_LINKDIR)
@rm -f $@
ln -s ../../../../share/fonts/TrueType $@
# /usr/lib/64 link needed for check_rtime to find binaries using the */64
# paths that gcc inserts in runpaths, even though we don't package the link.
LIB64_LINK=$(PROTODIR)$(X11_LIB_DIR)/64
$(LIB64_LINK):
mkdir -p $(@D)
rm -f $@
ln -s $(SUBDIR64) $@
install_links: $(LIB64_LINK)