Makefile revision 1196
70N/A###############################################################################
70N/A#
1104N/A# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
70N/A#
70N/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.
70N/A#
70N/A#
70N/A
70N/A# This makefile simply creates a number of compatibility links in the
851N/A# proto area that we include in our packages
851N/A
851N/A# Package name used in tarballs
851N/AMODULE_NAME=compat-links
851N/A
98N/A# pkg(5) name we deliver the files in (override default)
551N/AMODULE_PKGNAME=x11/compatibility/links-xorg
321N/AMODULE_PKGNAME_SET=yes
321N/A
550N/A# Package classification (override default)
550N/AMODULE_PKGCLASS=System/X11
213N/AMODULE_PKGCLASS_SET=yes
649N/A
304N/A# ARC cases that covered this module
530N/A# PSARC/2004/187 Xorg Server For Solaris
425N/AMODULE_ARC_CASES = PSARC/2004/187
425N/A# PSARC/2008/405 Removal of /usr/openwin
325N/AMODULE_ARC_CASES += PSARC/2008/405
493N/A
536N/A# No sources
456N/AMODULE_VERSION=NONE
320N/ASOURCE_TARBALL_NAME=NONE
332N/ASOURCE_TARBALL_NAME_SET=yes
501N/A
231N/A# Don't need default targets for configure, build, or install, since there's
550N/A# nothing to build, and the install rule follows here
347N/ACONFIGURE_TARGETS =
532N/ACONFIGURE_TARGETS_SET=yes
463N/ABUILD_TARGETS =
493N/ABUILD_TARGETS_SET=yes
425N/AINSTALL_TARGETS = install_links
493N/AINSTALL_TARGETS_SET=yes
791N/A
472N/A### Include common rulesets
324N/Ainclude ../Makefile.inc
347N/A
310N/ADESTDIR=$(PROTODIR)
316N/A
474N/A# Even though we deliver all our files to /usr/{bin,lib} now, other
290N/A# consolidations still deliver to /usr/X11, so we have to maintain
332N/A# /usr/X11, which means leaving symlinks there to our programs & libraries
464N/A# to avoid breaking existing scripts and binaries
332N/A$(DESTDIR)/usr/X11:
509N/A mkdir -p $@
835N/A
835N/A# The SVID ABI established the X->X11 link
332N/A# PSARC 2004/187 established the X11R6->X11 link for compatibility with Linux
210N/A# PSARC 2008/405 removed /usr/openwin and replaced it with a link to /usr/X11
493N/AINSTALL_LINKS = $(DESTDIR)/usr/X $(DESTDIR)/usr/X11R6 $(DESTDIR)/usr/openwin
792N/A
128N/A$(INSTALL_LINKS): $(DESTDIR)/usr/X11
414N/A @rm -f $@
484N/A ln -s X11 $@
326N/A
493N/Ainstall_links: $(INSTALL_LINKS)
335N/A
493N/A# Link directory for Xserver private libraries and data files for
493N/A# compatibility with Xnewt binaries built for Solaris 10
729N/AXSERVER_LIB_LINKDIR = $(DESTDIR)/usr/X11/lib/X11
425N/AXSERVER_LIB_LINKPATH = $(XSERVER_LIB_LINKDIR)/xserver
370N/A
70N/Ainstall_links: $(XSERVER_LIB_LINKPATH)
400N/A
294N/A$(XSERVER_LIB_LINKDIR): $(DESTDIR)/usr/X11
435N/A mkdir -p $@
800N/A
98N/A$(XSERVER_LIB_LINKPATH): $(XSERVER_LIB_LINKDIR)
434N/A @rm -f $@
505N/A ln -s ../../../lib/xorg $@
277N/A
433N/A# Font links so that Java fontconfig.properties can find the fonts they use
546N/A# (see CR 6905518 & 6972032)
356N/A
289N/AFONT_LINKDIR = $(DESTDIR)/usr/X11/lib/X11/fonts
326N/AFONT_LINKS = 75dpi 100dpi misc TrueType
439N/AFONT_LINKPATHS = $(FONT_LINKS:%=$(FONT_LINKDIR)/%)
501N/A
469N/Ainstall_links: $(FONT_LINKPATHS)
290N/A
542N/A$(FONT_LINKDIR): $(XSERVER_LIB_LINKDIR)
424N/A mkdir -p $@
286N/A
90N/A$(FONT_LINKDIR)/75dpi $(FONT_LINKDIR)/100dpi: $(FONT_LINKDIR)
475N/A @rm -f $@
295N/A ln -s ../../../../share/fonts/X11/$(@F)-ISO8859-1 $@
70N/A
299N/A$(FONT_LINKDIR)/misc: $(FONT_LINKDIR)
262N/A @rm -f $@
539N/A ln -s ../../../../share/fonts/X11/misc $@
277N/A
332N/A$(FONT_LINKDIR)/TrueType: $(FONT_LINKDIR)
332N/A @rm -f $@
493N/A ln -s ../../../../share/fonts/TrueType $@
70N/A
70N/A# /usr/lib/64 link needed for check_rtime to find binaries using the */64
319N/A# paths that gcc inserts in runpaths, even though we don't package the link.
280N/ALIB64_LINK=$(PROTODIR)$(X11_LIB_DIR)/64
319N/A
70N/A$(LIB64_LINK):
1117N/A mkdir -p $(@D)
1117N/A rm -f $@
98N/A ln -s $(SUBDIR64) $@
414N/A
98N/Ainstall_links: $(LIB64_LINK)
744N/A