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