open-src/app/xterm/Makefile
author Mahmood Ali <Mahmood.Ali@Sun.COM>
Tue, 20 May 2008 09:19:48 -0700
changeset 418 a816b0579af5
child 450 3d93aa3cdd19
permissions -rw-r--r--
6702592 Replace xterm with opensrc version
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
#
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
     3
# xterm 1.x Makefile
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
     4
#
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
     5
# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
     6
# Use subject to license terms.
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
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    36
APP_NAME=xterm
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)
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    39
APP_VERS=235
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
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    42
SOURCE_TARBALL_NAME=$(APP_NAME)-$(APP_VERS).tar.gz
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    43
SOURCE_URL=ftp://invisible-island.net/xterm/xterm.tar.gz
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    44
SOURCE_URL_SET=yes
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    45
SOURCE_UNCOMPRESS=gzcat
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    46
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    47
# 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
    48
SOURCE_PATCHES = \
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    49
	4251073.patch
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
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    53
SUNTOUCH_MAN_FLAGS= -p $(APP_prefix)/bin/ \
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    54
 -a '{Availability, SUNWxwopt} {Interface Stability, Committed}'
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 
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    58
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
    59
	-I$(PROTODIR)/usr/X11/include
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    60
FT_LIBS= \
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    61
  -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
    62
  -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
    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
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    65
APP_CONFIG_OPTS = --enable-256-color --enable-88-color --enable-wide-chars \
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)" \
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    67
  --disable-setuid --disable-setgid  --enable-luit \
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    68
  --x-includes=$(PROTODIR)/usr/X11/include --x-libraries=/usr/X11/lib \
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    69
  --with-icondir=/usr/share/pixmaps
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    70
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    71
# Tell configure where to find luit binary
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    72
APP_CONFIG_ENV = LUIT=/usr/X11/bin/luit
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
include ../Makefile.inc