Makefile revision 1428
f808c858fa61e7769218966759510a8b1190dfcfraf###############################################################################
f808c858fa61e7769218966759510a8b1190dfcfraf# TigerVNC (Xvnc server & vncviewer) Makefile
f808c858fa61e7769218966759510a8b1190dfcfraf# Based on Fedora's tigervnc.spec revision 1.20 from
f808c858fa61e7769218966759510a8b1190dfcfraf# http://cvs.fedoraproject.org/viewvc/rpms/tigervnc/devel/tigervnc.spec
f808c858fa61e7769218966759510a8b1190dfcfraf# Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
f808c858fa61e7769218966759510a8b1190dfcfraf# Permission is hereby granted, free of charge, to any person obtaining a
f808c858fa61e7769218966759510a8b1190dfcfraf# copy of this software and associated documentation files (the "Software"),
f808c858fa61e7769218966759510a8b1190dfcfraf# to deal in the Software without restriction, including without limitation
f808c858fa61e7769218966759510a8b1190dfcfraf# the rights to use, copy, modify, merge, publish, distribute, sublicense,
f808c858fa61e7769218966759510a8b1190dfcfraf# and/or sell copies of the Software, and to permit persons to whom the
f808c858fa61e7769218966759510a8b1190dfcfraf# Software is furnished to do so, subject to the following conditions:
f808c858fa61e7769218966759510a8b1190dfcfraf# The above copyright notice and this permission notice (including the next
f808c858fa61e7769218966759510a8b1190dfcfraf# paragraph) shall be included in all copies or substantial portions of the
f808c858fa61e7769218966759510a8b1190dfcfraf# Software.
f808c858fa61e7769218966759510a8b1190dfcfraf# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
f808c858fa61e7769218966759510a8b1190dfcfraf# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
f808c858fa61e7769218966759510a8b1190dfcfraf# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
f808c858fa61e7769218966759510a8b1190dfcfraf# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
f808c858fa61e7769218966759510a8b1190dfcfraf# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
f808c858fa61e7769218966759510a8b1190dfcfraf# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
f808c858fa61e7769218966759510a8b1190dfcfraf# DEALINGS IN THE SOFTWARE.
f808c858fa61e7769218966759510a8b1190dfcfraf# Package name used in tarballs
f808c858fa61e7769218966759510a8b1190dfcfraf# Package metadata
f808c858fa61e7769218966759510a8b1190dfcfraf# Version number (used in path names)
f808c858fa61e7769218966759510a8b1190dfcfraf# Checksums for upstream tarball
f808c858fa61e7769218966759510a8b1190dfcfraf# Source tarball
f808c858fa61e7769218966759510a8b1190dfcfrafSOURCE_TARBALL_NAME=$(MODULE_NAME)-$(MODULE_VERSION).tar.gz
f808c858fa61e7769218966759510a8b1190dfcfraf# Xorg server source tarball to use sources from
f808c858fa61e7769218966759510a8b1190dfcfrafXORG_TARBALL=$(TARBALLDIR)/xorg-server-$(XORGSERVER_VERS).tar.bz2
f808c858fa61e7769218966759510a8b1190dfcfrafXORG_SOURCE_DIR=$(BUILD_DIR)/xorg-server-$(XORGSERVER_VERS)
f808c858fa61e7769218966759510a8b1190dfcfraf# Java VNCviewer applet for connecting from a web browser
f808c858fa61e7769218966759510a8b1190dfcfrafJAVA_SOURCE_DIR = $(SOURCE_DIR)/java/src/com/tigervnc/vncviewer
f808c858fa61e7769218966759510a8b1190dfcfraf# Download site for source
f808c858fa61e7769218966759510a8b1190dfcfrafSOURCE_URL=$(SF_DOWNLOADS_URL)/tigervnc/tigervnc/1.1.0/$(SOURCE_TARBALL_NAME)
f808c858fa61e7769218966759510a8b1190dfcfraf# Patches to apply to source after unpacking, in order
f808c858fa61e7769218966759510a8b1190dfcfrafSOURCE_PATCHES += $(SOURCE_DIR)/unix/xserver114.patch,'-p0 -d unix'
f808c858fa61e7769218966759510a8b1190dfcfraf# Need to regenerate autoconf/automake files after patching
f808c858fa61e7769218966759510a8b1190dfcfraf# Disable parfait build with 1.3 - 17759056
f808c858fa61e7769218966759510a8b1190dfcfraf# ARC cases that covered this module
f808c858fa61e7769218966759510a8b1190dfcfraf# PSARC/2007/545 Xvnc
f808c858fa61e7769218966759510a8b1190dfcfraf# LSARC/2007/625 vncviewer
f808c858fa61e7769218966759510a8b1190dfcfraf# PSARC/2009/592 TigerVNC 1.0
f808c858fa61e7769218966759510a8b1190dfcfraf# Man pages to apply Sun footer to & attributes to list
f808c858fa61e7769218966759510a8b1190dfcfraf unix/xserver/hw/vnc/Xvnc.man unix/vncviewer/vncviewer.man \
f808c858fa61e7769218966759510a8b1190dfcfraf unix/vncconfig/vncconfig.man unix/vncpasswd/vncpasswd.man \
f808c858fa61e7769218966759510a8b1190dfcfraf# Additional pkg(5) package name used for vncviewer package
f808c858fa61e7769218966759510a8b1190dfcfraf# Override specific attributes for specific man pages
f808c858fa61e7769218966759510a8b1190dfcfrafSUNTOUCH_MAN_FLAGS_vncviewer = -o '{Availability, $(VNCVIEWER_PKGNAME)}' \
f808c858fa61e7769218966759510a8b1190dfcfraf -o '{Interface Stability, Path: Committed, Options: Volatile}'
f808c858fa61e7769218966759510a8b1190dfcfraf# Compiler to use
$(XORG_TARBALL):
MODULE_CPPFLAGS = \
-D__extension__=\"\" \
# Needed by unix/xorg-x11-server-source/hw/vnc/Makefile.am to find libpixman
# headers in proto area after solaris-port.patch is applied
mkdir -p $@