Makefile revision 1063
4d237bbe075b1d2c19428cd954d721d65b31f67cwrowe###############################################################################
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna# xterm Makefile
86bb763be5d87c295c8844d30078da2ddb964f73rpluem# Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
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# 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# 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.
3709b26f3370ae89c5324a3c03fab56a93b09ecdsf# Package name used in tarballs
03577bc320125eaa2b27ee7af78b894ee6dfe121takashi# pkg(5) name we deliver the files in (override default)
f5119c5d7cfe8c6d53cb29d43f8746684068ed82minfrin# Package classification (override default)
f74d35a61a835e15412b99b8aebe4958fe4e94a5takashi# Package metadata
7317a32e0c621c9a28f6f10e83e6c5dc63e3f3bdsf# Version number (used in path names)
ecc6e723b804fb4b8f858910eff3f88242ec56fasf# Checksums for upstream tarball
ecc6e723b804fb4b8f858910eff3f88242ec56fasf# Source tarball
727d68c6009030f56a350b4603384ce4fb844341minfrinSOURCE_URL=ftp://invisible-island.net/xterm/$(SOURCE_TARBALL_NAME:.tar.gz=.tgz)
ed6dfb7d7057dc4f42348f12d7bff9fe98fc73cfminfrin# Source tarball
ed6dfb7d7057dc4f42348f12d7bff9fe98fc73cfminfrinSOURCE_TARBALL_NAME=$(MODULE_NAME)-$(MODULE_VERSION).tar.gz
4dee28b6fc8fff5efde4e7821aeb6defed3fb84dsf# Patches to apply to source after unpacking, in order
23247a8f748077bc788a5fbaf91d5fad34d0b7d1sf# Man pages to apply Sun footer to & attributes to list
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
2af38cc44e48753913565b38a7a9f325f898a293minfrin -L$(PROTODIR)/usr/lib$(LIBSUBDIR) -R/usr/lib$(LIBSUBDIR) -lXft -lfontconfig
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# Sort-of emulate automake silent rules - run make configure V=1 to see
7ba7402d405dc9e3c1083e34049ed933472ca910poirier# full compiler flags
7ba7402d405dc9e3c1083e34049ed933472ca910poirierMODULE_CONFIG_OPTS_VERBOSE_ = $(MODULE_CONFIG_OPTS_VERBOSE_0)
7ba7402d405dc9e3c1083e34049ed933472ca910poirierMODULE_CONFIG_OPTS += $(MODULE_CONFIG_OPTS_VERBOSE_$(V))
4286d2e267e788d856092bf2ccf461e7ca99570frpluem# Tell configure where to find luit binary
49cea03e96dc4707bce15d6318eb013cb8668d96minfrin# Fix man page footers to not say "Last changed: X Window System"
1af2b28846e2647963db788b081676884fb7df8crpluem $(PERL) -i -p -e 's{__vendorversion__}{$(XVENDORVERS)}g' \
845258fbf5102b8b09fe9b7f4cb4ea4c089344c3poirier# Install documentation of xterm control sequences for packaging