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