File: xscreensaver-datadir.patch

package info (click to toggle)
goban 1.1-6
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 4,820 kB
  • sloc: ansic: 36,301; sh: 418; xml: 26; makefile: 25
file content (34 lines) | stat: -rw-r--r-- 1,301 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Subject: Provide path to the xscreensaver config directory.
From: Al Nikolov <clown@debian.org>
Index: goban-1.1/Makefile.am
===================================================================
--- goban-1.1.orig/Makefile.am	2010-11-04 19:50:06.000000000 +0000
+++ goban-1.1/Makefile.am	2010-11-04 20:08:26.000000000 +0000
@@ -4,7 +4,12 @@
 SCREENSAVER_DATADIR = $(GNOME_DATADIR)/control-center/screensavers
 
 install-data-local:
+if XSCREENSAVER
+	$(INSTALL) -d @with_xscreensaver@
+	$(INSTALL) goban.xml @with_xscreensaver@
+else
 	test -e $(SCREENSAVER_DATADIR) && $(INSTALL) goban.xml $(SCREENSAVER_DATADIR)
+endif
 	$(INSTALL) -d $(pkgdatadir)
 	$(INSTALL) games/* $(pkgdatadir)
 
Index: goban-1.1/configure.in
===================================================================
--- goban-1.1.orig/configure.in	2010-11-04 19:50:06.000000000 +0000
+++ goban-1.1/configure.in	2010-11-04 20:12:43.000000000 +0000
@@ -12,6 +12,10 @@
 GNOME_DATADIR="$GNOME_DATADIR/share"
 AC_SUBST(GNOME_DATADIR)
 
+AC_ARG_WITH([xscreensaver], [AS_HELP_STRING([--with-xscreensaver=DIR], [Specify the target directory to install the xscreensaver config])])
+AM_CONDITIONAL(XSCREENSAVER, test x$with_xscreensaver != x)
+AC_SUBST(with_xscreensaver)
+
 AC_OUTPUT(src/Makefile)
 AC_OUTPUT(goban.spec)
 AC_OUTPUT(Makefile)