Makefile revision 695
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe###############################################################################
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# xterm Makefile
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Use subject to license terms.
cd21e7c548ae2a3b5e522244bf798f2a6b4ba02dGarrett D'Amore# Permission is hereby granted, free of charge, to any person obtaining a
cd21e7c548ae2a3b5e522244bf798f2a6b4ba02dGarrett D'Amore# copy of this software and associated documentation files (the
cd21e7c548ae2a3b5e522244bf798f2a6b4ba02dGarrett D'Amore# "Software"), to deal in the Software without restriction, including
cd21e7c548ae2a3b5e522244bf798f2a6b4ba02dGarrett D'Amore# without limitation the rights to use, copy, modify, merge, publish,
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# distribute, and/or sell copies of the Software, and to permit persons
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# to whom the Software is furnished to do so, provided that the above
b89e420ae1290e425c29db875ec0c0546006eec7Garrett D'Amore# copyright notice(s) and this permission notice appear in all copies of
a6ae009119d792a981d8b7153f8cb3851fe04ebbRobert Mustacchi# the Software and that both the above copyright notice(s) and this
cfc3b49fd53fba13be205e2206e0ea3b36f5f2c7Yuri Pankov# permission notice appear in supporting documentation.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Except as contained in this notice, the name of a copyright holder
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# shall not be used in advertising or otherwise to promote the sale, use
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# or other dealings in this Software without prior written authorization
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# of the copyright holder.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Package name used in tarballs
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Version number (used in path names)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Source tarball
fa9922c2be34868be01989cef133828185b5c0bcRobert MustacchiSOURCE_URL=ftp://invisible-island.net/xterm/$(SOURCE_TARBALL_NAME:.tar.gz=.tgz)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Source tarball
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweSOURCE_TARBALL_NAME=$(MODULE_NAME)-$(MODULE_VERSION).tar.gz
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Patches to apply to source after unpacking, in order
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Man pages to apply Sun footer to & attributes to list
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Paths to find Xft/fontconfig/freetype headers libraries at build time
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# and run time
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFT_CFLAGS= -I$(PROTODIR)/usr/include -I$(PROTODIR)/usr/include/freetype2 \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -L$(PROTODIR)/usr/X11/lib$(LIBSUBDIR) -R/usr/X11/lib$(LIBSUBDIR) -lXft \
ebf4a993df0df43f7a5f7a6e512d1df78b9875c0Garrett D'Amore -L$(PROTODIR)/usr/lib$(LIBSUBDIR) -R/usr/lib$(LIBSUBDIR) -lfontconfig
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Additional flags to pass to configure script
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweMODULE_CONFIG_OPTS = --enable-256-color --enable-88-color --enable-wide-chars \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe --with-freetype-cflags="$(FT_CFLAGS)" --with-freetype-libs="$(FT_LIBS)" \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe --disable-setuid --disable-setgid --enable-luit \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe --x-includes=$(PROTODIR)/usr/X11/include --x-libraries=/usr/X11/lib \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe --with-icondir=/usr/share/pixmaps --enable-logging
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Tell configure where to find luit binary