Makefile revision 1167
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes###############################################################################
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# xterm Makefile
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Permission is hereby granted, free of charge, to any person obtaining a
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# copy of this software and associated documentation files (the "Software"),
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# to deal in the Software without restriction, including without limitation
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# the rights to use, copy, modify, merge, publish, distribute, sublicense,
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# and/or sell copies of the Software, and to permit persons to whom the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Software is furnished to do so, subject to the following conditions:
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# The above copyright notice and this permission notice (including the next
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# paragraph) shall be included in all copies or substantial portions of the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# DEALINGS IN THE SOFTWARE.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Package name used in tarballs
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# pkg(5) name we deliver the files in (override default)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# resize goes into a separate package so it can be installed in zones without
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# X, but which you login to from a resizable GUI terminal window.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Package classification (override default)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Package metadata
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Version number (used in path names)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Checksums for upstream tarball
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesTARBALL_SHA1 = 53586916147cb88e71b3d620a7d1b80f1696749b
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Source tarball
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesSOURCE_URL=ftp://invisible-island.net/xterm/$(SOURCE_TARBALL_NAME:.tar.gz=.tgz)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Source tarball
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesSOURCE_TARBALL_NAME=$(MODULE_NAME)-$(MODULE_VERSION).tar.gz
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Patches to apply to source after unpacking, in order
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Man pages to apply Sun footer to & attributes to list
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesSUNTOUCHED_MANPAGES=koi8rxterm.man resize.man uxterm.man xterm.man
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Fix man page footers to not say "Last changed: X Window System"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMODULE_SUNTOUCH_MAN_FLAGS = -r '{__vendorversion__, $(XVENDORVERS)}'
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Override specific attributes for specific man pages
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(SUNTOUCH_MAN_FLAGS_$(@F:%.man.$(FIXED_MAN_SUFFIX)=%))
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesSUNTOUCH_MAN_FLAGS_resize = -o '{Availability, $(RESIZE_PKGNAME)}'
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Paths to find Xft/fontconfig/freetype headers libraries at build time
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# and run time
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesFT_CFLAGS= -I$(PROTODIR)/usr/include -I$(PROTODIR)/usr/include/freetype2
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes -L$(PROTODIR)/usr/lib$(LIBSUBDIR) -R/usr/lib$(LIBSUBDIR) -lXft -lfontconfig
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Additional flags to pass to configure script
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMODULE_CONFIG_OPTS = --enable-256-color --enable-88-color --enable-wide-chars \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes --with-freetype-cflags="$(FT_CFLAGS)" --with-freetype-libs="$(FT_LIBS)" \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes --disable-setuid --disable-setgid --enable-luit --disable-imake \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes --x-includes=$(PROTODIR)$(X11_INCLUDES_DIR) --x-libraries=$(X11_LIB_DIR) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes --with-icondir=/usr/share/pixmaps --enable-logging
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Sort-of emulate automake silent rules - run make configure V=1 to see
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# full compiler flags
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMODULE_CONFIG_OPTS_VERBOSE_ = $(MODULE_CONFIG_OPTS_VERBOSE_0)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMODULE_CONFIG_OPTS += $(MODULE_CONFIG_OPTS_VERBOSE_$(V))
0a39e7683f6611d66c55712f50bb240428d832a1bnicholes# Tell configure where to find luit binary
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Compatibility links from /usr/X11/bin to /usr/bin
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMODULE_ADD_INSTALL_TARGETS=install_docs install_desktop
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Install documentation of xterm control sequences for packaging
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesPROTO_CTLSEQS=$(PROTODIR)$(MODULE_DOCDIR)/ctlseqs.txt
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Install desktop file to allow starting xterm from GNOME menu
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesPROTO_DESKTOP=$(PROTODIR)$(DESKTOP_DIR)/xterm.desktop
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(PROTO_CTLSEQS) $(PROTO_DESKTOP): $(UNPACK_TARGET)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Metadata for separate package for resize
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesRESIZE_PKG_METADATA_DIR = $(MODULE_PKG_METADATA_DIR:%xterm=%resize)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesRESIZE_PKG_ATTRDATA_FILE = $(RESIZE_PKG_METADATA_DIR)/$(ATTRDATA_FILE_NAME)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesRESIZE_PKG_LICENSE_FILE = $(RESIZE_PKG_METADATA_DIR)/$(LICENSE_FILE_NAME)