Makefile revision 101
341N/A###############################################################################
341N/A#
341N/A# xtrans 1.x Makefile
341N/A#
341N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
341N/A# Use subject to license terms.
341N/A#
341N/A# Permission is hereby granted, free of charge, to any person obtaining a
341N/A# copy of this software and associated documentation files (the
341N/A# "Software"), to deal in the Software without restriction, including
341N/A# without limitation the rights to use, copy, modify, merge, publish,
341N/A# distribute, and/or sell copies of the Software, and to permit persons
341N/A# to whom the Software is furnished to do so, provided that the above
341N/A# copyright notice(s) and this permission notice appear in all copies of
341N/A# the Software and that both the above copyright notice(s) and this
341N/A# permission notice appear in supporting documentation.
341N/A#
341N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
341N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
341N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
341N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
341N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
341N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
341N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
341N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
341N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
341N/A#
341N/A# Except as contained in this notice, the name of a copyright holder
341N/A# shall not be used in advertising or otherwise to promote the sale, use
341N/A# or other dealings in this Software without prior written authorization
341N/A# of the copyright holder.
341N/A#
604N/A# @(#)Makefile 1.3 07/01/31
341N/A#
341N/A
341N/A# IMPORTANT NOTE: xtrans is not really a library, but shared source code
493N/A# compiled into other modules at build time.
341N/A
341N/APWD:sh=pwd
493N/ATOP=$(PWD)/../..
341N/ABUILD_TYPES=32
341N/A
341N/A# Version number (used in path names)
341N/AXTRANS_VERS=1.0.3
341N/A
341N/A# Source tarball
449N/ASOURCE_TARBALL_NAME=xtrans-$(XTRANS_VERS).tar.bz2
563N/A
341N/A# Download site for source
341N/ASOURCE_URL=$(XORG_RELEASES_URL)/lib/$(SOURCE_TARBALL_NAME)
341N/A
341N/A# Patches to apply to source after unpacking, in order
341N/ASOURCE_PATCHES = inetv6.patch socket-perm.patch
341N/A
341N/A# Directory created by unpacking source
341N/ASOURCE_DIR=$(BUILD_DIR)/xtrans-$(XTRANS_VERS)
341N/A
341N/A# Library name (used for specfiles/mapfiles)
341N/ALIBNAME=xtrans
392N/A
396N/A# Man pages to apply Sun footer to & attributes to list
409N/A# - Xtrans has none
422N/A
426N/Ainclude $(TOP)/common/Makefile.inc
447N/A
447N/A# Where to install files
604N/AXTRANS_prefix=$(X11_DIR)
604N/A
604N/A# Command line options to GNU autoconf configure script
341N/ACONFIG_OPTS = --enable-shared=yes --enable-static=no \
341N/A --prefix=$(XTRANS_prefix) --libdir='$${exec_prefix}/lib$(LIBSUBDIR)' \
341N/A --enable-xthreads --with-lint --enable-lint-library
341N/A
341N/A# Environment variable options to GNU autoconf configure script
341N/ACONFIG_ENV = CC=$(CC) CFLAGS="$(LIB_CFLAGS)" \
341N/A LD="$(LD) $(LDFLAGS)" LDFLAGS="$(LIB_LDFLAGS)" \
493N/A PKG_CONFIG_PATH=$(PROTODIR)/usr/lib/$(ARCHLIBSUBDIR)/pkgconfig \
341N/A LIB_MAN_SUFFIX=3xtrans
341N/A
341N/A# Run configure script
493N/A$(SOURCE_DIR)/Makefile: $(UNPACK_TARGET) $(XPROTO_DEP)
341N/A (cd $(SOURCE_DIR) ; chmod a+x configure ; \
341N/A $(CONFIG_ENV) ./configure $(CONFIG_OPTS) )
341N/A
341N/A# Library built in tree
341N/A# - Xtrans doesn't build a library, so we use the pkgconfig file it builds instead
493N/AXTRANS_LIB = xtrans.pc
341N/A
341N/Abuild_gen: $(XTRANS_LIB)
341N/A
341N/A$(XTRANS_LIB): $(SOURCE_DIR)/Makefile
493N/A (cd $(SOURCE_DIR) ; LD_OPTIONS="$(LIB_REQUIRED_LDFLAGS) -M $(PWD)/$(BUILD_DIR)/$(SPECMAP)" $(MAKE) $(MFLAGS) )
341N/A
341N/A
493N/Ainstall_gen: $(XTRANS_LIB)
341N/A (cd $(SOURCE_DIR) ; $(LIBPATHS) LD_OPTIONS="$(LIB_REQUIRED_LDFLAGS)" $(MAKE) $(MFLAGS) -e DESTDIR=$(PROTODIR) libdir=$(XTRANS_prefix)/lib$(ARCHLIBSUBDIR) install pkgconfigdir=/usr/lib/$(ARCHLIBSUBDIR)/pkgconfig)
341N/A -rm -f $(PROTODIR)/usr/lib/$(MACH64)/pkgconfig/xtrans.pc
341N/A ln -s ../../pkgconfig/xtrans.pc $(PROTODIR)/usr/lib/$(MACH64)/pkgconfig/xtrans.pc
341N/A