Makefile revision 247
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu###############################################################################
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# Xvnc server Makefile
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# Based on Fedora's vnc-4.1.2-21.fc8/vnc.spec
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# Use subject to license terms.
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# Permission is hereby granted, free of charge, to any person obtaining a
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# copy of this software and associated documentation files (the
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# "Software"), to deal in the Software without restriction, including
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# without limitation the rights to use, copy, modify, merge, publish,
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# distribute, and/or sell copies of the Software, and to permit persons
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# to whom the Software is furnished to do so, provided that the above
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# copyright notice(s) and this permission notice appear in all copies of
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# the Software and that both the above copyright notice(s) and this
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# permission notice appear in supporting documentation.
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
5084e753b79a753c8b532c06eb3ad1d025e8e472Mark J. Nelson# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
5084e753b79a753c8b532c06eb3ad1d025e8e472Mark J. Nelson# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
5084e753b79a753c8b532c06eb3ad1d025e8e472Mark J. Nelson# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
5084e753b79a753c8b532c06eb3ad1d025e8e472Mark J. Nelson# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
5084e753b79a753c8b532c06eb3ad1d025e8e472Mark J. Nelson# Except as contained in this notice, the name of a copyright holder
5084e753b79a753c8b532c06eb3ad1d025e8e472Mark J. Nelson# shall not be used in advertising or otherwise to promote the sale, use
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# or other dealings in this Software without prior written authorization
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# of the copyright holder.
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# @(#)Makefile 1.5 07/11/06
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# Package name used in tarballs
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# Name used in server-specific rules in ../Makefile.inc
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# Version number (used in path names)
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# Source tarball
a31148363f598def767ac48c5d82e1572e44b935Gerry LiuSOURCE_TARBALL_NAME=$(MODULE_NAME)-$(VNC_TARBALL_VERS).tar.gz
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# Xorg server source tarball to use sources from
a31148363f598def767ac48c5d82e1572e44b935Gerry LiuXORG_TARBALL=$(TARBALLDIR)/xorg-server-$(XORGSERVER_VERS).tar.bz2
a31148363f598def767ac48c5d82e1572e44b935Gerry LiuXORG_SOURCE_DIR=$(BUILD_DIR)/xorg-server-$(XORGSERVER_VERS)
5084e753b79a753c8b532c06eb3ad1d025e8e472Mark J. NelsonXORG_BUILD_DIR=$(SOURCE_DIR)/unix/xorg-x11-server-source
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# Download site for source
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# - Master source site doesn't allow wget downloads, so we use a mirror
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu#SOURCE_URL=http://www.realvnc.com/dist/$(SOURCE_TARBALL_NAME)
a31148363f598def767ac48c5d82e1572e44b935Gerry LiuSOURCE_URL=http://ltsp.mirrors.tds.net/pub/ltsp/tarballs/$(SOURCE_TARBALL_NAME)
5084e753b79a753c8b532c06eb3ad1d025e8e472Mark J. Nelson# Directory created by unpacking source
5084e753b79a753c8b532c06eb3ad1d025e8e472Mark J. NelsonSOURCE_DIR=$(BUILD_DIR)/$(MODULE_NAME)-$(VNC_TARBALL_VERS)
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# Patches to apply to source after unpacking, in order
c++public.patch \
# different attributes/path set
# This step has to be done before including common/Makefile.inc so
PATCH_CMD=`echo $$p | awk -F, '{if (NF > 1) FLAGS = $$2; else FLAGS="-p0" ; printf "gpatch -d $(XORG_SOURCE_DIR) %s < ../xorg/%s\n", FLAGS, $$1}'` ; \
eval $${PATCH_CMD} ; \
# This step has to be done after including common/Makefile.inc since
unix/xorg-x11-server-source/hw/vnc/ ; \
cp -p unix/xorg-x11-server-source/cfb/cfb.h \
unix/xorg-x11-server-source/hw/vnc/ ; \
-p /usr/bin/ unix/vncviewer/vncviewer.man )
XVNC_CPPFLAGS = \
-D__extension__=\"\" \