Makefile revision 1339
d5b7ba26785d7494166d48876362ba30ff30b98awrowe###############################################################################
c30ef289fe64ac7fedc44cfcc6b439f0f8458b4cgregames# xterm - terminal emulator for X
238e707c9022eaa8332a702dd6913dd0d1fb3df8jerenkrantz# Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
238e707c9022eaa8332a702dd6913dd0d1fb3df8jerenkrantz# Permission is hereby granted, free of charge, to any person obtaining a
e127d82e8afc2f885fe2183b68d4a110580d21dfjwoolley# copy of this software and associated documentation files (the "Software"),
e127d82e8afc2f885fe2183b68d4a110580d21dfjwoolley# to deal in the Software without restriction, including without limitation
e127d82e8afc2f885fe2183b68d4a110580d21dfjwoolley# the rights to use, copy, modify, merge, publish, distribute, sublicense,
e127d82e8afc2f885fe2183b68d4a110580d21dfjwoolley# and/or sell copies of the Software, and to permit persons to whom the
802e783449595e0cd909a434cbea0810b300bfb2jwoolley# Software is furnished to do so, subject to the following conditions:
802e783449595e0cd909a434cbea0810b300bfb2jwoolley# The above copyright notice and this permission notice (including the next
802e783449595e0cd909a434cbea0810b300bfb2jwoolley# paragraph) shall be included in all copies or substantial portions of the
d51d001ccc276436f1d031208a063d94a09296e2stas# Software.
204da903ce061499ea40d2df4ebb1dc7aa7537c7nd# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
204da903ce061499ea40d2df4ebb1dc7aa7537c7nd# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
204da903ce061499ea40d2df4ebb1dc7aa7537c7nd# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
5b953b9aeef5b38cae481e062a7b5ac209a6170end# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5b953b9aeef5b38cae481e062a7b5ac209a6170end# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
5b953b9aeef5b38cae481e062a7b5ac209a6170end# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
5b953b9aeef5b38cae481e062a7b5ac209a6170end# DEALINGS IN THE SOFTWARE.
cfe1534c2338b51d67063e71a4275279b5087fcetrawick# Package name used in tarballs
5c76205ce580dbac0020fbba74bcf211de3923d3nd# pkg(5) name we deliver the files in (override default)
8b694367655e92b12723cc0c3abe20ce55fb9662slive# resize goes into a separate package so it can be installed in zones without
8b694367655e92b12723cc0c3abe20ce55fb9662slive# X, but which you login to from a resizable GUI terminal window.
5fb2e8564729922524cd011b11e2d4f5d76f5a8dnd# Package classification (override default)
7d851311462dce44df8469009f98ba66d7f7f18end# Package metadata
987c2c2ff2f19f306357f79d3280b347d96c470fnd# Version number (used in path names)
99c475e760470ab8ca3d17da82a2f6158466f918rederpj# Checksums for upstream tarball
99c475e760470ab8ca3d17da82a2f6158466f918rederpjTARBALL_SHA1 = 53586916147cb88e71b3d620a7d1b80f1696749b
0b0966806a96fd817692a5420908594a0c7f9f89trawick# Source tarball
0b0966806a96fd817692a5420908594a0c7f9f89trawickSOURCE_URL=ftp://invisible-island.net/xterm/$(SOURCE_TARBALL_NAME:.tar.gz=.tgz)
7edcfe02796a70f2a5eac12b6766d11067c629a3rederpj# Source tarball
c2d16e88f6a997b9174b5596db5e03cee5f46a8brederpjSOURCE_TARBALL_NAME=$(MODULE_NAME)-$(MODULE_VERSION).tar.gz
a4dd3688dd6645faf0c1c1bfb22017c8f03d5b24nd# Patches to apply to source after unpacking, in order
a4dd3688dd6645faf0c1c1bfb22017c8f03d5b24ndSOURCE_PATCHES = resize.man.patch,-p1 desktop-icon.patch,-p1
f2fe083bb9fabd2af7eb39d4f154f27a451bb5a4nd# Man pages to apply Sun footer to & attributes to list
f2fe083bb9fabd2af7eb39d4f154f27a451bb5a4ndSUNTOUCHED_MANPAGES=koi8rxterm.man resize.man uxterm.man xterm.man
7de6cb79f71a9007ba2b1e786cbad8b84f05d101nd# Fix man page footers to not say "Last changed: X Window System"
aa9b03a5f32732c0caaef03a7ed78ffb290e29e4trawickMODULE_SUNTOUCH_MAN_FLAGS = -r '{__vendorversion__, $(XVENDORVERS)}'
a81c9e8561ebd18177a87fecf1226ac654b873f1rederpj# Override specific attributes for specific man pages
a81c9e8561ebd18177a87fecf1226ac654b873f1rederpj $(SUNTOUCH_MAN_FLAGS_$(@F:%.man.$(FIXED_MAN_SUFFIX)=%))
a81c9e8561ebd18177a87fecf1226ac654b873f1rederpjSUNTOUCH_MAN_FLAGS_resize = -o '{Availability, $(RESIZE_PKGNAME)}'
d1c46782edbd6bd5ae4592c0174969950c5ca8aetrawick# Paths to find Xft/fontconfig/freetype headers libraries at build time
d1c46782edbd6bd5ae4592c0174969950c5ca8aetrawick# and run time
a3954060338ccebc73071e89ac936d4ec15ab352trawickFT_CFLAGS= -I$(PROTODIR)/usr/include -I$(PROTODIR)/usr/include/freetype2
a3954060338ccebc73071e89ac936d4ec15ab352trawick -L$(PROTODIR)/usr/lib$(LIBSUBDIR) -R/usr/lib$(LIBSUBDIR) -lXft -lfontconfig
ab56518227d474ee08f039e4c5540011c1b8a913trawick# Override the flags xterm's configure script generates, since it incorrectly
ab56518227d474ee08f039e4c5540011c1b8a913trawick# adds -R flags pointing to the build proto area, which are not wanted.
4e330708371c3e9b04d1043f0a1ac9368bfbd768coar LDFLAGS="$(DEFAULT_CONFIG_LDFLAGS) $(MODTYPE_CFLAGS) $(MODTYPE_LDFLAGS)"
4e330708371c3e9b04d1043f0a1ac9368bfbd768coar# Additional flags to pass to configure script
219e31b849ef108cd8f58ba0eedae03414e5edb1thommayMODULE_CONFIG_OPTS = --enable-256-color --enable-88-color --enable-wide-chars \
a98959721afc481c7f3a941f85c462f0b90defdathommay --with-freetype-cflags="$(FT_CFLAGS)" --with-freetype-libs="$(FT_LIBS)" \
a98959721afc481c7f3a941f85c462f0b90defdathommay --disable-setuid --disable-setgid --enable-luit --disable-imake \
a98959721afc481c7f3a941f85c462f0b90defdathommay --x-includes=$(PROTODIR)$(X11_INCLUDES_DIR) --x-libraries=$(X11_LIB_DIR) \
dbb916b882c33a4e340b0dba7d75506cfdd85640trawick# Sort-of emulate automake silent rules - run make configure V=1 to see
dbb916b882c33a4e340b0dba7d75506cfdd85640trawick# full compiler flags
a18a308d7a942230edcde1bf00d7ae9b4b143c90trawickMODULE_CONFIG_OPTS_VERBOSE_ = $(MODULE_CONFIG_OPTS_VERBOSE_0)
a18a308d7a942230edcde1bf00d7ae9b4b143c90trawickMODULE_CONFIG_OPTS += $(MODULE_CONFIG_OPTS_VERBOSE_$(V))
9098f795fab5db41a52b6b82fa475e8f9b3850f0trawick# Tell configure where to find luit binary
3b872593fd5f61981d9dd69a4b0b5d5f5f668929trawickMODULE_ADD_INSTALL_TARGETS=install_docs install_desktop
fc25339741311efd7d460f18b6287ef38d76bbe6madhum# Install documentation of xterm control sequences for packaging
19fdbc5566bf67dde644be9e8d38d62db4dd0ba5jerenkrantzPROTO_CTLSEQS=$(PROTODIR)$(MODULE_DOCDIR)/ctlseqs.txt
92a2439559cf1161742650ed9c50c6483bd029cemadhum# Install desktop file to allow starting xterm from GNOME menu
a2c036f0ca71e35c085b4cd9451a6d3718bc65daake# Metadata for separate package for resize
a2c036f0ca71e35c085b4cd9451a6d3718bc65daakeRESIZE_PKG_METADATA_DIR = $(MODULE_PKG_METADATA_DIR:%xterm=%resize)
a2c036f0ca71e35c085b4cd9451a6d3718bc65daakeRESIZE_PKG_ATTRDATA_FILE = $(RESIZE_PKG_METADATA_DIR)/$(ATTRDATA_FILE_NAME)
b92cba59a0890be43b14aaf1ce30606140be9593ndRESIZE_PKG_LICENSE_FILE = $(RESIZE_PKG_METADATA_DIR)/$(LICENSE_FILE_NAME)