Makefile revision 1063
4d237bbe075b1d2c19428cd954d721d65b31f67cwrowe###############################################################################
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna#
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna# xterm Makefile
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna#
86bb763be5d87c295c8844d30078da2ddb964f73rpluem# Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
86bb763be5d87c295c8844d30078da2ddb964f73rpluem#
ba217dc41cebc0976010ee177f8fedac782d1f6fminfrin# Permission is hereby granted, free of charge, to any person obtaining a
ba217dc41cebc0976010ee177f8fedac782d1f6fminfrin# copy of this software and associated documentation files (the "Software"),
86bb763be5d87c295c8844d30078da2ddb964f73rpluem# to deal in the Software without restriction, including without limitation
86bb763be5d87c295c8844d30078da2ddb964f73rpluem# the rights to use, copy, modify, merge, publish, distribute, sublicense,
ba217dc41cebc0976010ee177f8fedac782d1f6fminfrin# and/or sell copies of the Software, and to permit persons to whom the
ba217dc41cebc0976010ee177f8fedac782d1f6fminfrin# Software is furnished to do so, subject to the following conditions:
6bc4f334a04802bab835893d0c42af8bfb9c3c41sf#
6bc4f334a04802bab835893d0c42af8bfb9c3c41sf# The above copyright notice and this permission notice (including the next
6bc4f334a04802bab835893d0c42af8bfb9c3c41sf# paragraph) shall be included in all copies or substantial portions of the
6bc4f334a04802bab835893d0c42af8bfb9c3c41sf# Software.
53593dbd8fece82cb66a23f0b7024d8d713d66f1sf#
53593dbd8fece82cb66a23f0b7024d8d713d66f1sf# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
79e3f2f950745953fff4a6a8dfe1f7cce31ce287sf# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
79e3f2f950745953fff4a6a8dfe1f7cce31ce287sf# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
ab2b977442827214b1d884decf3e3f1579fd45e1rpluem# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
ab2b977442827214b1d884decf3e3f1579fd45e1rpluem# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
ab2b977442827214b1d884decf3e3f1579fd45e1rpluem# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
195edf54eccd8c5a436c7dd17f5f604e7074d5d1sf# DEALINGS IN THE SOFTWARE.
195edf54eccd8c5a436c7dd17f5f604e7074d5d1sf#
195edf54eccd8c5a436c7dd17f5f604e7074d5d1sf#
3709b26f3370ae89c5324a3c03fab56a93b09ecdsf
3709b26f3370ae89c5324a3c03fab56a93b09ecdsf# Package name used in tarballs
3709b26f3370ae89c5324a3c03fab56a93b09ecdsfMODULE_NAME=xterm
03577bc320125eaa2b27ee7af78b894ee6dfe121takashi
03577bc320125eaa2b27ee7af78b894ee6dfe121takashi# pkg(5) name we deliver the files in (override default)
03577bc320125eaa2b27ee7af78b894ee6dfe121takashiMODULE_PKGNAME=terminal/xterm
f5119c5d7cfe8c6d53cb29d43f8746684068ed82minfrinMODULE_PKGNAME_SET=yes
f5119c5d7cfe8c6d53cb29d43f8746684068ed82minfrin
f5119c5d7cfe8c6d53cb29d43f8746684068ed82minfrin# Package classification (override default)
f5119c5d7cfe8c6d53cb29d43f8746684068ed82minfrinMODULE_PKGCLASS=Applications/System Utilities
f74d35a61a835e15412b99b8aebe4958fe4e94a5takashiMODULE_PKGCLASS_SET=yes
94713632faf403489b3f8b4e0ed65e1011ac4991takashi
f74d35a61a835e15412b99b8aebe4958fe4e94a5takashi# Package metadata
20216b769716c4346cce373f2028d7dbebf03886poirierUPSTREAM = Thomas Dickey
20216b769716c4346cce373f2028d7dbebf03886poirierUPSTREAM_URL = http://invisible-island.net/xterm/
20216b769716c4346cce373f2028d7dbebf03886poirierUPSTREAM_SET = yes
7317a32e0c621c9a28f6f10e83e6c5dc63e3f3bdsf
7317a32e0c621c9a28f6f10e83e6c5dc63e3f3bdsf# Version number (used in path names)
7317a32e0c621c9a28f6f10e83e6c5dc63e3f3bdsfMODULE_VERSION=267
ecc6e723b804fb4b8f858910eff3f88242ec56fasf
ecc6e723b804fb4b8f858910eff3f88242ec56fasf# Checksums for upstream tarball
ecc6e723b804fb4b8f858910eff3f88242ec56fasfTARBALL_MD5 = 3945ab70cfa2a9e95804157ee1b0f8e8
ecc6e723b804fb4b8f858910eff3f88242ec56fasfTARBALL_SHA1 = ba80d0ef00292e7888bfbe69dcce0dfbbc4f5091
ecc6e723b804fb4b8f858910eff3f88242ec56fasf
ecc6e723b804fb4b8f858910eff3f88242ec56fasf# Source tarball
727d68c6009030f56a350b4603384ce4fb844341minfrinSOURCE_URL=ftp://invisible-island.net/xterm/$(SOURCE_TARBALL_NAME:.tar.gz=.tgz)
727d68c6009030f56a350b4603384ce4fb844341minfrinSOURCE_URL_SET=yes
727d68c6009030f56a350b4603384ce4fb844341minfrin
ed6dfb7d7057dc4f42348f12d7bff9fe98fc73cfminfrin# Source tarball
ed6dfb7d7057dc4f42348f12d7bff9fe98fc73cfminfrinSOURCE_TARBALL_NAME=$(MODULE_NAME)-$(MODULE_VERSION).tar.gz
ed6dfb7d7057dc4f42348f12d7bff9fe98fc73cfminfrinSOURCE_TARBALL_NAME_SET=yes
4dee28b6fc8fff5efde4e7821aeb6defed3fb84dsfSOURCE_UNCOMPRESS=gzcat
4dee28b6fc8fff5efde4e7821aeb6defed3fb84dsf
4dee28b6fc8fff5efde4e7821aeb6defed3fb84dsf# Patches to apply to source after unpacking, in order
23247a8f748077bc788a5fbaf91d5fad34d0b7d1sfSOURCE_PATCHES =
23247a8f748077bc788a5fbaf91d5fad34d0b7d1sf
23247a8f748077bc788a5fbaf91d5fad34d0b7d1sf# Man pages to apply Sun footer to & attributes to list
23247a8f748077bc788a5fbaf91d5fad34d0b7d1sfSUNTOUCHED_MANPAGES=*.man
58015652ffe00f004c6404a0631474f23dadc7dasfMODULE_STABILITY=Committed
58015652ffe00f004c6404a0631474f23dadc7dasf
58015652ffe00f004c6404a0631474f23dadc7dasf# Paths to find Xft/fontconfig/freetype headers libraries at build time
2af38cc44e48753913565b38a7a9f325f898a293minfrin# and run time
2af38cc44e48753913565b38a7a9f325f898a293minfrinFT_CFLAGS= -I$(PROTODIR)/usr/include -I$(PROTODIR)/usr/include/freetype2
745417156908df54538ca284b382ce8d27b30066minfrinFT_LIBS= \
2af38cc44e48753913565b38a7a9f325f898a293minfrin -L$(PROTODIR)/usr/lib$(LIBSUBDIR) -R/usr/lib$(LIBSUBDIR) -lXft -lfontconfig
fc2f0972572614b50523bc5ddb3f866ca4acd2f0sf
fc2f0972572614b50523bc5ddb3f866ca4acd2f0sf# Additional flags to pass to configure script
fc2f0972572614b50523bc5ddb3f866ca4acd2f0sfMODULE_CONFIG_OPTS = --enable-256-color --enable-88-color --enable-wide-chars \
251430bcaff1fa6a77953bfe56475eb6cc7abc78sf --with-freetype-cflags="$(FT_CFLAGS)" --with-freetype-libs="$(FT_LIBS)" \
251430bcaff1fa6a77953bfe56475eb6cc7abc78sf --disable-setuid --disable-setgid --enable-luit --disable-imake \
251430bcaff1fa6a77953bfe56475eb6cc7abc78sf --x-includes=$(PROTODIR)$(X11_INCLUDES_DIR) --x-libraries=$(X11_LIB_DIR) \
7b467aa53854c95318a1c709709c1619a4f47118minfrin --with-app-defaults=/usr/share/X11/app-defaults \
7b467aa53854c95318a1c709709c1619a4f47118minfrin --with-icondir=/usr/share/pixmaps --enable-logging
7b467aa53854c95318a1c709709c1619a4f47118minfrin
7b467aa53854c95318a1c709709c1619a4f47118minfrin# Sort-of emulate automake silent rules - run make configure V=1 to see
7ba7402d405dc9e3c1083e34049ed933472ca910poirier# full compiler flags
7ba7402d405dc9e3c1083e34049ed933472ca910poirierMODULE_CONFIG_OPTS_VERBOSE_0 = --disable-echo
7ba7402d405dc9e3c1083e34049ed933472ca910poirierMODULE_CONFIG_OPTS_VERBOSE_1 = --enable-echo
7ba7402d405dc9e3c1083e34049ed933472ca910poirierMODULE_CONFIG_OPTS_VERBOSE_ = $(MODULE_CONFIG_OPTS_VERBOSE_0)
7ba7402d405dc9e3c1083e34049ed933472ca910poirierMODULE_CONFIG_OPTS += $(MODULE_CONFIG_OPTS_VERBOSE_$(V))
4286d2e267e788d856092bf2ccf461e7ca99570frpluem
4286d2e267e788d856092bf2ccf461e7ca99570frpluem# Tell configure where to find luit binary
4286d2e267e788d856092bf2ccf461e7ca99570frpluemMODULE_CONFIG_ENV = LUIT=$(X11_BIN_DIR)/luit
4286d2e267e788d856092bf2ccf461e7ca99570frpluem
43563ad04e4bae7b42f7a34a87b7c60dc69c0c3fpoirierMODULE_ADD_BUILD_TARGETS=fix_manpages
5357892a1e367372dc2d4a315156e3e44dc5d56dpoirierMODULE_ADD_INSTALL_TARGETS=install_docs
5357892a1e367372dc2d4a315156e3e44dc5d56dpoirier
b42af5f6edf4fe4b820288c37920a7a6fd65f1f1poirier# Compatibility links from /usr/X11/bin to /usr/bin
b42af5f6edf4fe4b820288c37920a7a6fd65f1f1poirierMODULE_X11_BINCOMPAT_LINKS = xterm resize
b42af5f6edf4fe4b820288c37920a7a6fd65f1f1poirier
49cea03e96dc4707bce15d6318eb013cb8668d96minfrininclude ../Makefile.inc
49cea03e96dc4707bce15d6318eb013cb8668d96minfrin
49cea03e96dc4707bce15d6318eb013cb8668d96minfrin# Fix man page footers to not say "Last changed: X Window System"
49cea03e96dc4707bce15d6318eb013cb8668d96minfrinXORGRELSTRING = $(MODULE_NAME) $(MODULE_VERSION)
847b3922f7dcde6830f4aad49d29c84b4569c260minfrin XORGMANNAME = X Version 11
63eaa8ed62d63de0a44346b8af48e08e562db01eminfrin XVENDORVERS = "$(XORGRELSTRING)" "$(XORGMANNAME)"
63eaa8ed62d63de0a44346b8af48e08e562db01eminfrin
847b3922f7dcde6830f4aad49d29c84b4569c260minfrinfix_manpages: $(UNPACK_TARGET)
1af2b28846e2647963db788b081676884fb7df8crpluem $(PERL) -i -p -e 's{__vendorversion__}{$(XVENDORVERS)}g' \
1af2b28846e2647963db788b081676884fb7df8crpluem $(SOURCE_DIR)/*.man
1af2b28846e2647963db788b081676884fb7df8crpluem
845258fbf5102b8b09fe9b7f4cb4ea4c089344c3poirier# Install documentation of xterm control sequences for packaging
845258fbf5102b8b09fe9b7f4cb4ea4c089344c3poirierMODULE_DOCDIR=/usr/share/doc/xterm
845258fbf5102b8b09fe9b7f4cb4ea4c089344c3poirier
5d36cddfe00d5c6ad18845fcc04e6f7662050fafminfrininstall_docs: $(UNPACK_TARGET)
5d36cddfe00d5c6ad18845fcc04e6f7662050fafminfrin mkdir -p $(PROTODIR)$(MODULE_DOCDIR)
5d36cddfe00d5c6ad18845fcc04e6f7662050fafminfrin rm -f $(PROTODIR)$(MODULE_DOCDIR)/ctlseqs.txt
20aa41f86a5b451529d26d9b901eea69989e5c0aminfrin cp -pf $(SOURCE_DIR)/ctlseqs.txt $(PROTODIR)$(MODULE_DOCDIR)/
20aa41f86a5b451529d26d9b901eea69989e5c0aminfrin