open-src/app/xterm/Makefile
author Alan Coopersmith <Alan.Coopersmith@Sun.COM>
Mon, 03 Aug 2009 14:27:33 -0700
changeset 761 9a43833314f0
parent 672 1b7a673c1567
child 851 d428083dbbdd
permissions -rwxr-xr-x
6867643 X.Org mass minor app & lib module update: July 2009
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)
761
9a43833314f0 6867643 X.Org mass minor app & lib module update: July 2009
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 672
diff changeset
    39
MODULE_VERSION=243
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
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    51
SOURCE_PATCHES = \
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    52
	4251073.patch
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    53
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    54
# 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
    55
SUNTOUCHED_MANPAGES=*.man
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 450
diff changeset
    56
SUN_PACKAGE=SUNWxwopt
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 450
diff changeset
    57
MODULE_STABILITY=Committed
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    58
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    59
# 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
    60
# and run time 
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    61
FT_CFLAGS= -I$(PROTODIR)/usr/include -I$(PROTODIR)/usr/include/freetype2 \
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    62
	-I$(PROTODIR)/usr/X11/include
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    63
FT_LIBS= \
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    64
  -L$(PROTODIR)/usr/X11/lib$(LIBSUBDIR) -R/usr/X11/lib$(LIBSUBDIR) -lXft \
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    65
  -L$(PROTODIR)/usr/lib$(LIBSUBDIR) -R/usr/lib$(LIBSUBDIR) -lfontconfig
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    66
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    67
# 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
    68
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
    69
  --with-freetype-cflags="$(FT_CFLAGS)" --with-freetype-libs="$(FT_LIBS)" \
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    70
  --disable-setuid --disable-setgid  --enable-luit \
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    71
  --x-includes=$(PROTODIR)/usr/X11/include --x-libraries=/usr/X11/lib \
672
1b7a673c1567 6756028 xterm not compiled with -enable-logging
Naveen <naveen.reddy@sun.com>
parents: 605
diff changeset
    72
  --with-icondir=/usr/share/pixmaps --enable-logging
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    73
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    74
# Tell configure where to find luit binary
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 450
diff changeset
    75
MODULE_CONFIG_ENV = LUIT=/usr/X11/bin/luit
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    76
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    77
include ../Makefile.inc