Makefile revision 247
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe###############################################################################
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe#
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Xvnc server Makefile
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Based on Fedora's vnc-4.1.2-21.fc8/vnc.spec
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe#
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Use subject to license terms.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe#
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Permission is hereby granted, free of charge, to any person obtaining a
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# copy of this software and associated documentation files (the
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# "Software"), to deal in the Software without restriction, including
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# without limitation the rights to use, copy, modify, merge, publish,
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# distribute, and/or sell copies of the Software, and to permit persons
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# to whom the Software is furnished to do so, provided that the above
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# copyright notice(s) and this permission notice appear in all copies of
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# the Software and that both the above copyright notice(s) and this
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# permission notice appear in supporting documentation.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe#
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe#
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Except as contained in this notice, the name of a copyright holder
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# shall not be used in advertising or otherwise to promote the sale, use
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# or other dealings in this Software without prior written authorization
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# of the copyright holder.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe#
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# @(#)Makefile 1.5 07/11/06
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe#
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Package name used in tarballs
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweMODULE_NAME=vnc
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Name used in server-specific rules in ../Makefile.inc
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweXSERVER=XVNC
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Version number (used in path names)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweVNC_VERS=4.1.2
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweVNC_TARBALL_VERS=4_1_2-unixsrc
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Source tarball
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweSOURCE_TARBALL_NAME=$(MODULE_NAME)-$(VNC_TARBALL_VERS).tar.gz
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Xorg server source tarball to use sources from
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweXORG_TARBALL=$(TARBALLDIR)/xorg-server-$(XORGSERVER_VERS).tar.bz2
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweXORG_SOURCE_DIR=$(BUILD_DIR)/xorg-server-$(XORGSERVER_VERS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweXORG_BUILD_DIR=$(SOURCE_DIR)/unix/xorg-x11-server-source
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Download site for source
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# - Master source site doesn't allow wget downloads, so we use a mirror
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe#SOURCE_URL=http://www.realvnc.com/dist/$(SOURCE_TARBALL_NAME)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweSOURCE_URL=http://ltsp.mirrors.tds.net/pub/ltsp/tarballs/$(SOURCE_TARBALL_NAME)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweSOURCE_URL_SET=yes
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweSOURCE_UNCOMPRESS=gzcat
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Directory created by unpacking source
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweSOURCE_DIR=$(BUILD_DIR)/$(MODULE_NAME)-$(VNC_TARBALL_VERS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Patches to apply to source after unpacking, in order
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweSOURCE_PATCHES = \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe vnc-use-fb.patch,-p1 \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe vnc-restart.patch,-p1 \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe vnc-modular-xorg.patch,-p1 \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe vnc-nohttpd.patch,-p1 \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe vnc-int10.patch,-p1 \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe vnc-64bit.patch,-p1 \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe vnc-ipv6.patch,-p1 \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe vnc-render.patch,-p1 \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe vnc-autotools.patch,-p1 \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe vnc-autotools-compile.patch,-p1 \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe vnc-always_use_fb.patch,-p1 \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe vnc-24bit.patch,-p1 \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe c++public.patch \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe build-without-Xorg.patch \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe solaris-port.patch
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweXORG_SOURCE_PATCHES:sh=cat ../xorg/patch-list
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Man pages to apply Sun footer to & attributes to list
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Common ones are here - source_gen target below has more with
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# different attributes/path set
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweSUNTOUCHED_MANPAGES= \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe unix/vncconfig/vncconfig.man unix/vncpasswd/vncpasswd.man \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe unix/vncserver.man unix/x0vncserver/x0vncserver.man
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweSUNTOUCH_MAN_FLAGS= -p /usr/bin/ \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe -a '{Availability, SUNWxvnc} {Interface Stability, Volatile}'
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Compiler to use
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweCOMPILER=cc
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Binary built in tree
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweXVNCSERVER_BIN=$(SOURCE_DIR)/hw/xfree86/Xorg
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweBUILD_TARGETS=$(XVNCSERVER_BIN)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowedefault: all
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Merge in additional sources from Xorg tarball & sun-src directory
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Use layout from Fedora RPM so their patches apply
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# This step has to be done before including common/Makefile.inc so
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# that patches applied in that step work correctly.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowesource_gen:: $(LNDIR)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe mkdir -p $(SOURCE_DIR)/unix
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe bzcat $(XORG_TARBALL) | (cd $(BUILD_DIR) ; tar -xf - )
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe @if [ "x$(XORG_SOURCE_PATCHES)" != "x" ] ; then \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe for p in $(XORG_SOURCE_PATCHES) x ; do \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe if [ "$$p" != "x" ] ; then \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe 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}'` ; \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe echo "$${PATCH_CMD}" ; \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe eval $${PATCH_CMD} ; \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe fi ; \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe done ; \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe fi
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe mv $(XORG_SOURCE_DIR) $(XORG_BUILD_DIR)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe (cd $(XORG_BUILD_DIR) && $(LNDIR) ../../../../../xorg/sun-src)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Loweinclude ../Makefile.inc
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Merge in additional sources from Xorg tarball & sun-src directory
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Use layout from Fedora RPM so their patches apply
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# This step has to be done after including common/Makefile.inc since
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# it depends on files created in that stage
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowesource_gen::
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe (cd $(SOURCE_DIR) ; \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe cp -p unix/xc/programs/Xserver/vnc/Xvnc/xvnc.cc \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe unix/xc/programs/Xserver/Xvnc.man \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe unix/xc/programs/Xserver/vnc/*.h \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe unix/xc/programs/Xserver/vnc/*.cc \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe unix/xorg-x11-server-source/hw/vnc/ ; \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe cp -p unix/xorg-x11-server-source/cfb/cfb.h \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe unix/xorg-x11-server-source/fb/fb.h \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe unix/xorg-x11-server-source/fb/fbrop.h \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe unix/xorg-x11-server-source/hw/vnc/ ; \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe perl -i -p -e 's,\b(xor|and)\b,c_$$1,g' \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe unix/xorg-x11-server-source/hw/vnc/cfb.h \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe unix/xorg-x11-server-source/hw/vnc/fb.h \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe unix/xorg-x11-server-source/hw/vnc/fbrop.h )
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe (cd $(SOURCE_DIR) && \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe /usr/perl5/bin/perl $(TOP)/common/suntouch-manpages.pl \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe -a '{Availability, SUNWvncviewer} {Interface Stability, Volatile}' \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe -p /usr/bin/ unix/vncviewer/vncviewer.man )
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe (cd $(SOURCE_DIR) && \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe /usr/perl5/bin/perl $(TOP)/common/suntouch-manpages.pl \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe -a '{Availability, SUNWxvnc} {Interface Stability, Volatile}' \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe -p /usr/X11/bin/ unix/xc/programs/Xserver/Xvnc.man )
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Command line options to GNU autoconf configure script for vnc
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweVNC_CONFIG_OPTS= --with-installed-zlib --prefix=$(XVNCSERVER_PREFIX) \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe --mandir='$${prefix}/share/man' --libdir='$${exec_prefix}/lib/vnc'
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Command line options to GNU autoconf configure script for Xorg
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweXVNC_CONFIG_OPTS = $(XSERVER_CONFIG_OPTS) \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe --disable-builddocs --with-int10=stub \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe --disable-dga --disable-xfree86-utils --disable-dri \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe --disable-xorg --disable-dmx --disable-xvfb --disable-xnest \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe --disable-xprint --disable-kdrive
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweXVNC_CPPFLAGS = \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe -D__extension__=\"\" \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe -I$(PWD)/$(SOURCE_DIR)/common \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe -I$(PWD)/$(SOURCE_DIR)/unix/vncconfig \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(XSERVER_CPPFLAGS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Uncomment to build debug
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# OPT_CFLAGS = -g
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# DEFAULT_GCC_CFLAGS = -g -O3 -fno-omit-frame-pointer -Wall
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweDEFAULT_GCC_CFLAGS += -fPIC
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Environment variable options to GNU autoconf configure script
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweXVNC_CONFIG_ENV = LIBS="-lsocket -lnsl"
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweCONFIG_ENV += $(XVNC_CONFIG_ENV)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweLDPATH_ADD += -L$(PROTODIR)$(X11_SERVERMODS_DIR)/extensions$(ARCHLIBSUBDIR) \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe -R$(X11_SERVERMODS_DIR)/extensions/mesa/$(ARCHLIBSUBDIR) \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe -R$(X11_SERVERMODS_DIR)/extensions$(ARCHLIBSUBDIR)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Run configure scripts for vnc sources
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe$(SOURCE_DIR)/unix/Makefile: $(UNPACK_TARGET)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe (cd $(SOURCE_DIR)/common && autoreconf --install --force && \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(CONFIG_ENV) ./configure $(VNC_CONFIG_OPTS) )
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe (cd $(SOURCE_DIR)/unix && autoreconf --install --force && \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(CONFIG_ENV) ./configure $(VNC_CONFIG_OPTS) )
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Run configure script for Xvnc
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe$(XORG_BUILD_DIR)/Makefile: $(UNPACK_TARGET)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe (cd $(XORG_BUILD_DIR) && \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe ACLOCAL="$(ACLOCAL_PATH)" autoreconf --install --force && \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(CONFIG_ENV) ./configure $(XVNC_CONFIG_OPTS) )
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(TOP)/common/delibtoolize.pl -P $(SOURCE_DIR)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe$(XVNCSERVER_BIN): $(SOURCE_DIR)/unix/Makefile $(XORG_BUILD_DIR)/Makefile
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe (cd $(SOURCE_DIR)/common ; $(BUILD_ENV) $(MAKE) $(MFLAGS))
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe (cd $(SOURCE_DIR)/unix ; $(BUILD_ENV) $(MAKE) $(MFLAGS))
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe (cd $(XORG_BUILD_DIR) ; $(BUILD_ENV) $(MAKE) $(MFLAGS))
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Loweinstall_gen: $(XVNCSERVER_BIN)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe (cd $(XORG_BUILD_DIR)/hw/vnc \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe && $(BUILD_ENV) $(MAKE) $(MFLAGS) -e install \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe DESTDIR=$(PROTODIR) CPPROG="cp -p" )
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe mkdir -p $(PROTODIR)/usr/bin/$(ARCHLIBSUBDIR) \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(PROTODIR)/usr/share/man/man1 \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(PROTODIR)$(X11_MAN_DIR)/man/man1 \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(PROTODIR)/usr/share/vnc \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(PROTODIR)/var/svc/manifest/application/x11
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe cp -pf $(SOURCE_DIR)/unix/vncserver \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(SOURCE_DIR)/unix/vncpasswd/vncpasswd \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(SOURCE_DIR)/unix/vncconfig/vncconfig \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(SOURCE_DIR)/unix/vncviewer/vncviewer \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(PROTODIR)/usr/bin/$(ARCHLIBSUBDIR)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe cp -pf $(SOURCE_DIR)/unix/vncserver.man \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(PROTODIR)/usr/share/man/man1/vncserver.1
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe cp -pf $(SOURCE_DIR)/unix/vncconfig/vncconfig.man \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(PROTODIR)/usr/share/man/man1/vncconfig.1
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe cp -pf $(SOURCE_DIR)/unix/vncpasswd/vncpasswd.man \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(PROTODIR)/usr/share/man/man1/vncpasswd.1
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe cp -pf $(SOURCE_DIR)/unix/vncviewer/vncviewer.man \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(PROTODIR)/usr/share/man/man1/vncviewer.1
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe cp -pf $(SOURCE_DIR)/common/javabin/index.vnc \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(PROTODIR)/usr/share/vnc
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe cp -pf $(XORG_BUILD_DIR)/hw/vnc/Xvnc.man \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(PROTODIR)$(X11_MAN_DIR)/man1/Xvnc.1
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe cp -pf xvnc-inetd.xml $(PROTODIR)/var/svc/manifest/application/x11/
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe