abe14b2928
been idle for a period, and then runs a graphics demo chosen at random. It turns off as soon as there is any mouse or keyboard activity. It can also lock the screen (immediately, after a longer idle period, or on demand.) xscreensaver consists of two parts: xscreensaver itself, the (the ``driver'' or ``daemon''), which detects idleness and does locking; and the many graphics demos that are launched by xscreensaver. Any X program that can draw on the root window can be used with xscreensaver, regardless of how that program is written, or what language it is written in, or what libraries it uses. The xscreensaver daemon takes care of detecting when the user is idle, locking, and checking passwords and all the other book-keeping; all the other programs need to do is draw. The benefit that xscreensaver has over the combination of the xlock and xautolock programs is the ease with which new graphics hacks can be installed. You don't need to recompile (or even re-run) the xscreensaver program to add a new display mode, you just change a config file. WWW: http://www.jwz.org/xscreensaver/
303 lines
15 KiB
Plaintext
303 lines
15 KiB
Plaintext
$OpenBSD: patch-driver_Makefile_in,v 1.1.1.1 2001/06/20 19:16:45 lebel Exp $
|
|
--- driver/Makefile.in.orig Sun Jun 3 19:43:35 2001
|
|
+++ driver/Makefile.in Sat Jun 16 23:09:05 2001
|
|
@@ -8,7 +8,7 @@
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
|
|
-install_prefix =
|
|
+DESTDIR =
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
bindir = @bindir@
|
|
@@ -219,8 +219,8 @@ install-strip:
|
|
install
|
|
|
|
install-program: $(EXES)
|
|
- @if [ ! -d $(install_prefix)$(bindir) ]; then \
|
|
- $(INSTALL_DIRS) $(install_prefix)$(bindir) ; \
|
|
+ @if [ ! -d $(DESTDIR)$(bindir) ]; then \
|
|
+ $(INSTALL_DIRS) $(DESTDIR)$(bindir) ; \
|
|
fi
|
|
@inst="$(INSTALL_PROGRAM)" ; \
|
|
if [ @NEED_SETUID@ = yes ]; then \
|
|
@@ -243,36 +243,36 @@ install-program: $(EXES)
|
|
$$e "" ;\
|
|
fi ; \
|
|
fi ; \
|
|
- echo $$inst xscreensaver $(install_prefix)$(bindir)/xscreensaver ; \
|
|
- $$inst xscreensaver $(install_prefix)$(bindir)/xscreensaver
|
|
+ echo $$inst xscreensaver $(DESTDIR)$(bindir)/xscreensaver ; \
|
|
+ $$inst xscreensaver $(DESTDIR)$(bindir)/xscreensaver
|
|
@echo $(INSTALL_PROGRAM) xscreensaver-command \
|
|
- $(install_prefix)$(bindir)/xscreensaver-command ; \
|
|
+ $(DESTDIR)$(bindir)/xscreensaver-command ; \
|
|
$(INSTALL_PROGRAM) xscreensaver-command \
|
|
- $(install_prefix)$(bindir)/xscreensaver-command
|
|
+ $(DESTDIR)$(bindir)/xscreensaver-command
|
|
@echo $(INSTALL_PROGRAM) xscreensaver-demo \
|
|
- $(install_prefix)$(bindir)/xscreensaver-demo ; \
|
|
+ $(DESTDIR)$(bindir)/xscreensaver-demo ; \
|
|
$(INSTALL_PROGRAM) xscreensaver-demo \
|
|
- $(install_prefix)$(bindir)/xscreensaver-demo
|
|
+ $(DESTDIR)$(bindir)/xscreensaver-demo
|
|
@echo $(INSTALL_PROGRAM) xscreensaver-getimage \
|
|
- $(install_prefix)$(bindir)/xscreensaver-getimage ; \
|
|
+ $(DESTDIR)$(bindir)/xscreensaver-getimage ; \
|
|
$(INSTALL_PROGRAM) xscreensaver-getimage \
|
|
- $(install_prefix)$(bindir)/xscreensaver-getimage
|
|
+ $(DESTDIR)$(bindir)/xscreensaver-getimage
|
|
|
|
install-ad: XScreenSaver.ad
|
|
- @if [ ! -d $(install_prefix)$(AD_DIR) ]; then \
|
|
- $(INSTALL_DIRS) $(install_prefix)$(AD_DIR) ; \
|
|
+ @if [ ! -d $(DESTDIR)$(AD_DIR) ]; then \
|
|
+ $(INSTALL_DIRS) $(DESTDIR)$(AD_DIR) ; \
|
|
fi
|
|
@-echo $(INSTALL_DATA) XScreenSaver.ad \
|
|
- $(install_prefix)$(AD_DIR)/XScreenSaver ; \
|
|
+ $(DESTDIR)$(AD_DIR)/XScreenSaver ; \
|
|
if $(INSTALL_DATA) XScreenSaver.ad \
|
|
- $(install_prefix)$(AD_DIR)/XScreenSaver ; then \
|
|
+ $(DESTDIR)$(AD_DIR)/XScreenSaver ; then \
|
|
true ; \
|
|
else \
|
|
e=echo ; \
|
|
- if [ -f $(install_prefix)$(AD_DIR)/XScreenSaver ]; then \
|
|
+ if [ -f $(DESTDIR)$(AD_DIR)/XScreenSaver ]; then \
|
|
$$e "" ;\
|
|
$$e " ####################################################################";\
|
|
- $$e " Warning: unable to install $(install_prefix)$(AD_DIR)/XScreenSaver" ;\
|
|
+ $$e " Warning: unable to install $(DESTDIR)$(AD_DIR)/XScreenSaver" ;\
|
|
$$e " That file exists, and is unwritable. It is probably from" ;\
|
|
$$e " an older version of xscreensaver, and could cause things" ;\
|
|
$$e " to malfunction. Please delete it!" ;\
|
|
@@ -282,7 +282,7 @@ install-ad: XScreenSaver.ad
|
|
else \
|
|
$$e "" ;\
|
|
$$e " ####################################################################";\
|
|
- $$e " Warning: unable to install $(install_prefix)$(AD_DIR)/XScreenSaver" ;\
|
|
+ $$e " Warning: unable to install $(DESTDIR)$(AD_DIR)/XScreenSaver" ;\
|
|
$$e " The directory is unwritable. This is probably ok;" ;\
|
|
$$e " xscreensaver should work without that file." ;\
|
|
$$e " ####################################################################";\
|
|
@@ -299,9 +299,9 @@ install-scripts: $(SCRIPTS) munge-script
|
|
p=$(srcdir)/$$program ; \
|
|
fi ; \
|
|
echo $(INSTALL_SCRIPT) $$p \
|
|
- $(install_prefix)$(bindir)/$$program ; \
|
|
+ $(DESTDIR)$(bindir)/$$program ; \
|
|
$(INSTALL_SCRIPT) $$p \
|
|
- $(install_prefix)$(bindir)/$$program ; \
|
|
+ $(DESTDIR)$(bindir)/$$program ; \
|
|
done
|
|
|
|
munge-scripts: $(SCRIPTS)
|
|
@@ -320,39 +320,39 @@ munge-scripts: $(SCRIPTS)
|
|
|
|
install-man: $(MEN)
|
|
@men="$(MEN)" ; \
|
|
- if [ ! -d $(install_prefix)$(man1dir) ]; then \
|
|
- $(INSTALL_DIRS) $(install_prefix)$(man1dir) ; \
|
|
+ if [ ! -d $(DESTDIR)$(man1dir) ]; then \
|
|
+ $(INSTALL_DIRS) $(DESTDIR)$(man1dir) ; \
|
|
fi ; \
|
|
for man in $$men; do \
|
|
instname=`echo $$man | sed 's/\.man$$/\.$(mansuffix)/'` ; \
|
|
echo $(INSTALL_DATA) $(srcdir)/$$man \
|
|
- $(install_prefix)$(man1dir)/$$instname ; \
|
|
+ $(DESTDIR)$(man1dir)/$$instname ; \
|
|
$(INSTALL_DATA) $(srcdir)/$$man \
|
|
- $(install_prefix)$(man1dir)/$$instname ; \
|
|
+ $(DESTDIR)$(man1dir)/$$instname ; \
|
|
done
|
|
|
|
uninstall-program:
|
|
@for program in $(EXES) $(SCRIPTS); do \
|
|
- echo rm -f $(install_prefix)$(bindir)/$$program ; \
|
|
- rm -f $(install_prefix)$(bindir)/$$program ; \
|
|
+ echo rm -f $(DESTDIR)$(bindir)/$$program ; \
|
|
+ rm -f $(DESTDIR)$(bindir)/$$program ; \
|
|
done
|
|
|
|
uninstall-ad:
|
|
- rm -f $(install_prefix)$(AD_DIR)/XScreenSaver
|
|
+ rm -f $(DESTDIR)$(AD_DIR)/XScreenSaver
|
|
|
|
uninstall-man:
|
|
@men="$(MEN)" ; \
|
|
for man in $$men; do \
|
|
instname=`echo $$man | sed 's/\.man$$/\.$(mansuffix)/'` ; \
|
|
- echo rm -f $(install_prefix)$(man1dir)/$$instname ; \
|
|
- rm -f $(install_prefix)$(man1dir)/$$instname ; \
|
|
+ echo rm -f $(DESTDIR)$(man1dir)/$$instname ; \
|
|
+ rm -f $(DESTDIR)$(man1dir)/$$instname ; \
|
|
done
|
|
|
|
install-pam:
|
|
@src="$(srcdir)/xscreensaver.pam" ; \
|
|
dest=`sed -n 's/.*PAM_SERVICE_NAME[ ]*"\([^"]*\)".*$$/\1/p' \
|
|
< ../config.h` ; \
|
|
- dir="$(install_prefix)$(PAM_DIR)" ; \
|
|
+ dir="$(DESTDIR)$(PAM_DIR)" ; \
|
|
conf="$(PAM_CONF)" ; \
|
|
\
|
|
if [ -d $$dir ] ; then \
|
|
@@ -416,33 +416,33 @@ install-gnome:: screensaver-properties.d
|
|
lost2="" ;\
|
|
if [ "$(GNOME_DATADIR)" != "" ]; then \
|
|
\
|
|
- if [ ! -d "$(install_prefix)$(GNOME_CCDIR)" ]; then \
|
|
- echo $(INSTALL_DIRS) "$(install_prefix)$(GNOME_CCDIR)" ;\
|
|
- $(INSTALL_DIRS) "$(install_prefix)$(GNOME_CCDIR)" ;\
|
|
+ if [ ! -d "$(DESTDIR)$(GNOME_CCDIR)" ]; then \
|
|
+ echo $(INSTALL_DIRS) "$(DESTDIR)$(GNOME_CCDIR)" ;\
|
|
+ $(INSTALL_DIRS) "$(DESTDIR)$(GNOME_CCDIR)" ;\
|
|
fi ;\
|
|
\
|
|
echo $(INSTALL_DATA) $(srcdir)/screensaver-properties.desktop \
|
|
- $(install_prefix)$(GNOME_CCDIR)/screensaver-properties.desktop ;\
|
|
+ $(DESTDIR)$(GNOME_CCDIR)/screensaver-properties.desktop ;\
|
|
\
|
|
if $(INSTALL_DATA) $(srcdir)/screensaver-properties.desktop \
|
|
- $(install_prefix)$(GNOME_CCDIR)/screensaver-properties.desktop ;\
|
|
+ $(DESTDIR)$(GNOME_CCDIR)/screensaver-properties.desktop ;\
|
|
then true ;\
|
|
else \
|
|
- lost1="$(install_prefix)$(GNOME_CCDIR)" ;\
|
|
+ lost1="$(DESTDIR)$(GNOME_CCDIR)" ;\
|
|
fi ;\
|
|
\
|
|
- if [ ! -d "$(install_prefix)$(GNOME_PANELDIR)" ]; then \
|
|
- echo $(INSTALL_DIRS) "$(install_prefix)$(GNOME_PANELDIR)" ;\
|
|
- $(INSTALL_DIRS) "$(install_prefix)$(GNOME_PANELDIR)" ;\
|
|
+ if [ ! -d "$(DESTDIR)$(GNOME_PANELDIR)" ]; then \
|
|
+ echo $(INSTALL_DIRS) "$(DESTDIR)$(GNOME_PANELDIR)" ;\
|
|
+ $(INSTALL_DIRS) "$(DESTDIR)$(GNOME_PANELDIR)" ;\
|
|
fi ;\
|
|
\
|
|
echo $(INSTALL_DATA) $(srcdir)/screensaver-properties.desktop \
|
|
$(GNOME_PANELDIR)/screensaver-properties.desktop ;\
|
|
if $(INSTALL_DATA) $(srcdir)/screensaver-properties.desktop \
|
|
- $(install_prefix)$(GNOME_PANELDIR)/screensaver-properties.desktop ;\
|
|
+ $(DESTDIR)$(GNOME_PANELDIR)/screensaver-properties.desktop ;\
|
|
then true ;\
|
|
else \
|
|
- lost2="$(install_prefix)$(GNOME_PANELDIR)" ;\
|
|
+ lost2="$(DESTDIR)$(GNOME_PANELDIR)" ;\
|
|
fi ;\
|
|
\
|
|
if [ "$$lost1" != "" -o "$$lost2" != "" ]; then \
|
|
@@ -470,22 +470,22 @@ install-gnome:: screensaver-properties.d
|
|
|
|
install-gnome:: screensaver-properties-capplet
|
|
@if [ "$(GNOME_DATADIR)" != "" ]; then \
|
|
- if [ ! -d "$(install_prefix)$(GNOME_BINDIR)" ]; then \
|
|
- echo $(INSTALL_DIRS) "$(install_prefix)$(GNOME_BINDIR)" ;\
|
|
- $(INSTALL_DIRS) "$(install_prefix)$(GNOME_BINDIR)" ;\
|
|
+ if [ ! -d "$(DESTDIR)$(GNOME_BINDIR)" ]; then \
|
|
+ echo $(INSTALL_DIRS) "$(DESTDIR)$(GNOME_BINDIR)" ;\
|
|
+ $(INSTALL_DIRS) "$(DESTDIR)$(GNOME_BINDIR)" ;\
|
|
fi ;\
|
|
program=screensaver-properties-capplet ;\
|
|
echo $(INSTALL_SCRIPT) $$program \
|
|
- $(install_prefix)$(GNOME_BINDIR)/$$program ;\
|
|
+ $(DESTDIR)$(GNOME_BINDIR)/$$program ;\
|
|
if $(INSTALL_SCRIPT) $$program \
|
|
- $(install_prefix)$(GNOME_BINDIR)/$$program ;\
|
|
+ $(DESTDIR)$(GNOME_BINDIR)/$$program ;\
|
|
then true ;\
|
|
else \
|
|
e=echo ; \
|
|
$$e "" ;\
|
|
$$e " ####################################################################";\
|
|
$$e " Warning: unable to install $$program into" ;\
|
|
- $$e " $(install_prefix)$(GNOME_BINDIR)/." ;\
|
|
+ $$e " $(DESTDIR)$(GNOME_BINDIR)/." ;\
|
|
$$e " Without this file, the Gnome session manager will not" ;\
|
|
$$e " launch xscreensaver properly at login time." ;\
|
|
$$e " ####################################################################";\
|
|
@@ -496,44 +496,44 @@ install-gnome:: screensaver-properties-c
|
|
|
|
install-gnome:: $(LOGO)
|
|
@if [ "$(GNOME_DATADIR)" != "" ]; then \
|
|
- if [ ! -d "$(install_prefix)$(GNOME_ICONDIR)" ]; then \
|
|
- echo $(INSTALL_DIRS) "$(install_prefix)$(GNOME_ICONDIR)" ;\
|
|
- $(INSTALL_DIRS) "$(install_prefix)$(GNOME_ICONDIR)" ;\
|
|
+ if [ ! -d "$(DESTDIR)$(GNOME_ICONDIR)" ]; then \
|
|
+ echo $(INSTALL_DIRS) "$(DESTDIR)$(GNOME_ICONDIR)" ;\
|
|
+ $(INSTALL_DIRS) "$(DESTDIR)$(GNOME_ICONDIR)" ;\
|
|
fi ;\
|
|
target=xscreensaver.xpm ;\
|
|
echo $(INSTALL_DATA) $(LOGO) \
|
|
- $(install_prefix)$(GNOME_ICONDIR)/$$target ;\
|
|
+ $(DESTDIR)$(GNOME_ICONDIR)/$$target ;\
|
|
$(INSTALL_DATA) $(LOGO) \
|
|
- $(install_prefix)$(GNOME_ICONDIR)/$$target ;\
|
|
+ $(DESTDIR)$(GNOME_ICONDIR)/$$target ;\
|
|
fi
|
|
|
|
uninstall-gnome::
|
|
@if [ "$(GNOME_DATADIR)" != "" ]; then \
|
|
f=screensaver-properties.desktop ;\
|
|
- echo rm -f $(install_prefix)$(GNOME_CCDIR)/$$f ;\
|
|
- rm -f $(install_prefix)$(GNOME_CCDIR)/$$f ;\
|
|
- echo rm -f $(install_prefix)$(GNOME_PANELDIR)/$$f ;\
|
|
- rm -f $(install_prefix)$(GNOME_PANELDIR)/$$f ;\
|
|
+ echo rm -f $(DESTDIR)$(GNOME_CCDIR)/$$f ;\
|
|
+ rm -f $(DESTDIR)$(GNOME_CCDIR)/$$f ;\
|
|
+ echo rm -f $(DESTDIR)$(GNOME_PANELDIR)/$$f ;\
|
|
+ rm -f $(DESTDIR)$(GNOME_PANELDIR)/$$f ;\
|
|
fi
|
|
|
|
uninstall-gnome::
|
|
@if [ "$(GNOME_DATADIR)" != "" ]; then \
|
|
program=screensaver-properties-capplet ;\
|
|
- echo rm -f $(install_prefix)$(bindir)/$$program ;\
|
|
- rm -f $(install_prefix)$(bindir)/$$program ;\
|
|
+ echo rm -f $(DESTDIR)$(bindir)/$$program ;\
|
|
+ rm -f $(DESTDIR)$(bindir)/$$program ;\
|
|
fi
|
|
|
|
uninstall-gnome::
|
|
@if [ "$(GNOME_DATADIR)" != "" ]; then \
|
|
target=xscreensaver.xpm ;\
|
|
- echo rm -f $(install_prefix)$(GNOME_ICONDIR)/$$target ;\
|
|
- rm -f $(install_prefix)$(GNOME_ICONDIR)/$$target ;\
|
|
+ echo rm -f $(DESTDIR)$(GNOME_ICONDIR)/$$target ;\
|
|
+ rm -f $(DESTDIR)$(GNOME_ICONDIR)/$$target ;\
|
|
fi
|
|
|
|
install-kde:
|
|
@src="$(srcdir)/xscreensaver.kss" ; \
|
|
if [ "$$KDEDIR" != "" ]; then \
|
|
- dir="$(install_prefix)$$KDEDIR/bin" ; \
|
|
+ dir="$(DESTDIR)$$KDEDIR/bin" ; \
|
|
dest="$$dir/xscreensaver.kss" ; \
|
|
echo $(INSTALL_SCRIPT) $$src $$dest ; \
|
|
if $(INSTALL_SCRIPT) $$src $$dest ; then \
|
|
@@ -543,10 +543,10 @@ install-kde:
|
|
$$e "" ;\
|
|
$$e " ####################################################################";\
|
|
$$e " Warning: unable to install $$dest" ;\
|
|
- if [ ! -d $(install_prefix)$$KDEDIR ]; then \
|
|
- $$e " $(install_prefix)$$KDEDIR (\$$KDEDIR) does not exist." ;\
|
|
- elif [ ! -d $(install_prefix)$$KDEDIR/bin ]; then \
|
|
- $$e " $(install_prefix)$$KDEDIR/bin (\$$KDEDIR/bin) does not exist.";\
|
|
+ if [ ! -d $(DESTDIR)$$KDEDIR ]; then \
|
|
+ $$e " $(DESTDIR)$$KDEDIR (\$$KDEDIR) does not exist." ;\
|
|
+ elif [ ! -d $(DESTDIR)$$KDEDIR/bin ]; then \
|
|
+ $$e " $(DESTDIR)$$KDEDIR/bin (\$$KDEDIR/bin) does not exist.";\
|
|
elif [ -f $$dest ]; then \
|
|
$$e " That file exists, and is unwritable." ;\
|
|
else \
|
|
@@ -560,7 +560,7 @@ install-kde:
|
|
|
|
uninstall-kde:
|
|
@if [ "$$KDEDIR" != "" ]; then \
|
|
- dest="$(install_prefix)$$KDEDIR/bin/xscreensaver.kss" ; \
|
|
+ dest="$(DESTDIR)$$KDEDIR/bin/xscreensaver.kss" ; \
|
|
echo rm -f $$dest ; \
|
|
rm -f $$dest ; \
|
|
fi
|