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