Makefile revision 919
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber###############################################################################
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# xterm Makefile
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# Use is subject to license terms.
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# Permission is hereby granted, free of charge, to any person obtaining a
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# copy of this software and associated documentation files (the "Software"),
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# to deal in the Software without restriction, including without limitation
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# the rights to use, copy, modify, merge, publish, distribute, sublicense,
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# and/or sell copies of the Software, and to permit persons to whom the
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# Software is furnished to do so, subject to the following conditions:
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# The above copyright notice and this permission notice (including the next
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# paragraph) shall be included in all copies or substantial portions of the
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
7f95145833bb24f54e037f73ecc37444d6635697Dwight Engen# DEALINGS IN THE SOFTWARE.
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# Package name used in tarballs
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# Version number (used in path names)
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# Checksums for upstream tarball
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane GraberTARBALL_MD5 = 363cc4865b7691bd0ae5eebb42cde9c9
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane GraberTARBALL_SHA1 = 4234376b43a0c60f2516df0c0abe26037671d50f
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# Source tarball
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane GraberSOURCE_URL=ftp://invisible-island.net/xterm/$(SOURCE_TARBALL_NAME:.tar.gz=.tgz)
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# Source tarball
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane GraberSOURCE_TARBALL_NAME=$(MODULE_NAME)-$(MODULE_VERSION).tar.gz
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# Patches to apply to source after unpacking, in order
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# Man pages to apply Sun footer to & attributes to list
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# Paths to find Xft/fontconfig/freetype headers libraries at build time
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# and run time
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane GraberFT_CFLAGS= -I$(PROTODIR)/usr/include -I$(PROTODIR)/usr/include/freetype2
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber -L$(PROTODIR)/usr/lib$(LIBSUBDIR) -R/usr/lib$(LIBSUBDIR) -lXft -lfontconfig
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# Additional flags to pass to configure script
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane GraberMODULE_CONFIG_OPTS = --enable-256-color --enable-88-color --enable-wide-chars \
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber --with-freetype-cflags="$(FT_CFLAGS)" --with-freetype-libs="$(FT_LIBS)" \
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber --disable-setuid --disable-setgid --enable-luit --disable-imake \
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber --x-includes=$(PROTODIR)$(X11_INCLUDES_DIR) --x-libraries=$(X11_LIB_DIR) \
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber --with-app-defaults=/usr/share/X11/app-defaults \
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber --with-icondir=/usr/share/pixmaps --enable-logging
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# Sort-of emulate automake silent rules - run make configure V=1 to see
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# full compiler flags
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane GraberMODULE_CONFIG_OPTS_VERBOSE_0 = --disable-echo
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane GraberMODULE_CONFIG_OPTS_VERBOSE_ = $(MODULE_CONFIG_OPTS_VERBOSE_0)
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane GraberMODULE_CONFIG_OPTS += $(MODULE_CONFIG_OPTS_VERBOSE_$(V))
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# Tell configure where to find luit binary
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# Fix man page footers to not say "Last changed: X Window System"
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane GraberXORGRELSTRING = $(MODULE_NAME) $(MODULE_VERSION)
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber XVENDORVERS = "$(XORGRELSTRING)" "$(XORGMANNAME)"
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber /usr/perl5/bin/perl -i -p -e 's{__vendorversion__}{$(XVENDORVERS)}g' \
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber# Install documentation of xterm control sequences for packaging
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber rm -f $(PROTODIR)$(MODULE_DOCDIR)/ctlseqs.txt