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