Makefile revision 943
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend###############################################################################
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend#
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd# Xfont Makefile
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd#
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend#
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# Permission is hereby granted, free of charge, to any person obtaining a
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# copy of this software and associated documentation files (the "Software"),
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# to deal in the Software without restriction, including without limitation
96ad5d81ee4a2cc66a4ae19893efc8aa6d06fae7jailletc# the rights to use, copy, modify, merge, publish, distribute, sublicense,
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# and/or sell copies of the Software, and to permit persons to whom the
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# Software is furnished to do so, subject to the following conditions:
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen#
2e545ce2450a9953665f701bb05350f0d3f26275nd# The above copyright notice and this permission notice (including the next
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# paragraph) shall be included in all copies or substantial portions of the
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# Software.
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend#
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3f08db06526d6901aa08c110b5bc7dde6bc39905nd# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
8b7e19de6d547ab1ad4256316fbf0d2497f724f8humbedooh# DEALINGS IN THE SOFTWARE.
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd#
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung#
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd# Package name used in tarballs
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendMODULE_NAME=libXfont
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# Version number (used in path names)
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendMODULE_VERSION=1.4.1
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend
8b7e19de6d547ab1ad4256316fbf0d2497f724f8humbedooh# Checksums for upstream tarball
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendTARBALL_MD5 = 4f2bed2a2be82e90a51a24bb3a22cdf0
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendTARBALL_SHA1 = f8dc669760975b41885143f828b54164224c8a31
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# Patches to apply to source after unpacking, in order
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendSOURCE_PATCHES= \
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend ps-fonts.patch \
a99c5d4cc3cab6a62b04d52000dbc22ce1fa2d94coar htons-inline.patch
8b7e19de6d547ab1ad4256316fbf0d2497f724f8humbedooh
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# Library name
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendLIBNAME=Xfont
dc06c0ac17fcd3d721bb865d7fc5d2cefe67c57ftrawick
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# Man pages to apply Sun footer to & attributes to list
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend#SUNTOUCHED_MANPAGES=man/*.man
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendSUN_PACKAGE=SUNWxorg-server
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendMODULE_STABILITY=Project Private
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendLIB_MAN_SUFFIX=3Xfont
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# Additional configure script options to select the modules we use
8b7e19de6d547ab1ad4256316fbf0d2497f724f8humbedoohMODULE_CONFIG_OPTS= --enable-freetype --disable-type1 --disable-cid \
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend --disable-speedo --enable-fontcache --enable-fc --enable-builtins \
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend --with-bzip2
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# pkg-config files that need to have -R added
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendFIX_PC_FILES=xfont.pc.in
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# Install in private subdir
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedoohMODULE_ADD_LIB_SUBDIR=$(X11_SERVERLIBS_SUBDIR)
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# Need to link with libfontenc in server private directory
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendMODULE_LDFLAGS= -L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR)
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# Need to find libfontenc & libfreetype in matching directory when used
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# in alternate root environments, like during OS install
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# We use sfw/lib to find libfreetype (via the compatibility link) and not
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# libc, which may be incompatible with the running system during Live Upgrade
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendMODULE_LD_OPTIONS= -R $$ORIGIN -R $$ORIGIN/$(FREETYPE_RELATIVE_PATH)
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendMODULE_BUILD_32_FLAGS= FREETYPE_RELATIVE_PATH=../../../../sfw/lib
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendMODULE_BUILD_64_FLAGS= FREETYPE_RELATIVE_PATH=../../../../../sfw/lib$(ARCHLIBSUBDIR)
8b7e19de6d547ab1ad4256316fbf0d2497f724f8humbedooh
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# Link with version mapfile
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendMODULE_LD_OPTIONS += -M $(PWD)/mapfile-vers
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendinclude ../Makefile.inc
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend