Makefile revision 851
1583N/A###############################################################################
1583N/A#
1583N/A# Xmu 1.x Makefile
1583N/A#
1583N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
1583N/A# Use is subject to license terms.
1583N/A#
1583N/A# Permission is hereby granted, free of charge, to any person obtaining a
1583N/A# copy of this software and associated documentation files (the
1583N/A# "Software"), to deal in the Software without restriction, including
1583N/A# without limitation the rights to use, copy, modify, merge, publish,
1583N/A# distribute, and/or sell copies of the Software, and to permit persons
1583N/A# to whom the Software is furnished to do so, provided that the above
1583N/A# copyright notice(s) and this permission notice appear in all copies of
1583N/A# the Software and that both the above copyright notice(s) and this
1583N/A# permission notice appear in supporting documentation.
1583N/A#
1583N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1583N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1583N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
1583N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
3996N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
1583N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
1583N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
1583N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
1583N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1583N/A#
1583N/A# Except as contained in this notice, the name of a copyright holder
1583N/A# shall not be used in advertising or otherwise to promote the sale, use
1583N/A# or other dealings in this Software without prior written authorization
1583N/A# of the copyright holder.
1583N/A#
1583N/A# ident "@(#)Makefile 1.6 09/12/05 SMI"
1583N/A#
1583N/A
1583N/A# Package name used in tarballs
3661N/AMODULE_NAME=libXmu
3661N/A
3996N/A# Version number (used in path names)
3996N/AMODULE_VERSION=1.0.5
3996N/A
1583N/A# Patches to apply to source after unpacking, in order
1583N/ASOURCE_PATCHES = \
1583N/A bitmap-path.patch \
1583N/A solaris-abi.patch
1583N/A
1583N/A# Library name (used for specfiles/mapfiles)
1583N/ALIBNAME=Xmu
1583N/A
1583N/A# Man pages to apply Sun footer to & attributes to list
1583N/A#SUNTOUCHED_MANPAGES= no man pages in upstream package
1583N/ASUN_PACKAGE=SUNWxwplt
1583N/AMODULE_STABILITY=Committed
1583N/ALIB_MAN_SUFFIX=3Xmu
1583N/A
1583N/A
1583N/A
3996N/A# pkg-config files that need to have -R added
FIX_PC_FILES=xmu.pc.in xmuu.pc.in
# Command line options to GNU autoconf configure script
MODULE_CONFIG_OPTS = --with-lint --enable-lint-library
# Work around libtool brokenness that adds -R `pwd` to libXmu build
MODULE_BUILD_DEPS=delibtoolize
# Regenerate Makefile.in's from Makefile.am's after patching them
AUTORECONF=yes
include ../Makefile.inc
# Add-in Sun-added source files
source_gen::
mkdir -p $(SOURCE_DIR)/src $(SOURCE_DIR)/include/X11/Xmu/
(cd $(SOURCE_DIR)/src ; ln -s ../../../sun-src/*.c .)
(cd $(SOURCE_DIR)/include/X11/Xmu ; ln -s ../../../../../sun-src/*.h .)
# Additional files we need to install
CP = cp -pf
MANDIR = $(PROTODIR)$(X11_MAN_DIR)/man3Xmu
install_gen::
mkdir -p $(PROTODIR)$(X11_INCLUDES_DIR)/X11/Xmu $(MANDIR) \
$(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR)
$(CP) $(SOURCE_DIR)/include/X11/Xmu/XmuSolaris.h \
$(SOURCE_DIR)/include/X11/Xmu/WhitePoint.h \
$(PROTODIR)$(X11_INCLUDES_DIR)/X11/Xmu
$(CP) sun-src/*.3Xmu $(MANDIR)
rm -f $(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR)/libXmu.so \
$(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR)/libXmuu.so
ln -s libXmu.so.4 $(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR)/libXmu.so
ln -s libXmuu.so.1 $(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR)/libXmuu.so