open-src/app/xterm/Makefile
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Fri, 18 Mar 2016 18:23:26 -0700
changeset 1621 5f67c979a486
parent 1610 77a2e608a1ff
child 1641 35beb75f273a
permissions -rw-r--r--
22902692 programs running in xterm don't account for resizes
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
#
1356
73c3eb360de2 16167547 Update copyright & license display & metadata in X packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1231
diff changeset
     3
# xterm - terminal emulator for X
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
     4
#
1607
80f8cd5b6d90 22727844 X gate builds should specify C & C++ language versions to use
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1590
diff changeset
     5
# Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
     6
#
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
     7
# 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
     8
# 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
     9
# 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
    10
# 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
    11
# 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
    12
# 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
    13
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    14
# 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
    15
# 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
    16
# Software.
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    17
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    18
# 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
    19
# 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
    20
# 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
    21
# 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
    22
# 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
    23
# 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
    24
# DEALINGS IN THE SOFTWARE.
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    25
#
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
# Package name used in tarballs
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 450
diff changeset
    29
MODULE_NAME=xterm
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    30
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 946
diff changeset
    31
# pkg(5) name we deliver the files in (override default)
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 946
diff changeset
    32
MODULE_PKGNAME=terminal/xterm
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 946
diff changeset
    33
MODULE_PKGNAME_SET=yes
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 946
diff changeset
    34
1143
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
    35
# resize goes into a separate package so it can be installed in zones without
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
    36
# X, but which you login to from a resizable GUI terminal window.
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
    37
RESIZE_PKGNAME=terminal/resize
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
    38
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 946
diff changeset
    39
# Package classification (override default)
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 946
diff changeset
    40
MODULE_PKGCLASS=Applications/System Utilities
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 946
diff changeset
    41
MODULE_PKGCLASS_SET=yes
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 946
diff changeset
    42
1590
5dc3c751c9c5 21281597 Update fontconfig to the latest version available
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1420
diff changeset
    43
# ARC cases that covered this module
5dc3c751c9c5 21281597 Update fontconfig to the latest version available
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1420
diff changeset
    44
# PSARC/2015/308 xterm 318
5dc3c751c9c5 21281597 Update fontconfig to the latest version available
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1420
diff changeset
    45
MODULE_ARC_CASES += PSARC/2015/308
5dc3c751c9c5 21281597 Update fontconfig to the latest version available
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1420
diff changeset
    46
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 946
diff changeset
    47
# Package metadata
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 946
diff changeset
    48
UPSTREAM	= Thomas Dickey
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 946
diff changeset
    49
UPSTREAM_URL	= http://invisible-island.net/xterm/
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 946
diff changeset
    50
UPSTREAM_SET	= yes
1356
73c3eb360de2 16167547 Update copyright & license display & metadata in X packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1231
diff changeset
    51
MODULE_DESC	= the xterm terminal emulator application
1590
5dc3c751c9c5 21281597 Update fontconfig to the latest version available
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1420
diff changeset
    52
ORACLE_TPNO 	= 23284
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 946
diff changeset
    53
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    54
# Version number (used in path names)
1590
5dc3c751c9c5 21281597 Update fontconfig to the latest version available
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1420
diff changeset
    55
MODULE_VERSION=320
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    56
911
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 857
diff changeset
    57
# Checksums for upstream tarball
1590
5dc3c751c9c5 21281597 Update fontconfig to the latest version available
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1420
diff changeset
    58
TARBALL_MD5   = 0d7f0e6390d132ae59876b3870e5783d
5dc3c751c9c5 21281597 Update fontconfig to the latest version available
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1420
diff changeset
    59
TARBALL_SHA1  = b1d2a1698430eb96530aa7c7bb7a6c562dcecf72
5dc3c751c9c5 21281597 Update fontconfig to the latest version available
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1420
diff changeset
    60
TARBALL_SHA256= a60dbb574334c081425fa30f011cd9f571e3be7a91e2a84e252461798bce24a7
911
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 857
diff changeset
    61
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    62
# Source tarball
553
296e3c93d66d 6739565 Update xterm to version 236 & fix OpenSolaris build
Martin Bochnig <martin@martux.org>
parents: 549
diff changeset
    63
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
    64
SOURCE_URL_SET=yes
553
296e3c93d66d 6739565 Update xterm to version 236 & fix OpenSolaris build
Martin Bochnig <martin@martux.org>
parents: 549
diff changeset
    65
296e3c93d66d 6739565 Update xterm to version 236 & fix OpenSolaris build
Martin Bochnig <martin@martux.org>
parents: 549
diff changeset
    66
# Source tarball
296e3c93d66d 6739565 Update xterm to version 236 & fix OpenSolaris build
Martin Bochnig <martin@martux.org>
parents: 549
diff changeset
    67
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
    68
SOURCE_TARBALL_NAME_SET=yes
418
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
# Patches to apply to source after unpacking, in order
1420
a66feea9d14c 17673151 Upgrade xterm to patch 297
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1356
diff changeset
    71
SOURCE_PATCHES = desktop-icon.patch,-p1
1231
f2aceee498e2 7122098 xterm should give its children the gift of IA class boosts
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1228
diff changeset
    72
SOURCE_PATCHES += solaris-ia.patch,-p1
1621
5f67c979a486 22902692 programs running in xterm don't account for resizes
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1610
diff changeset
    73
SOURCE_PATCHES += xpg-open.patch,-p1
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    74
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    75
# Man pages to apply Sun footer to & attributes to list
1143
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
    76
SUNTOUCHED_MANPAGES=koi8rxterm.man resize.man uxterm.man xterm.man
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 450
diff changeset
    77
MODULE_STABILITY=Committed
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    78
1143
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
    79
# Fix man page footers to not say "Last changed: X Window System"
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
    80
XORGRELSTRING = $(MODULE_NAME) $(MODULE_VERSION)
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
    81
  XORGMANNAME = X Version 11
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
    82
  XVENDORVERS = "$(XORGRELSTRING)" "$(XORGMANNAME)"
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
    83
MODULE_SUNTOUCH_MAN_FLAGS = -r '{__vendorversion__, $(XVENDORVERS)}'
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
    84
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
    85
# Override specific attributes for specific man pages
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
    86
MODULE_SUNTOUCH_MAN_FLAGS += \
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
    87
	$(SUNTOUCH_MAN_FLAGS_$(@F:%.man.$(FIXED_MAN_SUFFIX)=%))
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
    88
SUNTOUCH_MAN_FLAGS_resize = -o '{Availability, $(RESIZE_PKGNAME)}'
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
    89
1607
80f8cd5b6d90 22727844 X gate builds should specify C & C++ language versions to use
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1590
diff changeset
    90
# xterm's configure script will set _XOPEN_SOURCE to the old XPG5 version
80f8cd5b6d90 22727844 X gate builds should specify C & C++ language versions to use
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1590
diff changeset
    91
# if we don't override it with a newer version (700 for S12, 600 for S11)
80f8cd5b6d90 22727844 X gate builds should specify C & C++ language versions to use
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1590
diff changeset
    92
MODULE_CPPFLAGS = -D_XOPEN_SOURCE=700 -D__EXTENSIONS__
80f8cd5b6d90 22727844 X gate builds should specify C & C++ language versions to use
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1590
diff changeset
    93
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    94
# 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
    95
# and run time 
851
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 761
diff changeset
    96
FT_CFLAGS= -I$(PROTODIR)/usr/include -I$(PROTODIR)/usr/include/freetype2
1610
77a2e608a1ff 22807351 X gate makefiles no longer need to carry around $(X11_DIR) baggage
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1607
diff changeset
    97
FT_LIBS= -L$(PROTODIR)/usr/lib$(LIBSUBDIR) -lXft -lfontconfig
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
    98
1196
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1167
diff changeset
    99
# Override the flags xterm's configure script generates, since it incorrectly
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1167
diff changeset
   100
# adds -R flags pointing to the build proto area, which are not wanted.
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1167
diff changeset
   101
MODULE_BUILD_MAKEFLAGS = \
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1167
diff changeset
   102
  LDFLAGS="$(DEFAULT_CONFIG_LDFLAGS) $(MODTYPE_CFLAGS) $(MODTYPE_LDFLAGS)"
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1167
diff changeset
   103
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
   104
# 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
   105
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
   106
  --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
   107
  --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
   108
  --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
   109
  --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
   110
  --with-icondir=/usr/share/pixmaps --enable-logging
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
   111
857
22cdbc9f96c4 6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
   112
# 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
   113
# full compiler flags
22cdbc9f96c4 6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
   114
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
   115
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
   116
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
   117
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
   118
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
   119
# 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
   120
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
   121
1607
80f8cd5b6d90 22727844 X gate builds should specify C & C++ language versions to use
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1590
diff changeset
   122
# xterm's configure script checks for $CC having extra flags & breaks if it
80f8cd5b6d90 22727844 X gate builds should specify C & C++ language versions to use
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1590
diff changeset
   123
# does, so we need to force CC to be set to just the compiler, and pass the
80f8cd5b6d90 22727844 X gate builds should specify C & C++ language versions to use
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1590
diff changeset
   124
# rest of the flags via CFLAGS & CPPFLAGS
80f8cd5b6d90 22727844 X gate builds should specify C & C++ language versions to use
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1590
diff changeset
   125
JUST_CC = $(CC_$(CHOSEN_COMPILER))
80f8cd5b6d90 22727844 X gate builds should specify C & C++ language versions to use
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1590
diff changeset
   126
MODULE_CONFIG_ENV += CC="$(JUST_CC)"
80f8cd5b6d90 22727844 X gate builds should specify C & C++ language versions to use
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1590
diff changeset
   127
MODULE_CFLAGS   += $(CC:$(JUST_CC)=)
80f8cd5b6d90 22727844 X gate builds should specify C & C++ language versions to use
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1590
diff changeset
   128
MODULE_CPPFLAGS += $(CC:$(JUST_CC)=)
80f8cd5b6d90 22727844 X gate builds should specify C & C++ language versions to use
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1590
diff changeset
   129
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 946
diff changeset
   130
# Compatibility links from /usr/X11/bin to /usr/bin
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 946
diff changeset
   131
MODULE_X11_BINCOMPAT_LINKS = xterm resize
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 946
diff changeset
   132
1167
ca7a5afc0ea4 7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1143
diff changeset
   133
MODULE_ADD_INSTALL_TARGETS=install_docs install_desktop
ca7a5afc0ea4 7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1143
diff changeset
   134
418
a816b0579af5 6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff changeset
   135
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
   136
22cdbc9f96c4 6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
   137
# 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
   138
MODULE_DOCDIR=/usr/share/doc/xterm
1167
ca7a5afc0ea4 7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1143
diff changeset
   139
PROTO_CTLSEQS=$(PROTODIR)$(MODULE_DOCDIR)/ctlseqs.txt
857
22cdbc9f96c4 6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
   140
1167
ca7a5afc0ea4 7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1143
diff changeset
   141
install_docs: $(PROTO_CTLSEQS)
ca7a5afc0ea4 7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1143
diff changeset
   142
ca7a5afc0ea4 7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1143
diff changeset
   143
# Install desktop file to allow starting xterm from GNOME menu
ca7a5afc0ea4 7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1143
diff changeset
   144
DESKTOP_DIR=/usr/share/applications
ca7a5afc0ea4 7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1143
diff changeset
   145
PROTO_DESKTOP=$(PROTODIR)$(DESKTOP_DIR)/xterm.desktop
ca7a5afc0ea4 7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1143
diff changeset
   146
ca7a5afc0ea4 7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1143
diff changeset
   147
install_desktop: $(PROTO_DESKTOP)
ca7a5afc0ea4 7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1143
diff changeset
   148
ca7a5afc0ea4 7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1143
diff changeset
   149
$(PROTO_CTLSEQS) $(PROTO_DESKTOP): $(UNPACK_TARGET)
ca7a5afc0ea4 7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1143
diff changeset
   150
	mkdir -p $(@D)
ca7a5afc0ea4 7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1143
diff changeset
   151
	cp -pf $(SOURCE_DIR)/$(@F) $@
1143
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
   152
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
   153
# Metadata for separate package for resize
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
   154
RESIZE_PKG_METADATA_DIR      = $(MODULE_PKG_METADATA_DIR:%xterm=%resize)
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
   155
RESIZE_PKG_ATTRDATA_FILE     = $(RESIZE_PKG_METADATA_DIR)/$(ATTRDATA_FILE_NAME)
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
   156
RESIZE_PKG_LICENSE_FILE      = $(RESIZE_PKG_METADATA_DIR)/$(LICENSE_FILE_NAME)
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
   157
RESIZE_METADATA_TARGETS = \
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
   158
        $(RESIZE_PKG_METADATA_DIR) \
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
   159
        $(RESIZE_PKG_ATTRDATA_FILE) \
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
   160
        $(RESIZE_PKG_LICENSE_FILE)
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
   161
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
   162
install_metadata: $(RESIZE_METADATA_TARGETS)
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
   163
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
   164
$(RESIZE_PKG_METADATA_DIR):
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
   165
	mkdir -p $@
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
   166
f9aac8f4b258 7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1063
diff changeset
   167
$(RESIZE_PKG_ATTRDATA_FILE) $(RESIZE_PKG_LICENSE_FILE): $(RESIZE_PKG_METADATA_DIR)