open-src/app/xterm/Makefile
author Alan Coopersmith <Alan.Coopersmith@Sun.COM>
Mon, 22 Sep 2008 13:27:21 -0700
changeset 549 73b198dd97c9
parent 493 f43507b5737d
child 553 296e3c93d66d
permissions -rwxr-xr-x
6749784 new xterm links again against old libXaw
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
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)
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 450
diff changeset
    39
MODULE_VERSION=235
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
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    42
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
    43
SOURCE_URL_SET=yes
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    44
SOURCE_UNCOMPRESS=gzcat
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    45
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    46
# 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
    47
SOURCE_PATCHES = \
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    48
	4251073.patch
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
# 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
    51
SUNTOUCHED_MANPAGES=*.man
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 450
diff changeset
    52
SUN_PACKAGE=SUNWxwopt
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 450
diff changeset
    53
MODULE_STABILITY=Committed
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    54
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    55
# 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
    56
# and run time 
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    57
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
    58
	-I$(PROTODIR)/usr/X11/include
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    59
FT_LIBS= \
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    60
  -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
    61
  -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
    62
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    63
# 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
    64
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
    65
  --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
    66
  --disable-setuid --disable-setgid  --enable-luit \
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    67
  --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
    68
  --with-icondir=/usr/share/pixmaps
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    69
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    70
# 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
    71
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
    72
450
3d93aa3cdd19 6714408 new xterm links against old libXaw
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 418
diff changeset
    73
# Use new libXaw
549
73b198dd97c9 6749784 new xterm links again against old libXaw
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 493
diff changeset
    74
MODULE_LD_OPTIONS = -L$(PROTODIR)$(X11_DIR)/lib/xorgcfg \
450
3d93aa3cdd19 6714408 new xterm links against old libXaw
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 418
diff changeset
    75
			-R$(X11_DIR)/lib/xorgcfg
3d93aa3cdd19 6714408 new xterm links against old libXaw
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 418
diff changeset
    76
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    77
include ../Makefile.inc