Makefile revision 970
124N/A###############################################################################
124N/A#
124N/A# xterm Makefile
124N/A#
124N/A# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
124N/A#
124N/A# Permission is hereby granted, free of charge, to any person obtaining a
124N/A# copy of this software and associated documentation files (the "Software"),
124N/A# to deal in the Software without restriction, including without limitation
124N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
124N/A# and/or sell copies of the Software, and to permit persons to whom the
124N/A# Software is furnished to do so, subject to the following conditions:
124N/A#
124N/A# The above copyright notice and this permission notice (including the next
124N/A# paragraph) shall be included in all copies or substantial portions of the
124N/A# Software.
124N/A#
124N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
124N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
124N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
5680N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5680N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
5230N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
124N/A# DEALINGS IN THE SOFTWARE.
5680N/A#
124N/A#
124N/A
124N/A# Package name used in tarballs
5871N/AMODULE_NAME=xterm
618N/A
124N/A# pkg(5) name we deliver the files in (override default)
844N/AMODULE_PKGNAME=terminal/xterm
5871N/AMODULE_PKGNAME_SET=yes
618N/A
124N/A# Package classification (override default)
5871N/AMODULE_PKGCLASS=Applications/System Utilities
2899N/AMODULE_PKGCLASS_SET=yes
5648N/A
5648N/A# Package metadata
5648N/AUPSTREAM = Thomas Dickey
5648N/AUPSTREAM_URL = http://invisible-island.net/xterm/
5648N/AUPSTREAM_SET = yes
5648N/A
5648N/A# Version number (used in path names)
5680N/AMODULE_VERSION=258
5680N/A
124N/A# Checksums for upstream tarball
2960N/ATARBALL_MD5 = bcf4f0ba51f5f58fd5bef76b3d05e40e
2960N/ATARBALL_SHA1 = d3357fc88917e23210eea2db32b185799bb2d22e
2960N/A
2960N/A# Source tarball
124N/ASOURCE_URL=ftp://invisible-island.net/xterm/$(SOURCE_TARBALL_NAME:.tar.gz=.tgz)
124N/ASOURCE_URL_SET=yes
3069N/A
3069N/A# Source tarball
3069N/ASOURCE_TARBALL_NAME=$(MODULE_NAME)-$(MODULE_VERSION).tar.gz
5935N/ASOURCE_TARBALL_NAME_SET=yes
5935N/ASOURCE_UNCOMPRESS=gzcat
5935N/A
5935N/A# Patches to apply to source after unpacking, in order
5680N/ASOURCE_PATCHES =
5680N/A
124N/A# Man pages to apply Sun footer to & attributes to list
5617N/ASUNTOUCHED_MANPAGES=*.man
124N/AMODULE_STABILITY=Committed
124N/A
124N/A# Paths to find Xft/fontconfig/freetype headers libraries at build time
3878N/A# and run time
3878N/AFT_CFLAGS= -I$(PROTODIR)/usr/include -I$(PROTODIR)/usr/include/freetype2
5935N/AFT_LIBS= \
5935N/A -L$(PROTODIR)/usr/lib$(LIBSUBDIR) -R/usr/lib$(LIBSUBDIR) -lXft -lfontconfig
124N/A
765N/A# Additional flags to pass to configure script
765N/AMODULE_CONFIG_OPTS = --enable-256-color --enable-88-color --enable-wide-chars \
765N/A --with-freetype-cflags="$(FT_CFLAGS)" --with-freetype-libs="$(FT_LIBS)" \
765N/A --disable-setuid --disable-setgid --enable-luit --disable-imake \
765N/A --x-includes=$(PROTODIR)$(X11_INCLUDES_DIR) --x-libraries=$(X11_LIB_DIR) \
1792N/A --with-app-defaults=/usr/share/X11/app-defaults \
1792N/A --with-icondir=/usr/share/pixmaps --enable-logging
1792N/A
765N/A# Sort-of emulate automake silent rules - run make configure V=1 to see
765N/A# full compiler flags
765N/AMODULE_CONFIG_OPTS_VERBOSE_0 = --disable-echo
765N/AMODULE_CONFIG_OPTS_VERBOSE_1 = --enable-echo
765N/AMODULE_CONFIG_OPTS_VERBOSE_ = $(MODULE_CONFIG_OPTS_VERBOSE_0)
3817N/AMODULE_CONFIG_OPTS += $(MODULE_CONFIG_OPTS_VERBOSE_$(V))
3817N/A
3817N/A# Tell configure where to find luit binary
3817N/AMODULE_CONFIG_ENV = LUIT=$(X11_BIN_DIR)/luit
3817N/A
3817N/AMODULE_ADD_BUILD_TARGETS=fix_manpages
3817N/AMODULE_ADD_INSTALL_TARGETS=install_docs
3817N/A
5111N/A# Compatibility links from /usr/X11/bin to /usr/bin
3817N/AMODULE_X11_BINCOMPAT_LINKS = xterm resize
3817N/A
3817N/Ainclude ../Makefile.inc
6067N/A
6067N/A# Fix man page footers to not say "Last changed: X Window System"
3817N/AXORGRELSTRING = $(MODULE_NAME) $(MODULE_VERSION)
3817N/A XORGMANNAME = X Version 11
3817N/A XVENDORVERS = "$(XORGRELSTRING)" "$(XORGMANNAME)"
3817N/A
3817N/Afix_manpages: $(UNPACK_TARGET)
$(PERL) -i -p -e 's{__vendorversion__}{$(XVENDORVERS)}g' \
$(SOURCE_DIR)/*.man
# Install documentation of xterm control sequences for packaging
MODULE_DOCDIR=/usr/share/doc/xterm
install_docs: $(UNPACK_TARGET)
mkdir -p $(PROTODIR)$(MODULE_DOCDIR)
rm -f $(PROTODIR)$(MODULE_DOCDIR)/ctlseqs.txt
cp -pf $(SOURCE_DIR)/ctlseqs.txt $(PROTODIR)$(MODULE_DOCDIR)/