Makefile revision 1339
7f007e36bec06aba6b3a0f84a64f2abf99edfcd8gstein###############################################################################
4a257be29f8aeab984fe5622fa69e0b2aab204d7jerenkrantz#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Permission is hereby granted, free of charge, to any person obtaining a
8f5dca296674091bd47a7846d0cc16ce5bbc272ejerenkrantz# copy of this software and associated documentation files (the "Software"),
4a257be29f8aeab984fe5622fa69e0b2aab204d7jerenkrantz# to deal in the Software without restriction, including without limitation
91cacb801f6c0215b38322f6d2fc58cbfedfecfbjerenkrantz# the rights to use, copy, modify, merge, publish, distribute, sublicense,
91cacb801f6c0215b38322f6d2fc58cbfedfecfbjerenkrantz# and/or sell copies of the Software, and to permit persons to whom the
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb# Software is furnished to do so, subject to the following conditions:
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb#
ab71b233b3a36489e44a7b061c48293be0b17788jwoolley# The above copyright notice and this permission notice (including the next
571760de5e60c0b459cb11be45507b923cd023eejwoolley# paragraph) shall be included in all copies or substantial portions of the
571760de5e60c0b459cb11be45507b923cd023eejwoolley# Software.
9180a5933673ffb1af633c255ceee029340f3b1erbb#
bcb6e1be6041dfeb549c8ea8d37f97ad4e90a0c3rbb# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
9bd71e35f5d26d26d23fe3a677401828e842ed72wrowe# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2900ab946a2d76b73a14cebfe2985d253f01c967stoddard# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
b876b7bcf0ce3d232da723246d709e8dbbfe8762rbb# DEALINGS IN THE SOFTWARE.
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gstein#
35330e0d79ceb8027223bbb8330a381b1f989d6etrawick#
6f6f4a4bca281779d196acbdd5c017bb90858305trawick
8dd4618c4709236b4ea297d7250d282e463ce2d8rbb# This makefile simply creates a number of compatibility links in the
09bd86d0db1114ee23eda0a6eb76ca055877a1cftrawick# proto area that we include in our packages
2deb319e6b3de239f45c16a3e9e836d44f1f7108rbb
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb# Package name used in tarballs
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanojMODULE_NAME=compat-links
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj
af4c982a7cf4515f124935f99a329744035fc699slive# pkg(5) name we deliver the files in (override default)
af4c982a7cf4515f124935f99a329744035fc699sliveMODULE_PKGNAME=x11/compatibility/links-xorg
af4c982a7cf4515f124935f99a329744035fc699sliveMODULE_PKGNAME_SET=yes
af4c982a7cf4515f124935f99a329744035fc699slive
af4c982a7cf4515f124935f99a329744035fc699slive# Package metadata
af4c982a7cf4515f124935f99a329744035fc699sliveMODULE_DESC = compatibility links for X11 files
af4c982a7cf4515f124935f99a329744035fc699sliveMODULE_LICENSE = Oracle
2a6c49cfaef5979a5a06098f3ce987cd76769409manojMODULE_LICENSE_SET = yes
531c23ff01a2489646f0a2029097013b328d935agstein
7fe18c15b669db9d191859695901dc4fcf3829dawrowe# Dates to show in Oracle copyright notice in pkg license file
7fe18c15b669db9d191859695901dc4fcf3829dawrowe# Earliest & latest of the copyrights in the Oracle files in this pkg
7fe18c15b669db9d191859695901dc4fcf3829dawroweORACLE_COPYRIGHT_YEARS = 2004, 2010
b84f66c93f820824b1d5455181f55598b766319cwrowe
7fe18c15b669db9d191859695901dc4fcf3829dawrowe# Package classification (override default)
976501adbc040220270f7d1d77c4b8373033be69wroweMODULE_PKGCLASS=System/X11
976501adbc040220270f7d1d77c4b8373033be69wroweMODULE_PKGCLASS_SET=yes
976501adbc040220270f7d1d77c4b8373033be69wrowe
976501adbc040220270f7d1d77c4b8373033be69wrowe# ARC cases that covered this module
976501adbc040220270f7d1d77c4b8373033be69wrowe# PSARC/2004/187 Xorg Server For Solaris
b84f66c93f820824b1d5455181f55598b766319cwroweMODULE_ARC_CASES = PSARC/2004/187
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb# PSARC/2008/405 Removal of /usr/openwin
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbbMODULE_ARC_CASES += PSARC/2008/405
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb# No sources
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbbMODULE_VERSION=src
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbbSOURCE_TARBALL_NAME=NONE
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbbSOURCE_TARBALL_NAME_SET=yes
b84f66c93f820824b1d5455181f55598b766319cwrowe
b84f66c93f820824b1d5455181f55598b766319cwrowe# Don't need default targets for configure, build, or install, since there's
b84f66c93f820824b1d5455181f55598b766319cwrowe# nothing to build, and the install rule follows here
b84f66c93f820824b1d5455181f55598b766319cwroweCONFIGURE_TARGETS =
b84f66c93f820824b1d5455181f55598b766319cwroweCONFIGURE_TARGETS_SET=yes
b84f66c93f820824b1d5455181f55598b766319cwroweBUILD_TARGETS =
79d5106a9b65b956d646f5daae4b94bc79e315b8trawickBUILD_TARGETS_SET=yes
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwroweINSTALL_TARGETS = install_links
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwroweINSTALL_TARGETS_SET=yes
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwrowe
976501adbc040220270f7d1d77c4b8373033be69wrowe### Include common rulesets
976501adbc040220270f7d1d77c4b8373033be69wroweinclude ../Makefile.inc
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwrowe
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddardDESTDIR=$(PROTODIR)
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard# Even though we deliver all our files to /usr/{bin,lib} now, other
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard# consolidations still deliver to /usr/X11, so we have to maintain
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard# /usr/X11, which means leaving symlinks there to our programs & libraries
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard# to avoid breaking existing scripts and binaries
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard$(DESTDIR)/usr/X11:
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard mkdir -p $@
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard# The SVID ABI established the X->X11 link
38b116de532efb28defc6a0aaa71fb8c46487190gstein# PSARC 2004/187 established the X11R6->X11 link for compatibility with Linux
38b116de532efb28defc6a0aaa71fb8c46487190gstein# PSARC 2008/405 removed /usr/openwin and replaced it with a link to /usr/X11
38b116de532efb28defc6a0aaa71fb8c46487190gsteinINSTALL_LINKS = $(DESTDIR)/usr/X $(DESTDIR)/usr/X11R6 $(DESTDIR)/usr/openwin
38b116de532efb28defc6a0aaa71fb8c46487190gstein
38b116de532efb28defc6a0aaa71fb8c46487190gstein$(INSTALL_LINKS): $(DESTDIR)/usr/X11
38b116de532efb28defc6a0aaa71fb8c46487190gstein @rm -f $@
38b116de532efb28defc6a0aaa71fb8c46487190gstein ln -s X11 $@
38b116de532efb28defc6a0aaa71fb8c46487190gstein
38b116de532efb28defc6a0aaa71fb8c46487190gsteininstall_links: $(INSTALL_LINKS)
e2979c854f6ff7c056d75f6f1ae49767ce3b6d37jerenkrantz
abf9f8824312153040e1ee588a50058c67a4081ajerenkrantz# Link directory for Xserver private libraries and data files for
abf9f8824312153040e1ee588a50058c67a4081ajerenkrantz# compatibility with Xnewt binaries built for Solaris 10
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantzXSERVER_LIB_LINKDIR = $(DESTDIR)/usr/X11/lib/X11
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantzXSERVER_LIB_LINKPATH = $(XSERVER_LIB_LINKDIR)/xserver
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantzinstall_links: $(XSERVER_LIB_LINKPATH)
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz$(XSERVER_LIB_LINKDIR): $(DESTDIR)/usr/X11
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz mkdir -p $@
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz$(XSERVER_LIB_LINKPATH): $(XSERVER_LIB_LINKDIR)
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz @rm -f $@
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz ln -s ../../../lib/xorg $@
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz# Font links so that Java fontconfig.properties can find the fonts they use
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz# (see CR 6905518 & 6972032)
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantzFONT_LINKDIR = $(DESTDIR)/usr/X11/lib/X11/fonts
38b116de532efb28defc6a0aaa71fb8c46487190gsteinFONT_LINKS = 75dpi 100dpi misc TrueType
38b116de532efb28defc6a0aaa71fb8c46487190gsteinFONT_LINKPATHS = $(FONT_LINKS:%=$(FONT_LINKDIR)/%)
38b116de532efb28defc6a0aaa71fb8c46487190gstein
38b116de532efb28defc6a0aaa71fb8c46487190gsteininstall_links: $(FONT_LINKPATHS)
38b116de532efb28defc6a0aaa71fb8c46487190gstein
38b116de532efb28defc6a0aaa71fb8c46487190gstein$(FONT_LINKDIR): $(XSERVER_LIB_LINKDIR)
38b116de532efb28defc6a0aaa71fb8c46487190gstein mkdir -p $@
38b116de532efb28defc6a0aaa71fb8c46487190gstein
38b116de532efb28defc6a0aaa71fb8c46487190gstein$(FONT_LINKDIR)/75dpi $(FONT_LINKDIR)/100dpi: $(FONT_LINKDIR)
38b116de532efb28defc6a0aaa71fb8c46487190gstein @rm -f $@
38b116de532efb28defc6a0aaa71fb8c46487190gstein ln -s ../../../../share/fonts/X11/$(@F)-ISO8859-1 $@
38b116de532efb28defc6a0aaa71fb8c46487190gstein
38b116de532efb28defc6a0aaa71fb8c46487190gstein$(FONT_LINKDIR)/misc: $(FONT_LINKDIR)
e2979c854f6ff7c056d75f6f1ae49767ce3b6d37jerenkrantz @rm -f $@
e2979c854f6ff7c056d75f6f1ae49767ce3b6d37jerenkrantz ln -s ../../../../share/fonts/X11/misc $@
38b116de532efb28defc6a0aaa71fb8c46487190gstein
7fe18c15b669db9d191859695901dc4fcf3829dawrowe$(FONT_LINKDIR)/TrueType: $(FONT_LINKDIR)
7fe18c15b669db9d191859695901dc4fcf3829dawrowe @rm -f $@
7fe18c15b669db9d191859695901dc4fcf3829dawrowe ln -s ../../../../share/fonts/TrueType $@
7fe18c15b669db9d191859695901dc4fcf3829dawrowe
28a8a81ca24adf72631caa248b2d37a8f0f645c2aaron# /usr/lib/64 link needed for check_rtime to find binaries using the */64
28a8a81ca24adf72631caa248b2d37a8f0f645c2aaron# paths that gcc inserts in runpaths, even though we don't package the link.
28a8a81ca24adf72631caa248b2d37a8f0f645c2aaronLIB64_LINK=$(PROTODIR)$(X11_LIB_DIR)/64
28a8a81ca24adf72631caa248b2d37a8f0f645c2aaron
28a8a81ca24adf72631caa248b2d37a8f0f645c2aaron$(LIB64_LINK):
28a8a81ca24adf72631caa248b2d37a8f0f645c2aaron mkdir -p $(@D)
28a8a81ca24adf72631caa248b2d37a8f0f645c2aaron rm -f $@
28a8a81ca24adf72631caa248b2d37a8f0f645c2aaron ln -s $(SUBDIR64) $@
e04911e1869585acf01ee0876c2752afbc91af71jerenkrantz
e04911e1869585acf01ee0876c2752afbc91af71jerenkrantzinstall_links: $(LIB64_LINK)
f53df16c9cfebf5cbf9e3c4e929f8f8bc8f66d71jerenkrantz