Makefile revision 935
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe###############################################################################
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# xterm Makefile
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
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# 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# 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.
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# Package name used in tarballs
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# Version number (used in path names)
3cedecd5ea21cca5d9709abf320a2082cd3694e5jvergara# Checksums for upstream tarball
69de0fe5b7ed905860bef5f86937d30cc206ef7dneil_a_wilsonTARBALL_SHA1 = 4234376b43a0c60f2516df0c0abe26037671d50f
014019918f7e3844f558f6159b8d41517254edc2lutoff# Source tarball
014019918f7e3844f558f6159b8d41517254edc2lutoffSOURCE_URL=ftp://invisible-island.net/xterm/$(SOURCE_TARBALL_NAME:.tar.gz=.tgz)
69de0fe5b7ed905860bef5f86937d30cc206ef7dneil_a_wilson# Source tarball
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipeSOURCE_TARBALL_NAME=$(MODULE_NAME)-$(MODULE_VERSION).tar.gz
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara# Patches to apply to source after unpacking, in order
0f8553e2af5fc49a510ecfcfc93e66d06713f631ludo# Man pages to apply Sun footer to & attributes to list
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
2ed4722b4c052dcfe7884519a119e68a295f77afludovicp -L$(PROTODIR)/usr/lib$(LIBSUBDIR) -R/usr/lib$(LIBSUBDIR) -lXft -lfontconfig
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) \
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara# Sort-of emulate automake silent rules - run make configure V=1 to see
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara# full compiler flags
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergaraMODULE_CONFIG_OPTS_VERBOSE_ = $(MODULE_CONFIG_OPTS_VERBOSE_0)
39e085accf228684b9573bc8ad707a364ed6242ejvergaraMODULE_CONFIG_OPTS += $(MODULE_CONFIG_OPTS_VERBOSE_$(V))
39e085accf228684b9573bc8ad707a364ed6242ejvergara# Tell configure where to find luit binary
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# Fix man page footers to not say "Last changed: X Window System"
5c6cfc2988a5121fd22081643ef0790e38c99379neil_a_wilson XVENDORVERS = "$(XORGRELSTRING)" "$(XORGMANNAME)"
5c6cfc2988a5121fd22081643ef0790e38c99379neil_a_wilson $(PERL) -i -p -e 's{__vendorversion__}{$(XVENDORVERS)}g' \
5c6cfc2988a5121fd22081643ef0790e38c99379neil_a_wilson# Install documentation of xterm control sequences for packaging