author | Alan Coopersmith <Alan.Coopersmith@Oracle.COM> |
Thu, 15 Dec 2011 21:00:02 -0800 | |
changeset 1231 | f2aceee498e2 |
parent 1228 | 47726356aac9 |
child 1356 | 73c3eb360de2 |
permissions | -rw-r--r-- |
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 |
# |
1063
a566150e3ab2
7012367 Upgrade xterm from 261 to 267
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
999
diff
changeset
|
5 |
# Copyright (c) 2008, 2011, 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 |
|
272328fe1b4a
6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
946
diff
changeset
|
43 |
# Package metadata |
272328fe1b4a
6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
946
diff
changeset
|
44 |
UPSTREAM = Thomas Dickey |
272328fe1b4a
6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
946
diff
changeset
|
45 |
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
|
46 |
UPSTREAM_SET = yes |
272328fe1b4a
6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
946
diff
changeset
|
47 |
|
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
48 |
# Version number (used in path names) |
1167
ca7a5afc0ea4
7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1143
diff
changeset
|
49 |
MODULE_VERSION=271 |
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
50 |
|
911
a3e7e197651c
6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
857
diff
changeset
|
51 |
# Checksums for upstream tarball |
1167
ca7a5afc0ea4
7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1143
diff
changeset
|
52 |
TARBALL_MD5 = e07b05bd3d3a666a8cf086fcc8d227f3 |
ca7a5afc0ea4
7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1143
diff
changeset
|
53 |
TARBALL_SHA1 = 53586916147cb88e71b3d620a7d1b80f1696749b |
911
a3e7e197651c
6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
857
diff
changeset
|
54 |
|
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
55 |
# Source tarball |
553
296e3c93d66d
6739565 Update xterm to version 236 & fix OpenSolaris build
Martin Bochnig <martin@martux.org>
parents:
549
diff
changeset
|
56 |
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
|
57 |
SOURCE_URL_SET=yes |
553
296e3c93d66d
6739565 Update xterm to version 236 & fix OpenSolaris build
Martin Bochnig <martin@martux.org>
parents:
549
diff
changeset
|
58 |
|
296e3c93d66d
6739565 Update xterm to version 236 & fix OpenSolaris build
Martin Bochnig <martin@martux.org>
parents:
549
diff
changeset
|
59 |
# Source tarball |
296e3c93d66d
6739565 Update xterm to version 236 & fix OpenSolaris build
Martin Bochnig <martin@martux.org>
parents:
549
diff
changeset
|
60 |
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
|
61 |
SOURCE_TARBALL_NAME_SET=yes |
418
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 |
# Patches to apply to source after unpacking, in order |
1225
468f9817fb71
7109373 xterm icon in gnome menus does not match gnome icon style
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1196
diff
changeset
|
64 |
SOURCE_PATCHES = resize.man.patch,-p1 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
|
65 |
SOURCE_PATCHES += solaris-ia.patch,-p1 |
418
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 |
# 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
|
68 |
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
|
69 |
MODULE_STABILITY=Committed |
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
70 |
|
1143
f9aac8f4b258
7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1063
diff
changeset
|
71 |
# 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
|
72 |
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
|
73 |
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
|
74 |
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
|
75 |
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
|
76 |
|
f9aac8f4b258
7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1063
diff
changeset
|
77 |
# 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
|
78 |
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
|
79 |
$(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
|
80 |
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
|
81 |
|
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
82 |
# 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
|
83 |
# and run time |
851
d428083dbbdd
6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
761
diff
changeset
|
84 |
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
|
85 |
FT_LIBS= \ |
851
d428083dbbdd
6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
761
diff
changeset
|
86 |
-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
|
87 |
|
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
|
88 |
# 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
|
89 |
# 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
|
90 |
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
|
91 |
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
|
92 |
|
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
93 |
# 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
|
94 |
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
|
95 |
--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
|
96 |
--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
|
97 |
--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
|
98 |
--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
|
99 |
--with-icondir=/usr/share/pixmaps --enable-logging |
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
100 |
|
857
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
101 |
# 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
|
102 |
# full compiler flags |
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
103 |
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
|
104 |
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
|
105 |
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
|
106 |
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
|
107 |
|
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
108 |
# 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
|
109 |
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
|
110 |
|
970
272328fe1b4a
6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
946
diff
changeset
|
111 |
# 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
|
112 |
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
|
113 |
|
1167
ca7a5afc0ea4
7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1143
diff
changeset
|
114 |
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
|
115 |
|
418
a816b0579af5
6702592 Replace xterm with opensrc version
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents:
diff
changeset
|
116 |
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
|
117 |
|
22cdbc9f96c4
6900999 xterm should be updated to a more recent patch
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
118 |
# 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
|
119 |
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
|
120 |
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
|
121 |
|
1167
ca7a5afc0ea4
7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1143
diff
changeset
|
122 |
install_docs: $(PROTO_CTLSEQS) |
ca7a5afc0ea4
7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1143
diff
changeset
|
123 |
|
ca7a5afc0ea4
7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1143
diff
changeset
|
124 |
# 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
|
125 |
DESKTOP_DIR=/usr/share/applications |
ca7a5afc0ea4
7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1143
diff
changeset
|
126 |
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
|
127 |
|
ca7a5afc0ea4
7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1143
diff
changeset
|
128 |
install_desktop: $(PROTO_DESKTOP) |
ca7a5afc0ea4
7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1143
diff
changeset
|
129 |
|
ca7a5afc0ea4
7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1143
diff
changeset
|
130 |
$(PROTO_CTLSEQS) $(PROTO_DESKTOP): $(UNPACK_TARGET) |
ca7a5afc0ea4
7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1143
diff
changeset
|
131 |
mkdir -p $(@D) |
ca7a5afc0ea4
7067923 Upgrade xterm from 267 to 271
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1143
diff
changeset
|
132 |
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
|
133 |
|
f9aac8f4b258
7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1063
diff
changeset
|
134 |
# 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
|
135 |
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
|
136 |
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
|
137 |
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
|
138 |
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
|
139 |
$(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
|
140 |
$(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
|
141 |
$(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
|
142 |
|
f9aac8f4b258
7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1063
diff
changeset
|
143 |
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
|
144 |
|
f9aac8f4b258
7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1063
diff
changeset
|
145 |
$(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
|
146 |
mkdir -p $@ |
f9aac8f4b258
7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1063
diff
changeset
|
147 |
|
f9aac8f4b258
7023890 resize(1) needs to move out of pkg:/terminal/xterm
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1063
diff
changeset
|
148 |
$(RESIZE_PKG_ATTRDATA_FILE) $(RESIZE_PKG_LICENSE_FILE): $(RESIZE_PKG_METADATA_DIR) |