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