Makefile revision 919
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico###############################################################################
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico#
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# Xmu 1.x Makefile
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico#
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# Use is subject to license terms.
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico#
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# Permission is hereby granted, free of charge, to any person obtaining a
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# copy of this software and associated documentation files (the "Software"),
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# to deal in the Software without restriction, including without limitation
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# the rights to use, copy, modify, merge, publish, distribute, sublicense,
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# and/or sell copies of the Software, and to permit persons to whom the
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# Software is furnished to do so, subject to the following conditions:
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico#
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# The above copyright notice and this permission notice (including the next
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# paragraph) shall be included in all copies or substantial portions of the
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# Software.
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico#
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# DEALINGS IN THE SOFTWARE.
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico#
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico#
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# Package name used in tarballs
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoMODULE_NAME=libXmu
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# Version number (used in path names)
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoMODULE_VERSION=1.0.5
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# Checksums for upstream tarball
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoTARBALL_MD5 = fc4d66be7a1a1eb474954728415e46d6
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoTARBALL_SHA1 = e7ff5960f2374852b941f909cdbdeafe7d29322f
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# Patches to apply to source after unpacking, in order
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoSOURCE_PATCHES = \
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico bitmap-path.patch \
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico solaris-abi.patch
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# Library name (used for specfiles/mapfiles)
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoLIBNAME=Xmu
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# Man pages to apply Sun footer to & attributes to list
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico#SUNTOUCHED_MANPAGES= no man pages in upstream package
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoSUN_PACKAGE=SUNWxwplt
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoMODULE_STABILITY=Committed
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoLIB_MAN_SUFFIX=3Xmu
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# Merge in additional sources from sun-src directory
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoADDITIONAL_SOURCE_DIR=sun-src
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# pkg-config files that need to have -R added
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoFIX_PC_FILES=xmu.pc.in xmuu.pc.in
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# Command line options to GNU autoconf configure script
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoMODULE_CONFIG_OPTS = --with-lint --enable-lint-library
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# Work around libtool brokenness that adds -R `pwd` to libXmu build
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoMODULE_BUILD_DEPS=delibtoolize
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# Regenerate Makefile.in's from Makefile.am's after patching them
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoAUTORECONF=yes
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# Additional rules beyond what upstream provides
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoMODULE_ADD_INSTALL_TARGETS=install_solaris_exts
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoinclude ../Makefile.inc
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# Additional files we need to install
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoCP = cp -pf
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoMANDIR = $(PROTODIR)$(X11_MAN_DIR)/man3Xmu
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoinstall_solaris_exts: $(INSTALL_DEPS)
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico mkdir -p $(PROTODIR)$(X11_INCLUDES_DIR)/X11/Xmu $(MANDIR) \
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico $(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR)
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico $(CP) $(SOURCE_DIR)/include/X11/Xmu/XmuSolaris.h \
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico $(SOURCE_DIR)/include/X11/Xmu/WhitePoint.h \
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico $(PROTODIR)$(X11_INCLUDES_DIR)/X11/Xmu
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico $(CP) $(ADDITIONAL_SOURCE_DIR)/*.3Xmu $(MANDIR)
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico