open-src/util/util-macros/Makefile
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Wed, 28 Apr 2010 18:08:17 -0700
changeset 943 294f64612d23
parent 919 425233ae7236
child 946 c4381a29a60a
permissions -rw-r--r--
6948254 Mass update of X gate sources to Oracle copyright format
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
174
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     1
###############################################################################
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     2
#
943
294f64612d23 6948254 Mass update of X gate sources to Oracle copyright format
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 919
diff changeset
     3
# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
174
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     4
#
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     5
# Permission is hereby granted, free of charge, to any person obtaining a
919
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
     6
# copy of this software and associated documentation files (the "Software"),
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
     7
# to deal in the Software without restriction, including without limitation
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
     8
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
     9
# and/or sell copies of the Software, and to permit persons to whom the
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    10
# Software is furnished to do so, subject to the following conditions:
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    11
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    12
# The above copyright notice and this permission notice (including the next
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    13
# paragraph) shall be included in all copies or substantial portions of the
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    14
# Software.
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    15
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    16
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    17
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    18
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    19
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    20
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    21
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    22
# DEALINGS IN THE SOFTWARE.
174
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    23
#
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    24
#
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    25
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 479
diff changeset
    26
# Package name used in tarballs
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 479
diff changeset
    27
MODULE_NAME=util-macros
174
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    28
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    29
# Version number (used in path names)
851
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 761
diff changeset
    30
MODULE_VERSION=1.3.0
174
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    31
911
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 910
diff changeset
    32
# Checksums for upstream tarball
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 910
diff changeset
    33
TARBALL_MD5  = 0837fe88af7d692308b25815457a3288
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 910
diff changeset
    34
TARBALL_SHA1 = 2c6396976af20bb0c7b3b27b229876fe67c6b9dc
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 910
diff changeset
    35
174
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    36
# Patches to apply to source after unpacking, in order
598
48acf24353fc 6787718 Upgrade xorg-util-macros to 1.2.1
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 493
diff changeset
    37
SOURCE_PATCHES=	
174
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    38
910
0a08683bf637 6928500 Race conditions in parallel make break X nightly builds
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    39
# Additional install rules beyond what upstream installs
0a08683bf637 6928500 Race conditions in parallel make break X nightly builds
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    40
MODULE_ADD_INSTALL_TARGETS=install_libtool_fix
0a08683bf637 6928500 Race conditions in parallel make break X nightly builds
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    41
174
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    42
### Include common rulesets
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 479
diff changeset
    43
include ../Makefile.inc
174
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    44
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 479
diff changeset
    45
# Libtool versions before 2.2.2 fail to work with LD=cc in 64 bit builds, 
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 479
diff changeset
    46
# so install fixed libtool m4 macros here as well, so that modules that
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 479
diff changeset
    47
# run autoreconf get the fixed sources
910
0a08683bf637 6928500 Race conditions in parallel make break X nightly builds
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    48
install_libtool_fix:
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 479
diff changeset
    49
	mkdir -p $(PROTODIR)$(X11_ACLOCAL_DIR)/
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 479
diff changeset
    50
	-rm -f $(PROTODIR)$(X11_ACLOCAL_DIR)/libtool.m4
599
c195ef96916e 6787756 Use Solaris-bundled GNU tools where possible, instead of JDS CBE, when building X
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 598
diff changeset
    51
	SYSTEM_ACLOCAL_DIR=$$($(ACLOCAL_PATH) --print-ac-dir) ; \
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 479
diff changeset
    52
	cp $${SYSTEM_ACLOCAL_DIR}/libtool.m4 \
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 479
diff changeset
    53
		$(PROTODIR)$(X11_ACLOCAL_DIR)/libtool.m4
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 479
diff changeset
    54
	gpatch -d $(PROTODIR)$(X11_ACLOCAL_DIR) < libtool-64.patch