Makefile revision 117
4de2612967d06c4fdbf524a62556a1e8118a006fxs###############################################################################
4de2612967d06c4fdbf524a62556a1e8118a006fxs# Xorg server Makefile
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# Use subject to license terms.
4de2612967d06c4fdbf524a62556a1e8118a006fxs# Permission is hereby granted, free of charge, to any person obtaining a
4de2612967d06c4fdbf524a62556a1e8118a006fxs# copy of this software and associated documentation files (the
4de2612967d06c4fdbf524a62556a1e8118a006fxs# "Software"), to deal in the Software without restriction, including
4de2612967d06c4fdbf524a62556a1e8118a006fxs# without limitation the rights to use, copy, modify, merge, publish,
4de2612967d06c4fdbf524a62556a1e8118a006fxs# distribute, and/or sell copies of the Software, and to permit persons
4de2612967d06c4fdbf524a62556a1e8118a006fxs# to whom the Software is furnished to do so, provided that the above
4de2612967d06c4fdbf524a62556a1e8118a006fxs# copyright notice(s) and this permission notice appear in all copies of
4de2612967d06c4fdbf524a62556a1e8118a006fxs# the Software and that both the above copyright notice(s) and this
4de2612967d06c4fdbf524a62556a1e8118a006fxs# permission notice appear in supporting documentation.
4de2612967d06c4fdbf524a62556a1e8118a006fxs# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
4de2612967d06c4fdbf524a62556a1e8118a006fxs# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
4de2612967d06c4fdbf524a62556a1e8118a006fxs# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
4de2612967d06c4fdbf524a62556a1e8118a006fxs# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
4de2612967d06c4fdbf524a62556a1e8118a006fxs# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
4de2612967d06c4fdbf524a62556a1e8118a006fxs# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
4de2612967d06c4fdbf524a62556a1e8118a006fxs# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Except as contained in this notice, the name of a copyright holder
4de2612967d06c4fdbf524a62556a1e8118a006fxs# shall not be used in advertising or otherwise to promote the sale, use
4de2612967d06c4fdbf524a62556a1e8118a006fxs# or other dealings in this Software without prior written authorization
4de2612967d06c4fdbf524a62556a1e8118a006fxs# of the copyright holder.
4de2612967d06c4fdbf524a62556a1e8118a006fxs# @(#)Makefile 1.34 07/03/02
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsBUILD_TYPES:sh=arch | sed 's/^\(.*\)$/\$\(BUILD_TYPES_\1\)/'
4de2612967d06c4fdbf524a62556a1e8118a006fxs# Package name used in tarballs
4de2612967d06c4fdbf524a62556a1e8118a006fxs# Version number (used in path names)
4de2612967d06c4fdbf524a62556a1e8118a006fxs# Source tarball
4de2612967d06c4fdbf524a62556a1e8118a006fxsSOURCE_TARBALL_NAME=$(MODULE_NAME)-$(XORGSERVER_VERS).tar.bz2
4de2612967d06c4fdbf524a62556a1e8118a006fxs# Download site for source
4de2612967d06c4fdbf524a62556a1e8118a006fxsSOURCE_URL=$(XORG_RELEASES_URL)/xserver/$(SOURCE_TARBALL_NAME)
4de2612967d06c4fdbf524a62556a1e8118a006fxs# Patches to apply to source after unpacking, in order
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Directory created by unpacking source
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsSOURCE_DIR=$(BUILD_DIR)/$(MODULE_NAME)-$(XORGSERVER_VERS)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Prefix for installation
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Man pages to apply Sun footer to & attributes to list
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# XXX: Need to adjust some of these to correct packages/stability
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits -a '{Availability, SUNWxorg-server} {Interface Stability, Volatile}'
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Binary built in tree
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsBUILD_TARGETS=$(XORGSERVER_BIN) $(BUILD_DIR)/mapfile-Xorg-externs
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Merge in additional sources from sun-src directory
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Command line options to GNU autoconf configure script
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# XXX: enable xorgcfg --disable-dga enable security
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits --prefix=$(XORGSERVER_PREFIX) --mandir='$${prefix}/share/man' \
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits --enable-builddocs --disable-xdm-auth-1 --enable-xcsecurity \
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits --with-log-dir=/var/log --with-xkb-output=/var/run/xkb \
--with-default-font-path="$(FONTDIR)/TrueType/,$(FONTDIR)/Type1/,$(FONTDIR)/Type1/sun/,$(FONTDIR)/F3bitmaps/,$(FONTDIR)/misc/,$(FONTDIR)/100dpi/,$(FONTDIR)/75dpi/"
GCC_HEADERS:sh=gcc -print-search-dirs | awk -F: '$1 == "install" {printf "-idirafter %s/install-tools/include", $2}'
PKG_CONFIG_PATH=$(PROTODIR)/usr/lib$(ARCHLIBSUBDIR)/pkgconfig:$(TOP)/common/pc-files/$(BUILD_DIR):/usr/lib$(ARCHLIBSUBDIR)/pkgconfig \
LDFLAGS="$(GCC_PROG_LDFLAGS) -L/usr/sfw/lib$(ARCHLIBSUBDIR) -R/usr/sfw/lib$(ARCHLIBSUBDIR) $(LDPATH_ADD)" \
LD_LIBRARY_PATH=$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR):$(PROTODIR)$(X11_DIR)/lib$(ARCHLIBSUBDIR):$(PROTODIR)$(X11_DIR)/lib/xorgcfg$(ARCHLIBSUBDIR)
-e 's%^.* _XSERVER64 .*$$%#include <sys/isa_defs.h>\
-rm -f $@