Makefile revision 851
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews###############################################################################
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater# xterm Makefile
59dd3b3cd954239d98ef52cd26328856cb6f2975Automatic Updater# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# Use is subject to license terms.
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews# Permission is hereby granted, free of charge, to any person obtaining a
bb93c8542756719b53096b9939e4041d0966026fAutomatic Updater# copy of this software and associated documentation files (the
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# "Software"), to deal in the Software without restriction, including
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# without limitation the rights to use, copy, modify, merge, publish,
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# distribute, and/or sell copies of the Software, and to permit persons
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# to whom the Software is furnished to do so, provided that the above
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# copyright notice(s) and this permission notice appear in all copies of
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# the Software and that both the above copyright notice(s) and this
5c0fc20d6e59216d9a142409e5fdb498153aeaa5Automatic Updater# permission notice appear in supporting documentation.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
04eba969cb9a54bbda2896db2067c07b2ac5ba16Automatic Updater# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# Except as contained in this notice, the name of a copyright holder
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# shall not be used in advertising or otherwise to promote the sale, use
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# or other dealings in this Software without prior written authorization
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# of the copyright holder.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# Package name used in tarballs
298c514fff250c1a147176cfbbc1c0ca441d1ea5Automatic Updater# Version number (used in path names)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Source tarball
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic UpdaterSOURCE_URL=ftp://invisible-island.net/xterm/$(SOURCE_TARBALL_NAME:.tar.gz=.tgz)
ca904804e43f663f08eb1ac9d6d617930b9a3cd3Automatic Updater# Source tarball
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsSOURCE_TARBALL_NAME=$(MODULE_NAME)-$(MODULE_VERSION).tar.gz
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# Patches to apply to source after unpacking, in order
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# Man pages to apply Sun footer to & attributes to list
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Paths to find Xft/fontconfig/freetype headers libraries at build time
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# and run time
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic UpdaterFT_CFLAGS= -I$(PROTODIR)/usr/include -I$(PROTODIR)/usr/include/freetype2
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont -L$(PROTODIR)/usr/lib$(LIBSUBDIR) -R/usr/lib$(LIBSUBDIR) -lXft -lfontconfig
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Additional flags to pass to configure script
2a31bd531072824ef252c18303859d6af7451b00Francis DupontMODULE_CONFIG_OPTS = --enable-256-color --enable-88-color --enable-wide-chars \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews --with-freetype-cflags="$(FT_CFLAGS)" --with-freetype-libs="$(FT_LIBS)" \
6f046a065e5543f8cd7e2f24991c65d2372f4c8dMark Andrews --disable-setuid --disable-setgid --enable-luit \
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews --x-includes=$(PROTODIR)$(X11_INCLUDES_DIR) --x-libraries=$(X11_LIB_DIR) \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews --with-app-defaults=/usr/share/X11/app-defaults \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews --with-icondir=/usr/share/pixmaps --enable-logging
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# Tell configure where to find luit binary