Makefile revision 418
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington###############################################################################
ea206aebcafe1ed5d470dd99daab9a1cedc81c7cMark Andrews#
a02a0a8a7eb461619931f4a0e896afa247b52c54Mark Andrews# xterm 1.x Makefile
ea206aebcafe1ed5d470dd99daab9a1cedc81c7cMark Andrews#
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
ea206aebcafe1ed5d470dd99daab9a1cedc81c7cMark Andrews# Use subject to license terms.
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews#
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
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# "Software"), to deal in the Software without restriction, including
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# without limitation the rights to use, copy, modify, merge, publish,
01bf5871f8861eb805dd8ca79bdb9b0b9e4e6a5eMark Andrews# distribute, and/or sell copies of the Software, and to permit persons
0756445a735e2df39bf798d8de42ae5dd030aa3bMark Andrews# to whom the Software is furnished to do so, provided that the above
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# copyright notice(s) and this permission notice appear in all copies of
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# the Software and that both the above copyright notice(s) and this
f8f37672a57524560fbdde52484e6ae3de1c3354Mark Andrews# permission notice appear in supporting documentation.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
0756445a735e2df39bf798d8de42ae5dd030aa3bMark 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
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# 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
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# or other dealings in this Software without prior written authorization
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# of the copyright holder.
bac2ed6ec3fbb5420e6ce69dd1218745d4e02b1eMark Andrews#
ed178efa9ab8f813538fce4ff603b81ded9f1799Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
bac2ed6ec3fbb5420e6ce69dd1218745d4e02b1eMark Andrews# Package name used in tarballs
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsAPP_NAME=xterm
4038ab55037184d76153afd3c469aa8c85adf85dMark Andrews
ed178efa9ab8f813538fce4ff603b81ded9f1799Mark Andrews# Version number (used in path names)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsAPP_VERS=235
bac2ed6ec3fbb5420e6ce69dd1218745d4e02b1eMark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Source tarball
ede29aeb412c5448ab9a2028763ae08e7887ca74Mark AndrewsSOURCE_TARBALL_NAME=$(APP_NAME)-$(APP_VERS).tar.gz
ed178efa9ab8f813538fce4ff603b81ded9f1799Mark AndrewsSOURCE_URL=ftp://invisible-island.net/xterm/xterm.tar.gz
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsSOURCE_URL_SET=yes
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsSOURCE_UNCOMPRESS=gzcat
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# Patches to apply to source after unpacking, in order
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsSOURCE_PATCHES = \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson 4251073.patch
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# Man pages to apply Sun footer to & attributes to list
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonSUNTOUCHED_MANPAGES=*.man
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsSUNTOUCH_MAN_FLAGS= -p $(APP_prefix)/bin/ \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington -a '{Availability, SUNWxwopt} {Interface Stability, Committed}'
26a77b80bb7ee886c6fa704348d5e80a011d8811Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Paths to find Xft/fontconfig/freetype headers libraries at build time
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# and run time
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsFT_CFLAGS= -I$(PROTODIR)/usr/include -I$(PROTODIR)/usr/include/freetype2 \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews -I$(PROTODIR)/usr/X11/include
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsFT_LIBS= \
eaccf5e805405de257b5a4840256c580fefe00e3Mark Andrews -L$(PROTODIR)/usr/X11/lib$(LIBSUBDIR) -R/usr/X11/lib$(LIBSUBDIR) -lXft \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews -L$(PROTODIR)/usr/lib$(LIBSUBDIR) -R/usr/lib$(LIBSUBDIR) -lfontconfig
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# Additional flags to pass to configure script
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsAPP_CONFIG_OPTS = --enable-256-color --enable-88-color --enable-wide-chars \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson --with-freetype-cflags="$(FT_CFLAGS)" --with-freetype-libs="$(FT_LIBS)" \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson --disable-setuid --disable-setgid --enable-luit \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson --x-includes=$(PROTODIR)/usr/X11/include --x-libraries=/usr/X11/lib \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson --with-icondir=/usr/share/pixmaps
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Tell configure where to find luit binary
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonAPP_CONFIG_ENV = LUIT=/usr/X11/bin/luit
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssoninclude ../Makefile.inc
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson