Makefile revision 292
2cacab200fb387e290386593d9b2fca2e7beef33csovant###############################################################################
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant# Xft 2.x Makefile
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
2cacab200fb387e290386593d9b2fca2e7beef33csovant# Use subject to license terms.
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant# Permission is hereby granted, free of charge, to any person obtaining a
2cacab200fb387e290386593d9b2fca2e7beef33csovant# copy of this software and associated documentation files (the
2cacab200fb387e290386593d9b2fca2e7beef33csovant# "Software"), to deal in the Software without restriction, including
2cacab200fb387e290386593d9b2fca2e7beef33csovant# without limitation the rights to use, copy, modify, merge, publish,
2cacab200fb387e290386593d9b2fca2e7beef33csovant# distribute, and/or sell copies of the Software, and to permit persons
2cacab200fb387e290386593d9b2fca2e7beef33csovant# to whom the Software is furnished to do so, provided that the above
2cacab200fb387e290386593d9b2fca2e7beef33csovant# copyright notice(s) and this permission notice appear in all copies of
2cacab200fb387e290386593d9b2fca2e7beef33csovant# the Software and that both the above copyright notice(s) and this
2cacab200fb387e290386593d9b2fca2e7beef33csovant# permission notice appear in supporting documentation.
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
2cacab200fb387e290386593d9b2fca2e7beef33csovant# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
2cacab200fb387e290386593d9b2fca2e7beef33csovant# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
2cacab200fb387e290386593d9b2fca2e7beef33csovant# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
2cacab200fb387e290386593d9b2fca2e7beef33csovant# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
2cacab200fb387e290386593d9b2fca2e7beef33csovant# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
d81f6d00c343633159fc5ea08599d145135612c0ludovicp# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
87eb3672b144ca89801639977e23391122caed18gary.williams# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
2cacab200fb387e290386593d9b2fca2e7beef33csovant# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# Except as contained in this notice, the name of a copyright holder
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# shall not be used in advertising or otherwise to promote the sale, use
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# or other dealings in this Software without prior written authorization
2cacab200fb387e290386593d9b2fca2e7beef33csovant# of the copyright holder.
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant#
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# @(#)Makefile 1.11 08/01/23
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantPWD:sh=pwd
28eeffb99d4c7f8ff501c22d1d21501cbfe3ad32csovantTOP=$(PWD)/../..
3ba413c19b321e1cb9c8da1ffea4a48f2378e4e4gary.williams
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# Package name used in tarballs
87eb3672b144ca89801639977e23391122caed18gary.williamsLIB_MODULE=libXft
87eb3672b144ca89801639977e23391122caed18gary.williams
87eb3672b144ca89801639977e23391122caed18gary.williams# Version number (used in path names)
87eb3672b144ca89801639977e23391122caed18gary.williamsLIB_VERS=2.1.12
87eb3672b144ca89801639977e23391122caed18gary.williams
30bc8f42b7a3f724edb7cbc8e4e22e84e86c34cemadiot# Patches to apply to source after unpacking, in order
30bc8f42b7a3f724edb7cbc8e4e22e84e86c34cemadiotSOURCE_PATCHES = \
3ba413c19b321e1cb9c8da1ffea4a48f2378e4e4gary.williams xftcore-6261221.patch \
30bc8f42b7a3f724edb7cbc8e4e22e84e86c34cemadiot xft.hint.patch
eda829585653ed50fc05afe1c87ae2803f6862a6csovant
30bc8f42b7a3f724edb7cbc8e4e22e84e86c34cemadiot# Library name (used for specfiles/mapfiles)
2cacab200fb387e290386593d9b2fca2e7beef33csovantLIBNAME=Xft
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# Man pages to apply Sun footer to & attributes to list
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantSUNTOUCHED_MANPAGES=man/Xft.3.in man/Xft.3
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantSUN_PACKAGE=SUNWxwxft
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantLIB_STABILITY=Volatile
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantLIB_MAN_SUFFIX=3
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
62ecec3a82a8b838ee76c1f6610902d8fd7015cbmatthew_swift# Command line options to GNU autoconf configure script
62ecec3a82a8b838ee76c1f6610902d8fd7015cbmatthew_swiftLIB_ADD_CONFIG_OPTS = --mandir=$(X11_DIR)/share/man
62ecec3a82a8b838ee76c1f6610902d8fd7015cbmatthew_swift
62ecec3a82a8b838ee76c1f6610902d8fd7015cbmatthew_swift# Paths to find libraries at build time (LD_LIBRARY_PATH)
62ecec3a82a8b838ee76c1f6610902d8fd7015cbmatthew_swift# and run time (LD_RUN_PATH) and freetype-config binary at build time (PATH)
62ecec3a82a8b838ee76c1f6610902d8fd7015cbmatthew_swiftLIBPATHS = LD_LIBRARY_PATH=$(PROTODIR)/usr/lib$(LIBSUBDIR):$(PROTODIR)/usr/openwin/lib$(LIBSUBDIR):/usr/sfw/lib$(LIBSUBDIR) LD_RUN_PATH=/usr/sfw/lib$(LIBSUBDIR) PATH=$(PROTODIR)/usr/bin$(LIBSUBDIR):$(PATH)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantLIB_ADD_LD_OPTIONS= -L$(PROTODIR)/usr/lib$(LIBSUBDIR)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantLIB_ADD_MAKEFLAGS = bindir=$(XFT_prefix)/bin$(ARCHLIBSUBDIR)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# Include Paths - need headers for fontconfig & freetype from build area
f5aaa49dba43db0e99f06476534a8749820515dbcsovantLIB_ADD_CFLAGS = -I$(PROTODIR)/usr/include -I$(PROTODIR)/usr/X11/include
f5aaa49dba43db0e99f06476534a8749820515dbcsovant
f5aaa49dba43db0e99f06476534a8749820515dbcsovant# Library built in tree
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantLIB_BUILT=$(BUILD_DIR)/.libs/libXft.so.2
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# Mapfile used to control which symbols are exported
62ecec3a82a8b838ee76c1f6610902d8fd7015cbmatthew_swiftXFT_MAPFILE=$(PWD)/mapfile.scope
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantLIB_ADD_LD_OPTIONS += -M$(XFT_MAPFILE) -lX11
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# pkg-config files that need to have -R added
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantFIX_PC_FILES=xft.pc.in
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantinclude ../Makefile.inc
4307522debc92aa718245251f11a2ecff81c0e75csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant