Makefile revision 124
c313914d0e66b20969215e519bbf2ab4ecf39512Tinderbox User###############################################################################
c80e152862cc3e3207dc837fde7116bd4c0e4b9dTinderbox User#
c80e152862cc3e3207dc837fde7116bd4c0e4b9dTinderbox User# Xfont Makefile
8d1b3ceb4d491ce32572f1702f37ed585eede993Evan Hunt#
8d1b3ceb4d491ce32572f1702f37ed585eede993Evan Hunt# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
d77cb075aae5595e460e3299bfc1e8ea5d42b560Evan Hunt# Use subject to license terms.
d77cb075aae5595e460e3299bfc1e8ea5d42b560Evan Hunt#
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrews# Permission is hereby granted, free of charge, to any person obtaining a
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrews# copy of this software and associated documentation files (the
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrews# "Software"), to deal in the Software without restriction, including
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrews# without limitation the rights to use, copy, modify, merge, publish,
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrews# distribute, and/or sell copies of the Software, and to permit persons
701a93f5a592e4652343e049aa495d409c3ee133Mark Andrews# to whom the Software is furnished to do so, provided that the above
7ec97ae74e42ec21b354fd2d1366313b41d947d6Evan Hunt# copyright notice(s) and this permission notice appear in all copies of
701a93f5a592e4652343e049aa495d409c3ee133Mark Andrews# the Software and that both the above copyright notice(s) and this
701a93f5a592e4652343e049aa495d409c3ee133Mark Andrews# permission notice appear in supporting documentation.
002f1373374a0b72fc0329baa682917929bef168Tony Finch#
002f1373374a0b72fc0329baa682917929bef168Tony Finch# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
73cf0ba4e82c6baef638ecc4e31321223f841d28Mark Andrews# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
73cf0ba4e82c6baef638ecc4e31321223f841d28Mark Andrews# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
73cf0ba4e82c6baef638ecc4e31321223f841d28Mark Andrews# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
d8351dfc9b725b0d727be7acab6247d7d501d9a0Mark Andrews#
d8351dfc9b725b0d727be7acab6247d7d501d9a0Mark Andrews# Except as contained in this notice, the name of a copyright holder
d8351dfc9b725b0d727be7acab6247d7d501d9a0Mark Andrews# shall not be used in advertising or otherwise to promote the sale, use
3a29ce9c08dd31709c73e7187aebda0d360c537bEvan Hunt# or other dealings in this Software without prior written authorization
3a29ce9c08dd31709c73e7187aebda0d360c537bEvan Hunt# of the copyright holder.
5c78f1f50e53d8e2ed51a187efc2c9a0f43b4b1bMark Andrews#
f1740da065d4555039fe8bb53beb4153e3f94de3Mark Andrews# @(#)Makefile 1.7 07/03/13
f1740da065d4555039fe8bb53beb4153e3f94de3Mark Andrews#
f1740da065d4555039fe8bb53beb4153e3f94de3Mark Andrews
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark Andrews# Package name used in tarballs
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark AndrewsLIB_MODULE=libXfont
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark Andrews
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark Andrews# Version number (used in path names)
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark AndrewsLIB_VERS=1.2.7
ad309e8dfa0601d6053aaa12770a98a6940f89deEvan Hunt
ad309e8dfa0601d6053aaa12770a98a6940f89deEvan Hunt# Patches to apply to source after unpacking, in order
635e4351b04fd61ca6d853bdac6268c090b55129Mark AndrewsSOURCE_PATCHES=6206898.patch loadablefonts.patch
635e4351b04fd61ca6d853bdac6268c090b55129Mark Andrews
fc04365d2f83f197c8a54545dd9cd4ce6a209940Mark Andrews# Library name
fc04365d2f83f197c8a54545dd9cd4ce6a209940Mark AndrewsLIBNAME=Xfont
7cbac360bf98c0a52b2d6866ad887616c32d4d3aMark Andrews
7cbac360bf98c0a52b2d6866ad887616c32d4d3aMark Andrews# Man pages to apply Sun footer to & attributes to list
7cbac360bf98c0a52b2d6866ad887616c32d4d3aMark Andrews#SUNTOUCHED_MANPAGES=man/*.man
1cf118a656f5fd210787908b845362077fc507f8Evan HuntSUN_PACKAGE=SUNWxorg-server
1cf118a656f5fd210787908b845362077fc507f8Evan HuntLIB_STABILITY=Project Private
1cf118a656f5fd210787908b845362077fc507f8Evan HuntLIB_MAN_SUFFIX=3Xfont
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# Additional configure script options to select the modules we use
1cf118a656f5fd210787908b845362077fc507f8Evan HuntLIB_ADD_CONFIG_OPTS= --disable-freetype --enable-type1 --disable-cid \
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt --disable-speedo --enable-fontcache --enable-fc --disable-builtins
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt
6fb3db01acad7f5c1f4e23789fb0f2ce56cc07deMukund Sivaraman# Library built in tree
6fb3db01acad7f5c1f4e23789fb0f2ce56cc07deMukund SivaramanLIB_BUILT=$(SOURCE_DIR)/src/.libs/libXfont.so.1.0.0
6fb3db01acad7f5c1f4e23789fb0f2ce56cc07deMukund Sivaraman
fd82c70695888c134287b8018296028c252d100eMukund Sivaraman# pkg-config files that need to have -R added
fd82c70695888c134287b8018296028c252d100eMukund SivaramanFIX_PC_FILES=xfont.pc.in
fd82c70695888c134287b8018296028c252d100eMukund Sivaraman
fd82c70695888c134287b8018296028c252d100eMukund Sivaraman# Install in private subdir
4a53e3c2b83c476a93148eaee0272649beb221caMark AndrewsLIB_ADD_SUBDIR=$(X11_SERVERLIBS_SUBDIR)
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews# Find freetype & fontenc libraries in private subdir
2cf0fe3b8092f64f8f68ae3693fe2e73e90ad1a4Mark AndrewsLIB_ADD_LD_OPTIONS=-L $(PROTODIR)/usr/sfw/lib$(LIBSUBDIR) \
2cf0fe3b8092f64f8f68ae3693fe2e73e90ad1a4Mark Andrews -L $(PROTODIR)$(X11_DIR)/lib$(X11_SERVERLIBS_SUBDIR)$(LIBSUBDIR)
2cf0fe3b8092f64f8f68ae3693fe2e73e90ad1a4Mark Andrews
2cf0fe3b8092f64f8f68ae3693fe2e73e90ad1a4Mark Andrews# Support font modules like libbitstream.so that libXfont doesn't already know
4221d9cd1d02311fbf9b5f08a038f5af78b10b4aEvan HuntLIB_ADD_CFLAGS=-DLOADABLEFONTS
4221d9cd1d02311fbf9b5f08a038f5af78b10b4aEvan Hunt
4221d9cd1d02311fbf9b5f08a038f5af78b10b4aEvan Huntinclude ../Makefile.inc
4221d9cd1d02311fbf9b5f08a038f5af78b10b4aEvan Hunt
4221d9cd1d02311fbf9b5f08a038f5af78b10b4aEvan Hunt# Merge in additional sources from closed-src directory
f9c410d93711fbf312a0162f1e2d3f2a5ede69afFrancis Dupont#source_gen:: $(LNDIR)
f9c410d93711fbf312a0162f1e2d3f2a5ede69afFrancis Dupont# if [ -d closed-src ] ; then \
f9c410d93711fbf312a0162f1e2d3f2a5ede69afFrancis Dupont# mkdir -p $(SOURCE_DIR)/src/bitstream/module ; \
f9c410d93711fbf312a0162f1e2d3f2a5ede69afFrancis Dupont# (cd $(SOURCE_DIR)/src/bitstream && \
e526027287b849f0b6ab6e069156697cbafa22c1Michał Kępień# $(LNDIR) $(TOP)/../closed-src/xc/lib/font/bitstream) ; \
e526027287b849f0b6ab6e069156697cbafa22c1Michał Kępień# (cd $(SOURCE_DIR)/src/bitstream/module && \
e526027287b849f0b6ab6e069156697cbafa22c1Michał Kępień# xmkmf $(TOP)/../xc) ; \
e526027287b849f0b6ab6e069156697cbafa22c1Michał Kępień# perl -i.bak -p -e 's%SUBDIRS=%SUBDIRS=bitstream/module%' \
929329d2d66a7e1083c70a9c918381935bf12799Mukund Sivaraman# $(SOURCE_DIR)/src/Makefile.am ; \
929329d2d66a7e1083c70a9c918381935bf12799Mukund Sivaraman# fi
929329d2d66a7e1083c70a9c918381935bf12799Mukund Sivaraman
7e1a62eea2e4ba9d6c3fc718e679b965fa514f69Mark Andrews# (cd $(SOURCE_DIR) && $(LNDIR) ../../closed-src) ; \
ec29d217ba3a2bf3e617a7b5b6708ae221bee999Mark Andrews# perl -i.bak -p -e 's%AC_OUTPUT\(\[Makefile%AC_OUTPUT([Makefile src/bitstream/Makefile%' $(SOURCE_DIR)/configure.ac ; \
ec29d217ba3a2bf3e617a7b5b6708ae221bee999Mark Andrews# (cd $(SOURCE_DIR) && ACLOCAL="aclocal -I /usr/share/aclocal" autoreconf -v) \
afefd754734f896bf3e0590177fff83e7cdfdf35Mark Andrews