open-src/app/xscreensaver/Makefile
author Mahmood Ali <Mahmood.Ali@Sun.COM>
Tue, 25 Sep 2007 21:09:31 -0700
changeset 225 815b2b851b64
parent 218 d8e4b2d09f01
child 249 1765764860d4
permissions -rw-r--r--
6531358 xscreensaver fails to properly lock the screen during a typing break 6580862 Unable to type in windows session with full screen mode when hotdesked into the same DTU on TJDS
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
17
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     1
###############################################################################
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     2
#
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     3
# Xscreensaver Makefile
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     4
#
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 85
diff changeset
     5
# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
17
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     6
# Use subject to license terms.
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     7
#
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     8
# Permission is hereby granted, free of charge, to any person obtaining a
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     9
# copy of this software and associated documentation files (the
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    10
# "Software"), to deal in the Software without restriction, including
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    11
# without limitation the rights to use, copy, modify, merge, publish,
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    12
# distribute, and/or sell copies of the Software, and to permit persons
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    13
# to whom the Software is furnished to do so, provided that the above
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    14
# copyright notice(s) and this permission notice appear in all copies of
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    15
# the Software and that both the above copyright notice(s) and this
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    16
# permission notice appear in supporting documentation.
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    17
# 
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    18
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    19
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    20
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    21
# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    22
# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    23
# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    24
# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    25
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    26
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    27
# 
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    28
# Except as contained in this notice, the name of a copyright holder
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    29
# shall not be used in advertising or otherwise to promote the sale, use
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    30
# or other dealings in this Software without prior written authorization
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    31
# of the copyright holder.
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    32
#
225
815b2b851b64 6531358 xscreensaver fails to properly lock the screen during a typing break
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents: 218
diff changeset
    33
# @(#)Makefile	1.78	07/09/25
17
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    34
#
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    35
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    36
PWD:sh=pwd
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    37
TOP=$(PWD)/../..
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    38
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    39
# Version number (used in path names)
62
d5560039f911 6472724 Upgrade xscreensaver to 5.0.1
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 59
diff changeset
    40
XSCREENSAVER_VERS=5.01
17
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    41
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    42
# Source tarball
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    43
SOURCE_TARBALL_NAME=xscreensaver-$(XSCREENSAVER_VERS).tar.gz
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    44
47
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
    45
# Download site for source
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
    46
SOURCE_URL=http://www.jwz.org/xscreensaver/$(SOURCE_TARBALL_NAME)
156
1dec9ce4addc 6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 114
diff changeset
    47
SOURCE_URL_SET=yes
17
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    48
SOURCE_UNCOMPRESS=gzcat
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    49
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    50
# Patches to apply to source after unpacking, in order
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    51
SOURCE_PATCHES = \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    52
	Sun.app-defaults.patch \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    53
	GNOME-desktop.patch \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    54
	solaris-paths.patch \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    55
	dont-bug-jwz.patch \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    56
	gtk-lock.patch \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    57
	allow-root.patch \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    58
	passwdTimeout-pref.patch \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    59
	xinput.patch \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    60
	i18n.patch \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    61
	debug-msgs.patch \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    62
	dpms.patch \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    63
	gl-error-capture.patch \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    64
	accessibility.patch \
34
e0b6b789b46a 6417168 xscreensaver loops while trying to unlock a session for a user whose password was expired
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents: 25
diff changeset
    65
	trusted.patch \
47
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
    66
	pam_audit.patch \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
    67
	bug-6450019.patch \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
    68
	Sun-colors.patch \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
    69
	barcode-hack.patch \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
    70
	glsnake.patch \
74
42c181d8d7ed 6478841 hard-coded display number in screensaver with dual/multiple heads env
Sam Lau <Sam.Lau@Sun.COM>
parents: 62
diff changeset
    71
        allowRootByPassFlag.patch \
84
66b8b4738b3b 6395649 at-spi-registryd starts when screen is locked even when accessible device support is off
Sam Lau <Sam.Lau@Sun.COM>
parents: 74
diff changeset
    72
	bug-6478841.patch \
85
a99b452f0aa6 6461887 GNOME screen lock does not prevent access to other applications via 'alt-tab'
Sam Lau <Sam.Lau@Sun.COM>
parents: 84
diff changeset
    73
	bug-6461887.patch \
114
0e76f67e0b46 6520014 possible mem. leak in xscreensaver's lock.c in s11/nv
Sam Lau <Sam.Lau@Sun.COM>
parents: 98
diff changeset
    74
	bug1-6461887.patch \
178
57c65b127da9 6541240 Screen saver will lock user out of the system if they have no password set
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents: 156
diff changeset
    75
	bug-6520014.patch  \
225
815b2b851b64 6531358 xscreensaver fails to properly lock the screen during a typing break
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents: 218
diff changeset
    76
        NULLRootPasswd.patch \
815b2b851b64 6531358 xscreensaver fails to properly lock the screen during a typing break
Mahmood Ali <Mahmood.Ali@Sun.COM>
parents: 218
diff changeset
    77
        RobustKBGrab.patch
17
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    78
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    79
# Directory created by unpacking source
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    80
SOURCE_DIR=$(BUILD_DIR)/xscreensaver-$(XSCREENSAVER_VERS)
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    81
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 85
diff changeset
    82
include $(TOP)/common/Makefile.inc
17
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    83
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 85
diff changeset
    84
# Merge in additional sources from sun-src directory
17
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    85
source_gen:: $(LNDIR)
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    86
	mkdir -p $(SOURCE_DIR)
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    87
	(cd $(SOURCE_DIR) && $(LNDIR) ../../sun-src)
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    88
	if [ -d closed-src ] ; then \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    89
	    (cd $(SOURCE_DIR) && $(LNDIR) ../../closed-src) \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    90
	fi
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    91
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    92
# Where to find OpenGL headers/libraries
156
1dec9ce4addc 6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 114
diff changeset
    93
OPENGL_DIR_sparc=/usr/openwin
1dec9ce4addc 6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 114
diff changeset
    94
OPENGL_DIR_i386=/usr/X11
1dec9ce4addc 6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 114
diff changeset
    95
OPENGL_DIR=$(OPENGL_DIR_$(MACH))
17
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    96
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    97
# Command line options to GNU autoconf configure script
47
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
    98
XS_CFG= --prefix=/usr/X11 --enable-maintainer-mode \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
    99
 --with-gnome --enable-gtk-doc --with-gtk2=/usr --with-pixbuf=/usr \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   100
 --enable-locking --with-pam=/usr --without-shadow --without-kerberos \
62
d5560039f911 6472724 Upgrade xscreensaver to 5.0.1
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 59
diff changeset
   101
 --with-dpms --enable-dpms --disable-screengrab --enable-root-passwd \
47
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   102
 --with-gl=$(OPENGL_DIR)  --without-motif --with-jpeg=/usr \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   103
 --mandir='$${prefix}/share/man' --datadir='$${prefix}/share' \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   104
 --libexecdir='$${prefix}/lib/xscreensaver/bin' \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   105
 --with-hackdir='$${prefix}/lib/xscreensaver/hacks' \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   106
 --with-configdir=/usr/X11/lib/xscreensaver/config/control-center-2.0 \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   107
 --with-image-directory=/usr/share/pixmaps/backgrounds \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   108
 --with-text-file=/etc/motd \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   109
 --with-x-app-defaults=/usr/X11/lib/X11/app-defaults
17
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   110
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   111
# BINARY built in tree
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   112
XS_BIN=$(SOURCE_DIR)/xscreensaver
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   113
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   114
# Messages for translation
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   115
XS_POT=$(SOURCE_DIR)/po/xscreensaver.pot
47
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   116
POT_DEST=$(PROTODIR)/usr/X11/share/locale/C/LC_MESSAGES
17
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   117
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   118
# Man pages
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   119
XS_MAN=$(SOURCE_DIR)/driver/xscreensaver.man.orig
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   120
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   121
# Include Paths
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   122
INCLUDES=-I/usr/X11/include
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   123
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   124
# Additional optimization flags, to make the hacks show off the hardware
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   125
# better and we can get away with optimizations not allowed in the core X code
47
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   126
XS_CFLAGS=$(CFLAGS) -fsimple=2 -nofstore -xprefetch $(XS_ARCH_FLAGS) -xstrconst
156
1dec9ce4addc 6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 114
diff changeset
   127
XS_ARCH_FLAGS=$(XS_ARCH_FLAGS_$(MACH))
1dec9ce4addc 6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 114
diff changeset
   128
XS_ARCH_FLAGS_sparc=-xtarget=ultra2
1dec9ce4addc 6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 114
diff changeset
   129
XS_ARCH_FLAGS_i386=
17
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   130
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   131
# Configure/Make variables to override
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   132
# Set PERL to /usr/perl5/bin so it uses that path to perl for scripts
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   133
# as required by Sun rules for using the bundled version of perl
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   134
# /opt/sfw/bin must be ahead of /usr/bin to make sure we get GNU xgettext
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   135
# since intltool-update doesn't work with Solaris xgettext (see bugs
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   136
# 4812320 & 4826523)
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   137
XS_CNFG_ENV=CC=$(CC) CFLAGS="$(XS_CFLAGS) $(INCLUDES)" CPPFLAGS="$(INCLUDES)" \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   138
	PATH=/usr/perl5/bin:/usr/sfw/bin:/opt/sfw/bin:$(PATH) \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   139
	GNOME_DATADIR='$${prefix}/lib/xscreensaver/config' \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   140
	GLADE_DATADIR='$${prefix}/lib/xscreensaver/config' \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   141
	LDFLAGS="$(PROG_LDFLAGS) -L/usr/X11/lib -R/usr/X11/lib" \
218
d8e4b2d09f01 6602983 xscreensaver won't build on snv_72 due to 6571762
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 178
diff changeset
   142
	PKG_CONFIG_PATH=$(PROTODIR)/usr/lib/$(ARCHLIBSUBDIR)/pkgconfig:$(TOP)/common/pc-files/$(BUILD_DIR) \
17
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   143
	PERL=/usr/perl5/bin/perl
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   144
XS_MAKE_ENV=install_prefix=$(PROTODIR) 
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   145
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   146
build_gen:   $(XS_BIN) $(XS_MAN) $(XS_POT)
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   147
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   148
# Run configure script
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   149
$(SOURCE_DIR)/Makefile: $(UNPACK_TARGET)
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   150
	(cd $(SOURCE_DIR) ; \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   151
	 chmod a+x autogen.sh ; \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   152
	 $(XS_CNFG_ENV) ./autogen.sh $(XS_CFG) )
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   153
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   154
$(XS_BIN): $(SOURCE_DIR)/Makefile
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   155
	(cd $(SOURCE_DIR) ; chmod a+x install-sh ; \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   156
	 $(MAKE) $(MFLAGS) -e $(XS_MAKE_ENV))
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   157
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   158
$(XS_POT): $(SOURCE_DIR)/Makefile
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   159
	(cd $(SOURCE_DIR)/po ; \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   160
	 PATH=/opt/sfw/bin:$(PATH) $(MAKE) -e $(XS_MAKE_ENV) generate_potfiles_in ; \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   161
	 PATH=/opt/sfw/bin:$(PATH) $(MAKE) -e $(XS_MAKE_ENV) POTFILES ; \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   162
	 PATH=/opt/sfw/bin:$(PATH) $(MAKE) -e $(XS_MAKE_ENV) xscreensaver.pot )
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   163
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   164
# Add Sun attributes section to man pages
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   165
$(XS_MAN):
47
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   166
	/usr/perl5/bin/perl $(TOP)/common/suntouch-manpages.pl \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   167
	    -a '{Availability, SUNWxscreensaver} {Interface Stability, Volatile}' \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   168
		-p /usr/X11/bin \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   169
		$(SOURCE_DIR)/driver/xscreensaver.man \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   170
		$(SOURCE_DIR)/driver/xscreensaver-command.man \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   171
		$(SOURCE_DIR)/driver/xscreensaver-demo.man
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   172
	/usr/perl5/bin/perl $(TOP)/common/suntouch-manpages.pl \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   173
	    -a '{Availability, SUNWxscreensaver} {Interface Stability, Private}' \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   174
		-p /usr/X11/lib/xscreensaver/bin \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   175
		$(SOURCE_DIR)/driver/xscreensaver-get*.man \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   176
		$(SOURCE_DIR)/driver/xscreensaver-text.man
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   177
	/usr/perl5/bin/perl $(TOP)/common/suntouch-manpages.pl \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   178
	    -a '{Availability, SUNWxscreensaver-hacks} {Interface Stability, Private}' \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   179
		-p /usr/X11/lib/xscreensaver/hacks/ $(SOURCE_DIR)/hacks/*.man
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   180
	/usr/perl5/bin/perl $(TOP)/common/suntouch-manpages.pl \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   181
	    -a '{Availability, SUNWxscreensaver-hacks-gl} {Interface Stability, Private}' \
d59efbadf28b 4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 42
diff changeset
   182
		-p /usr/X11/lib/xscreensaver/hacks/ $(SOURCE_DIR)/hacks/glx/*.man
17
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   183
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   184
install_gen: $(XS_BIN) $(XS_MAN) $(XS_POT)
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   185
	chmod +w $(SOURCE_DIR)/hacks/vidwhacker \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   186
		$(SOURCE_DIR)/hacks/webcollage \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   187
		$(SOURCE_DIR)/driver/xscreensaver-getimage-file \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   188
		$(SOURCE_DIR)/driver/xscreensaver-getimage-video
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   189
	(cd $(SOURCE_DIR) ; chmod a+x install-sh intltool-*; \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   190
	 $(MAKE) -e $(XS_MAKE_ENV) install )
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   191
	mkdir -p $(POT_DEST)
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   192
	cp -p $(XS_POT) $(POT_DEST)/xscreensaver.pot
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   193