Makefile revision 935
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe###############################################################################
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe#
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# xterm Makefile
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe#
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe#
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# Permission is hereby granted, free of charge, to any person obtaining a
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# copy of this software and associated documentation files (the "Software"),
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# to deal in the Software without restriction, including without limitation
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# the rights to use, copy, modify, merge, publish, distribute, sublicense,
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# and/or sell copies of the Software, and to permit persons to whom the
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# Software is furnished to do so, subject to the following conditions:
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe#
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# The above copyright notice and this permission notice (including the next
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# paragraph) shall be included in all copies or substantial portions of the
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# Software.
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac#
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# DEALINGS IN THE SOFTWARE.
186f94aaee0ba7f253e09c491a3a513cbabea65fjcambon#
6e041baef82b526dc9a1548dae116ab37da34dcbludo#
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# Package name used in tarballs
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipeMODULE_NAME=xterm
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# Version number (used in path names)
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipeMODULE_VERSION=253
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe
3cedecd5ea21cca5d9709abf320a2082cd3694e5jvergara# Checksums for upstream tarball
69de0fe5b7ed905860bef5f86937d30cc206ef7dneil_a_wilsonTARBALL_MD5 = 363cc4865b7691bd0ae5eebb42cde9c9
69de0fe5b7ed905860bef5f86937d30cc206ef7dneil_a_wilsonTARBALL_SHA1 = 4234376b43a0c60f2516df0c0abe26037671d50f
69de0fe5b7ed905860bef5f86937d30cc206ef7dneil_a_wilson
014019918f7e3844f558f6159b8d41517254edc2lutoff# Source tarball
014019918f7e3844f558f6159b8d41517254edc2lutoffSOURCE_URL=ftp://invisible-island.net/xterm/$(SOURCE_TARBALL_NAME:.tar.gz=.tgz)
014019918f7e3844f558f6159b8d41517254edc2lutoffSOURCE_URL_SET=yes
69de0fe5b7ed905860bef5f86937d30cc206ef7dneil_a_wilson
69de0fe5b7ed905860bef5f86937d30cc206ef7dneil_a_wilson# Source tarball
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipeSOURCE_TARBALL_NAME=$(MODULE_NAME)-$(MODULE_VERSION).tar.gz
266c5071a91fda6a5159b08ea8d45261228d03d5neil_a_wilsonSOURCE_TARBALL_NAME_SET=yes
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergaraSOURCE_UNCOMPRESS=gzcat
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara# Patches to apply to source after unpacking, in order
d3ce44d37110c284dad15122841fd97ee41d9ac5ludoSOURCE_PATCHES =
44a7ec1a853804826c90cda2fbb4ac712c86bbaaludovicp
0f8553e2af5fc49a510ecfcfc93e66d06713f631ludo# Man pages to apply Sun footer to & attributes to list
d3ce44d37110c284dad15122841fd97ee41d9ac5ludoSUNTOUCHED_MANPAGES=*.man
44a7ec1a853804826c90cda2fbb4ac712c86bbaaludovicpSUN_PACKAGE=SUNWxwplt
d3ce44d37110c284dad15122841fd97ee41d9ac5ludoMODULE_STABILITY=Committed
44a7ec1a853804826c90cda2fbb4ac712c86bbaaludovicp
2ed4722b4c052dcfe7884519a119e68a295f77afludovicp# Paths to find Xft/fontconfig/freetype headers libraries at build time
44a7ec1a853804826c90cda2fbb4ac712c86bbaaludovicp# and run time
44a7ec1a853804826c90cda2fbb4ac712c86bbaaludovicpFT_CFLAGS= -I$(PROTODIR)/usr/include -I$(PROTODIR)/usr/include/freetype2
2ed4722b4c052dcfe7884519a119e68a295f77afludovicpFT_LIBS= \
2ed4722b4c052dcfe7884519a119e68a295f77afludovicp -L$(PROTODIR)/usr/lib$(LIBSUBDIR) -R/usr/lib$(LIBSUBDIR) -lXft -lfontconfig
2ed4722b4c052dcfe7884519a119e68a295f77afludovicp
44a7ec1a853804826c90cda2fbb4ac712c86bbaaludovicp# Additional flags to pass to configure script
44a7ec1a853804826c90cda2fbb4ac712c86bbaaludovicpMODULE_CONFIG_OPTS = --enable-256-color --enable-88-color --enable-wide-chars \
44a7ec1a853804826c90cda2fbb4ac712c86bbaaludovicp --with-freetype-cflags="$(FT_CFLAGS)" --with-freetype-libs="$(FT_LIBS)" \
d3ce44d37110c284dad15122841fd97ee41d9ac5ludo --disable-setuid --disable-setgid --enable-luit --disable-imake \
44a7ec1a853804826c90cda2fbb4ac712c86bbaaludovicp --x-includes=$(PROTODIR)$(X11_INCLUDES_DIR) --x-libraries=$(X11_LIB_DIR) \
44a7ec1a853804826c90cda2fbb4ac712c86bbaaludovicp --with-app-defaults=/usr/share/X11/app-defaults \
44a7ec1a853804826c90cda2fbb4ac712c86bbaaludovicp --with-icondir=/usr/share/pixmaps --enable-logging
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara# Sort-of emulate automake silent rules - run make configure V=1 to see
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara# full compiler flags
014019918f7e3844f558f6159b8d41517254edc2lutoffMODULE_CONFIG_OPTS_VERBOSE_0 = --disable-echo
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergaraMODULE_CONFIG_OPTS_VERBOSE_1 = --enable-echo
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergaraMODULE_CONFIG_OPTS_VERBOSE_ = $(MODULE_CONFIG_OPTS_VERBOSE_0)
39e085accf228684b9573bc8ad707a364ed6242ejvergaraMODULE_CONFIG_OPTS += $(MODULE_CONFIG_OPTS_VERBOSE_$(V))
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara
39e085accf228684b9573bc8ad707a364ed6242ejvergara# Tell configure where to find luit binary
266c5071a91fda6a5159b08ea8d45261228d03d5neil_a_wilsonMODULE_CONFIG_ENV = LUIT=$(X11_BIN_DIR)/luit
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipeMODULE_ADD_BUILD_TARGETS=fix_manpages
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipeMODULE_ADD_INSTALL_TARGETS=install_docs
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipeinclude ../Makefile.inc
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# Fix man page footers to not say "Last changed: X Window System"
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergaraXORGRELSTRING = $(MODULE_NAME) $(MODULE_VERSION)
5c6cfc2988a5121fd22081643ef0790e38c99379neil_a_wilson XORGMANNAME = X Version 11
5c6cfc2988a5121fd22081643ef0790e38c99379neil_a_wilson XVENDORVERS = "$(XORGRELSTRING)" "$(XORGMANNAME)"
5c6cfc2988a5121fd22081643ef0790e38c99379neil_a_wilson
5c6cfc2988a5121fd22081643ef0790e38c99379neil_a_wilsonfix_manpages: $(UNPACK_TARGET)
5c6cfc2988a5121fd22081643ef0790e38c99379neil_a_wilson $(PERL) -i -p -e 's{__vendorversion__}{$(XVENDORVERS)}g' \
5c6cfc2988a5121fd22081643ef0790e38c99379neil_a_wilson $(SOURCE_DIR)/*.man
6e041baef82b526dc9a1548dae116ab37da34dcbludo
5c6cfc2988a5121fd22081643ef0790e38c99379neil_a_wilson# Install documentation of xterm control sequences for packaging
5c6cfc2988a5121fd22081643ef0790e38c99379neil_a_wilsonMODULE_DOCDIR=/usr/share/doc/xterm
5c6cfc2988a5121fd22081643ef0790e38c99379neil_a_wilson
61ae414d98d24ba4a72a905b07db9424353669f4neil_a_wilsoninstall_docs: $(UNPACK_TARGET)
5c6cfc2988a5121fd22081643ef0790e38c99379neil_a_wilson mkdir -p $(PROTODIR)$(MODULE_DOCDIR)
7070667c2dffad87009999bdeb16d5305e0afdbejvergara rm -f $(PROTODIR)$(MODULE_DOCDIR)/ctlseqs.txt
7070667c2dffad87009999bdeb16d5305e0afdbejvergara cp -pf $(SOURCE_DIR)/ctlseqs.txt $(PROTODIR)$(MODULE_DOCDIR)/
7070667c2dffad87009999bdeb16d5305e0afdbejvergara