open-src/app/xterm/Makefile
author Alan Coopersmith <Alan.Coopersmith@Sun.COM>
Thu, 10 Dec 2009 13:03:02 -0800
changeset 857 22cdbc9f96c4
parent 851 d428083dbbdd
child 911 a3e7e197651c
permissions -rwxr-xr-x
6900999 xterm should be updated to a more recent patch
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
#
605
e5259db5befc 6790238 Upgrade xterm from 236 to 239
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 559
diff changeset
     5
# Copyright 2009 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
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
     9
# copy of this software and associated documentation files (the
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    10
# "Software"), to deal in the Software without restriction, including
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    11
# without limitation the rights to use, copy, modify, merge, publish,
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    12
# distribute, and/or sell copies of the Software, and to permit persons
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    13
# to whom the Software is furnished to do so, provided that the above
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    14
# copyright notice(s) and this permission notice appear in all copies of
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    15
# the Software and that both the above copyright notice(s) and this
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    16
# permission notice appear in supporting documentation.
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    17
# 
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    18
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    19
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    20
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    21
# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    22
# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    23
# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    24
# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    25
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    26
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
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
# Except as contained in this notice, the name of a copyright holder
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    29
# shall not be used in advertising or otherwise to promote the sale, use
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    30
# or other dealings in this Software without prior written authorization
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    31
# of the copyright holder.
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    32
#
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    33
#
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    34
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    35
# Package name used in tarballs
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 450
diff changeset
    36
MODULE_NAME=xterm
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    37
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    38
# 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
    39
MODULE_VERSION=253
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    40
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    41
# Source tarball
553
296e3c93d66d 6739565 Update xterm to version 236 & fix OpenSolaris build
Martin Bochnig <martin@martux.org>
parents: 549
diff changeset
    42
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
    43
SOURCE_URL_SET=yes
553
296e3c93d66d 6739565 Update xterm to version 236 & fix OpenSolaris build
Martin Bochnig <martin@martux.org>
parents: 549
diff changeset
    44
296e3c93d66d 6739565 Update xterm to version 236 & fix OpenSolaris build
Martin Bochnig <martin@martux.org>
parents: 549
diff changeset
    45
# Source tarball
296e3c93d66d 6739565 Update xterm to version 236 & fix OpenSolaris build
Martin Bochnig <martin@martux.org>
parents: 549
diff changeset
    46
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
    47
SOURCE_TARBALL_NAME_SET=yes
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    48
SOURCE_UNCOMPRESS=gzcat
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    49
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    50
# 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
    51
SOURCE_PATCHES = 
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    52
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    53
# 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
    54
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
    55
SUN_PACKAGE=SUNWxwplt
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 450
diff changeset
    56
MODULE_STABILITY=Committed
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    57
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    58
# 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
    59
# and run time 
851
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 761
diff changeset
    60
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
    61
FT_LIBS= \
851
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 761
diff changeset
    62
  -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
    63
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    64
# 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
    65
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
    66
  --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
    67
  --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
    68
  --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
    69
  --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
    70
  --with-icondir=/usr/share/pixmaps --enable-logging
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    71
857
22cdbc9f96c4 6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    72
# 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
    73
# full compiler flags
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_0 = --disable-echo
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_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
    76
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
    77
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
    78
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    79
# 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
    80
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
    81
857
22cdbc9f96c4 6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    82
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
    83
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
    84
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    85
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
    86
22cdbc9f96c4 6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    87
# 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
    88
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
    89
  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
    90
  XVENDORVERS = "$(XORGRELSTRING)" "$(XORGMANNAME)"
22cdbc9f96c4 6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    91
22cdbc9f96c4 6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    92
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
    93
	/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
    94
	  $(SOURCE_DIR)/*.man
22cdbc9f96c4 6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    95
22cdbc9f96c4 6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    96
# 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
    97
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
    98
22cdbc9f96c4 6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    99
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
   100
	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
   101
	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
   102
	cp -pf $(SOURCE_DIR)/ctlseqs.txt $(PROTODIR)$(MODULE_DOCDIR)/