LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File electricsheep-Makefile.patch of Package electricsheep (Project home:fabio_s:need_ffmpeg)

diff --git a/Makefile.am.orig b/Makefile.am
index 66c036f..76922c6 100644
--- a/Makefile.am.orig
+++ b/Makefile.am
@@ -11,6 +11,7 @@ docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
 sharedir = $(prefix)/share
 
 gnome_screensaver_dir = /usr/lib/gnome-screensaver
+kde_screensaver_dir = /usr/share/kde4/services/ScreenSavers
 
 # add documentation files here
 doc_DATA = AUTHORS README NEWS ChangeLog Runtime/Instructions.rtf Runtime/License.rtf
@@ -52,6 +53,7 @@ installdirs:
 	mkdir -p $(DESTDIR)$(sharedir)/pixmaps
 	mkdir -p $(DESTDIR)$(sharedir)/electricsheep/icons
 	mkdir -p $(DESTDIR)$(gnome_screensaver_dir)
+	mkdir -p $(DESTDIR)$(kde_screensaver_dir)
 
 install-data-local:
 	mkdir -p $(DESTDIR)$(bindir)
@@ -60,6 +62,7 @@ install-data-local:
 	mkdir -p $(DESTDIR)$(sharedir)/pixmaps
 	mkdir -p $(DESTDIR)$(sharedir)/electricsheep/icons
 	mkdir -p $(DESTDIR)$(gnome_screensaver_dir)
+	mkdir -p $(DESTDIR)$(kde_screensaver_dir)
 	cp -rf $(srcdir)/Runtime/Scripts $(DESTDIR)$(sharedir)/electricsheep
 	mkdir -p $(DESTDIR)$(sharedir)/applications/
 	cp -f $(srcdir)/menu-entries/ElectricSheep.desktop $(DESTDIR)$(sharedir)/applications/
@@ -76,6 +79,8 @@ install-data-local:
 	cp -f $(srcdir)/menu-entries/electricsheep-saver.desktop $(DESTDIR)/usr/share/applications/screensavers/electricsheep.desktop
 	mkdir -p $(DESTDIR)$(gnome_screensaver_dir)
 	cp -f $(srcdir)/electricsheep-saver-gnome $(DESTDIR)$(gnome_screensaver_dir)/electricsheep-saver && chmod a+rx $(DESTDIR)$(gnome_screensaver_dir)/electricsheep-saver
+	mkdir -p $(DESTDIR)$(kde_screensaver_dir)
+	cp -f $(srcdir)/menu-entries/ElectricSheep.desktop.kde $(DESTDIR)$(kde_screensaver_dir)/ElectricSheep.desktop
 
 # install-exec stuff goes here
 install-exec-local:
@@ -92,6 +97,7 @@ uninstall-local:
 	rm -rf $(DESTDIR)$(sharedir)/applications/ElectricSheep.desktop
 	rm -rf $(DESTDIR)/usr/share/applications/screensavers/electricsheep.desktop
 	rm -rf $(DESTDIR)$(gnome_screensaver_dir)/electricsheep-saver
+	rm -rf $(DESTDIR)$(kde_screensaver_dir)/ElectricSheep.desktop
 
 # anything to be cleaned up for distro ?
 DISTCLEANFILES =