Makefile revision 124
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor###############################################################################
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# Xfont Makefile
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# Use subject to license terms.
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# Permission is hereby granted, free of charge, to any person obtaining a
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# copy of this software and associated documentation files (the
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# "Software"), to deal in the Software without restriction, including
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# without limitation the rights to use, copy, modify, merge, publish,
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# distribute, and/or sell copies of the Software, and to permit persons
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# to whom the Software is furnished to do so, provided that the above
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# copyright notice(s) and this permission notice appear in all copies of
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# the Software and that both the above copyright notice(s) and this
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# permission notice appear in supporting documentation.
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
45b1747515a17db45e8971501ee84a26bdff37b2Alex Wilson# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
470bc2d6d44a4a70ed9403c0bce321333e897c31George Wilson# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# Except as contained in this notice, the name of a copyright holder
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# shall not be used in advertising or otherwise to promote the sale, use
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# or other dealings in this Software without prior written authorization
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# of the copyright holder.
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# @(#)Makefile 1.7 07/03/13
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# Package name used in tarballs
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# Version number (used in path names)
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# Patches to apply to source after unpacking, in order
0ad555ad6a787635be8c8a424168dc59cfbce6c7Alex Wilson# Library name
0ad555ad6a787635be8c8a424168dc59cfbce6c7Alex Wilson# Man pages to apply Sun footer to & attributes to list
0ad555ad6a787635be8c8a424168dc59cfbce6c7Alex Wilson#SUNTOUCHED_MANPAGES=man/*.man
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# Additional configure script options to select the modules we use
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric TaylorLIB_ADD_CONFIG_OPTS= --disable-freetype --enable-type1 --disable-cid \
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor --disable-speedo --enable-fontcache --enable-fc --disable-builtins
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# Library built in tree
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric TaylorLIB_BUILT=$(SOURCE_DIR)/src/.libs/libXfont.so.1.0.0
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# pkg-config files that need to have -R added
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# Install in private subdir
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# Find freetype & fontenc libraries in private subdir
470bc2d6d44a4a70ed9403c0bce321333e897c31George WilsonLIB_ADD_LD_OPTIONS=-L $(PROTODIR)/usr/sfw/lib$(LIBSUBDIR) \
470bc2d6d44a4a70ed9403c0bce321333e897c31George Wilson -L $(PROTODIR)$(X11_DIR)/lib$(X11_SERVERLIBS_SUBDIR)$(LIBSUBDIR)
470bc2d6d44a4a70ed9403c0bce321333e897c31George Wilson# Support font modules like libbitstream.so that libXfont doesn't already know
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# Merge in additional sources from closed-src directory
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor#source_gen:: $(LNDIR)
dd9c3b29f8e9f6b99b80e1fd8fc03241abd67311Jerry Jelinek# if [ -d closed-src ] ; then \
dd9c3b29f8e9f6b99b80e1fd8fc03241abd67311Jerry Jelinek# mkdir -p $(SOURCE_DIR)/src/bitstream/module ; \
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# (cd $(SOURCE_DIR)/src/bitstream && \
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# $(LNDIR) $(TOP)/../closed-src/xc/lib/font/bitstream) ; \
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# (cd $(SOURCE_DIR)/src/bitstream/module && \
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# xmkmf $(TOP)/../xc) ; \
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# perl -i.bak -p -e 's%SUBDIRS=%SUBDIRS=bitstream/module%' \
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# $(SOURCE_DIR)/src/Makefile.am ; \
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# (cd $(SOURCE_DIR) && $(LNDIR) ../../closed-src) ; \
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# perl -i.bak -p -e 's%AC_OUTPUT\(\[Makefile%AC_OUTPUT([Makefile src/bitstream/Makefile%' $(SOURCE_DIR)/configure.ac ; \
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor# (cd $(SOURCE_DIR) && ACLOCAL="aclocal -I /usr/share/aclocal" autoreconf -v) \