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