author | Alan Coopersmith <Alan.Coopersmith@Sun.COM> |
Tue, 02 Mar 2010 13:31:46 -0800 | |
changeset 919 | 425233ae7236 |
parent 911 | a3e7e197651c |
child 935 | f812f9863e75 |
permissions | -rw-r--r-- |
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
1 |
############################################################################### |
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
2 |
# |
605
e5259db5befc
6790238 Upgrade xterm from 236 to 239
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
559
diff
changeset
|
3 |
# xterm Makefile |
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
4 |
# |
911
a3e7e197651c
6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
857
diff
changeset
|
5 |
# Copyright 2010 Sun Microsystems, Inc. All rights reserved. |
761
9a43833314f0
6867643 X.Org mass minor app & lib module update: July 2009
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
672
diff
changeset
|
6 |
# Use is subject to license terms. |
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
7 |
# |
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
8 |
# 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
|
9 |
# 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
|
10 |
# 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
|
11 |
# 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
|
12 |
# 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
|
13 |
# 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
|
14 |
# |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
15 |
# 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
|
16 |
# 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
|
17 |
# Software. |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
18 |
# |
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 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
|
20 |
# 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
|
21 |
# 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
|
22 |
# 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
|
23 |
# 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
|
24 |
# 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
|
25 |
# DEALINGS IN THE SOFTWARE. |
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
26 |
# |
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
27 |
# |
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
28 |
|
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
29 |
# Package name used in tarballs |
493
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
450
diff
changeset
|
30 |
MODULE_NAME=xterm |
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
31 |
|
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
32 |
# Version number (used in path names) |
857
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
33 |
MODULE_VERSION=253 |
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
34 |
|
911
a3e7e197651c
6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
857
diff
changeset
|
35 |
# Checksums for upstream tarball |
a3e7e197651c
6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
857
diff
changeset
|
36 |
TARBALL_MD5 = 363cc4865b7691bd0ae5eebb42cde9c9 |
a3e7e197651c
6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
857
diff
changeset
|
37 |
TARBALL_SHA1 = 4234376b43a0c60f2516df0c0abe26037671d50f |
a3e7e197651c
6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
857
diff
changeset
|
38 |
|
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
39 |
# Source tarball |
553
296e3c93d66d
6739565 Update xterm to version 236 & fix OpenSolaris build
Martin Bochnig <martin@martux.org>
parents:
549
diff
changeset
|
40 |
SOURCE_URL=ftp://invisible-island.net/xterm/$(SOURCE_TARBALL_NAME:.tar.gz=.tgz) |
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
41 |
SOURCE_URL_SET=yes |
553
296e3c93d66d
6739565 Update xterm to version 236 & fix OpenSolaris build
Martin Bochnig <martin@martux.org>
parents:
549
diff
changeset
|
42 |
|
296e3c93d66d
6739565 Update xterm to version 236 & fix OpenSolaris build
Martin Bochnig <martin@martux.org>
parents:
549
diff
changeset
|
43 |
# Source tarball |
296e3c93d66d
6739565 Update xterm to version 236 & fix OpenSolaris build
Martin Bochnig <martin@martux.org>
parents:
549
diff
changeset
|
44 |
SOURCE_TARBALL_NAME=$(MODULE_NAME)-$(MODULE_VERSION).tar.gz |
296e3c93d66d
6739565 Update xterm to version 236 & fix OpenSolaris build
Martin Bochnig <martin@martux.org>
parents:
549
diff
changeset
|
45 |
SOURCE_TARBALL_NAME_SET=yes |
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
46 |
SOURCE_UNCOMPRESS=gzcat |
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
47 |
|
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
48 |
# Patches to apply to source after unpacking, in order |
857
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
49 |
SOURCE_PATCHES = |
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
50 |
|
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
51 |
# Man pages to apply Sun footer to & attributes to list |
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
52 |
SUNTOUCHED_MANPAGES=*.man |
857
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
53 |
SUN_PACKAGE=SUNWxwplt |
493
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
450
diff
changeset
|
54 |
MODULE_STABILITY=Committed |
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
55 |
|
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
56 |
# Paths to find Xft/fontconfig/freetype headers libraries at build time |
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
57 |
# and run time |
851
d428083dbbdd
6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
761
diff
changeset
|
58 |
FT_CFLAGS= -I$(PROTODIR)/usr/include -I$(PROTODIR)/usr/include/freetype2 |
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
59 |
FT_LIBS= \ |
851
d428083dbbdd
6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
761
diff
changeset
|
60 |
-L$(PROTODIR)/usr/lib$(LIBSUBDIR) -R/usr/lib$(LIBSUBDIR) -lXft -lfontconfig |
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
61 |
|
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
62 |
# Additional flags to pass to configure script |
493
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
450
diff
changeset
|
63 |
MODULE_CONFIG_OPTS = --enable-256-color --enable-88-color --enable-wide-chars \ |
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
64 |
--with-freetype-cflags="$(FT_CFLAGS)" --with-freetype-libs="$(FT_LIBS)" \ |
857
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
65 |
--disable-setuid --disable-setgid --enable-luit --disable-imake \ |
851
d428083dbbdd
6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
761
diff
changeset
|
66 |
--x-includes=$(PROTODIR)$(X11_INCLUDES_DIR) --x-libraries=$(X11_LIB_DIR) \ |
d428083dbbdd
6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
761
diff
changeset
|
67 |
--with-app-defaults=/usr/share/X11/app-defaults \ |
672
1b7a673c1567
6756028 xterm not compiled with -enable-logging
Naveen <naveen.reddy@sun.com>
parents:
605
diff
changeset
|
68 |
--with-icondir=/usr/share/pixmaps --enable-logging |
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
69 |
|
857
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
70 |
# Sort-of emulate automake silent rules - run make configure V=1 to see |
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
71 |
# full compiler flags |
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
72 |
MODULE_CONFIG_OPTS_VERBOSE_0 = --disable-echo |
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
73 |
MODULE_CONFIG_OPTS_VERBOSE_1 = --enable-echo |
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
74 |
MODULE_CONFIG_OPTS_VERBOSE_ = $(MODULE_CONFIG_OPTS_VERBOSE_0) |
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
75 |
MODULE_CONFIG_OPTS += $(MODULE_CONFIG_OPTS_VERBOSE_$(V)) |
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
76 |
|
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
77 |
# Tell configure where to find luit binary |
851
d428083dbbdd
6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
761
diff
changeset
|
78 |
MODULE_CONFIG_ENV = LUIT=$(X11_BIN_DIR)/luit |
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
79 |
|
857
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
80 |
MODULE_ADD_BUILD_TARGETS=fix_manpages |
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
81 |
MODULE_ADD_INSTALL_TARGETS=install_docs |
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
82 |
|
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
83 |
include ../Makefile.inc |
857
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
84 |
|
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
85 |
# Fix man page footers to not say "Last changed: X Window System" |
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
86 |
XORGRELSTRING = $(MODULE_NAME) $(MODULE_VERSION) |
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
87 |
XORGMANNAME = X Version 11 |
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
88 |
XVENDORVERS = "$(XORGRELSTRING)" "$(XORGMANNAME)" |
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
89 |
|
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
90 |
fix_manpages: $(UNPACK_TARGET) |
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
91 |
/usr/perl5/bin/perl -i -p -e 's{__vendorversion__}{$(XVENDORVERS)}g' \ |
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
92 |
$(SOURCE_DIR)/*.man |
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
93 |
|
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
94 |
# Install documentation of xterm control sequences for packaging |
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
95 |
MODULE_DOCDIR=/usr/share/doc/xterm |
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
96 |
|
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
97 |
install_docs: $(UNPACK_TARGET) |
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
98 |
mkdir -p $(PROTODIR)$(MODULE_DOCDIR) |
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
99 |
rm -f $(PROTODIR)$(MODULE_DOCDIR)/ctlseqs.txt |
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
100 |
cp -pf $(SOURCE_DIR)/ctlseqs.txt $(PROTODIR)$(MODULE_DOCDIR)/ |