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