Makefile revision 1447
f2472b79d241967fa28f8284470b1c5cafee7b12wrowe###############################################################################
84fbf855118f318dd5e511d8e5b902cecc1177c0jim# Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved.
0ed19acadd3d3dd593759173d87d2243e97914e2sf# Permission is hereby granted, free of charge, to any person obtaining a
0ed19acadd3d3dd593759173d87d2243e97914e2sf# copy of this software and associated documentation files (the "Software"),
0ed19acadd3d3dd593759173d87d2243e97914e2sf# to deal in the Software without restriction, including without limitation
0ed19acadd3d3dd593759173d87d2243e97914e2sf# the rights to use, copy, modify, merge, publish, distribute, sublicense,
4cefc38158672f5de8119886d9754cf0609a9371minfrin# and/or sell copies of the Software, and to permit persons to whom the
4cefc38158672f5de8119886d9754cf0609a9371minfrin# Software is furnished to do so, subject to the following conditions:
4cefc38158672f5de8119886d9754cf0609a9371minfrin# The above copyright notice and this permission notice (including the next
4cefc38158672f5de8119886d9754cf0609a9371minfrin# paragraph) shall be included in all copies or substantial portions of the
11d3c510dca5b5178ad4739ffc1567ef2155bda9minfrin# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
d974a1624c0bb4f1c2e8b36fcf8ba1f12284ed8dsf# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
d974a1624c0bb4f1c2e8b36fcf8ba1f12284ed8dsf# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
d974a1624c0bb4f1c2e8b36fcf8ba1f12284ed8dsf# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1a8c329935111a5059363efe927d631371b78414minfrin# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1a8c329935111a5059363efe927d631371b78414minfrin# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
fac37c9794a18c24d187f4e0f97a9476c4344118minfrin# DEALINGS IN THE SOFTWARE.
fc58f0ff708564b67cd578c626b6500d1cd63a51sf# Package name used in tarballs
fc58f0ff708564b67cd578c626b6500d1cd63a51sf# Package metadata
dcb4802d9ea9fc4ba89671e8f8faa70c9535b202minfrin# Version number (used in path names)
ce4dc40a4e87991087488f70d96d3447d7557294sf# Checksums for upstream tarball
9db0b0ee6ffade769db57b37a06b3f4849b5d367minfrin# Patches to apply to source after unpacking, in order
033d82412cc4af9d939b7e1645425b9e7f4ebf60minfrin# Extra rules to run when unpacking upstream source
033d82412cc4af9d939b7e1645425b9e7f4ebf60minfrinCLEAN_LINEFEED_TARGET = $(SOURCE_DIR)/.source.clean.done
1b390add6886fb1c0acdea82be0ef0920f1158casf# manpage-sections.patch edits configure.ac, so we need to autoreconf
5fd471ec540a088d143a223096d35661bf87c15btrawick# Man pages to apply Sun footer to & attributes to list
f2472b79d241967fa28f8284470b1c5cafee7b12wrowe# Extra flags to pass to configure script
f2472b79d241967fa28f8284470b1c5cafee7b12wrowe# - Disable DRI since the kernel module isn't ported
c9201c790435060b1322d86949183085ca5f6c0cwrowe# --libdir is needed to set path for XvMC libraries
c9201c790435060b1322d86949183085ca5f6c0cwroweMODULE_CONFIG_OPTS += --libdir='$(X11_LIB_DIR)$(ARCHLIBSUBDIR)'
c9201c790435060b1322d86949183085ca5f6c0cwrowe# Instead of allowing the default MODTYPE_LD_SHARED_OPTIONS to link all
c9201c790435060b1322d86949183085ca5f6c0cwrowe# the libraries against the Xorg server binary, ldflags.patch adds
c9201c790435060b1322d86949183085ca5f6c0cwrowe# $(openchrome_drv_la_LDFLAGS_add) to the link of just openchrome_drv.so,
38bd9dba7627c6b2f331cd0731c272ee6bd876b1wrowe# but not to the client side XvMC libs.
c1ba97f41a4526d84fb7a1596afe3dd11e065a2cminfrin -L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
4ed33a14c26d78bbe6bd0b9d5091cdb184e348basf openchrome_drv_la_LDFLAGS_add='$(openchrome_drv_la_LDFLAGS_add)'
72e3829dbd019a63b1091987fc6e7b1c028b089cminfrin# via_regs.h has ^M's at linefeeds which break Sun compilers