Makefile revision 970
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster###############################################################################
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Permission is hereby granted, free of charge, to any person obtaining a
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# copy of this software and associated documentation files (the "Software"),
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# to deal in the Software without restriction, including without limitation
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# the rights to use, copy, modify, merge, publish, distribute, sublicense,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# and/or sell copies of the Software, and to permit persons to whom the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Software is furnished to do so, subject to the following conditions:
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# The above copyright notice and this permission notice (including the next
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# paragraph) shall be included in all copies or substantial portions of the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# DEALINGS IN THE SOFTWARE.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Package name used in tarballs
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# pkg(5) name we deliver the files in (override default)
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterMODULE_PKGNAME=developer/build/autoconf/xorg-macros
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Version number (used in path names)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Checksums for upstream tarball
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterTARBALL_SHA1 = cbe9920712789ecd25386956649db0d666642f0f
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Patches to apply to source after unpacking, in order
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Additional rules for generating sources
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Need to autoreconf after running source_fix_pkgname
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Additional install rules beyond what upstream installs
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# xorg-macro pkg-config files are architecture independent, so install in share
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster### Include common rulesets
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Install additional data files under xorg-macros instead of the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# too-generic "util-macros"
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster $(PERL) -i.orig -p -e 's{util-macros}{xorg-macros}g' \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Libtool versions before 2.2.2 fail to work with LD=cc in 64 bit builds,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# so install fixed libtool m4 macros here as well, so that modules that
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# run autoreconf get the fixed sources
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinstall_libtool_fix: $(TOOLS_ACLOCAL_DIR)/libtool.m4
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster$(TOOLS_ACLOCAL_DIR)/libtool.m4: $(TOOLS_ACLOCAL_DIR) libtool-64.patch
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster SYSTEM_ACLOCAL_DIR=$$($(ACLOCAL_PATH) --print-ac-dir) ; \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster gpatch -d $(TOOLS_ACLOCAL_DIR) < libtool-64.patch
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# autoreconf fails if the aclocal include directories don't exist yet
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster$(AUTOCONF_TARGET): $(TOOLS_ACLOCAL_DIR) $(PROTODIR)$(X11_ACLOCAL_DIR)