aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/014_nxcompshad_makefile-uninstall.full.patch
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2012-01-16 22:29:05 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2012-01-16 22:29:05 +0100
commite9241fe8c730aa7f0b95b15b34ed5c2bda18b5ad (patch)
tree2dabac3d6b000def9e33cf30137da4507c19951d /debian/patches/014_nxcompshad_makefile-uninstall.full.patch
parentd7ecf7214f0df5cd7957264be5249f4cd39f4e6e (diff)
downloadnx-libs-e9241fe8c730aa7f0b95b15b34ed5c2bda18b5ad.tar.gz
nx-libs-e9241fe8c730aa7f0b95b15b34ed5c2bda18b5ad.tar.bz2
nx-libs-e9241fe8c730aa7f0b95b15b34ed5c2bda18b5ad.zip
Reorganize patch names, to reflect patch inclusion into lite+full or full-only ,,NX (redistributed)'' tarball.
Diffstat (limited to 'debian/patches/014_nxcompshad_makefile-uninstall.full.patch')
-rw-r--r--debian/patches/014_nxcompshad_makefile-uninstall.full.patch61
1 files changed, 61 insertions, 0 deletions
diff --git a/debian/patches/014_nxcompshad_makefile-uninstall.full.patch b/debian/patches/014_nxcompshad_makefile-uninstall.full.patch
new file mode 100644
index 000000000..1a7888546
--- /dev/null
+++ b/debian/patches/014_nxcompshad_makefile-uninstall.full.patch
@@ -0,0 +1,61 @@
+Description: Add install and uninstall stanzas to nxcompshad/Makefile
+ Provide install and uninstall functionality in nxcompshad/Makefile.
+Forwarded: pending...
+Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
+Last-Update: 2011-12-31
+--- a/nxcompshad/Makefile.in
++++ b/nxcompshad/Makefile.in
+@@ -76,8 +76,13 @@
+ VPATH = @srcdir@
+
+ INSTALL = @INSTALL@
++INSTALL_DIR = $(INSTALL) -d -o root -g root -m 0755
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
+ INSTALL_DATA = @INSTALL_DATA@
++INSTALL_LINK = cp -av
++DESTDIR =
++RM_FILE = rm -f
++RM_DIR = rmdir -p --ignore-fail-on-non-empty
+
+ #
+ # This should be autodetected.
+@@ -178,12 +183,38 @@
+ fi
+ touch depend.status
+
+-install: install.bin install.man
++install: install.bin install.lib install.man
+
+ install.bin:
+
++install.lib: all
++ $(INSTALL_DIR) $(DESTDIR)$(prefix)/lib/nx
++ $(INSTALL_DIR) $(DESTDIR)$(prefix)/include/nx
++ $(INSTALL_DATA) libXcompshad.so.3.* $(DESTDIR)$(prefix)/lib/nx
++ $(INSTALL_LINK) libXcompshad.so.3 $(DESTDIR)$(prefix)/lib/nx
++ $(INSTALL_LINK) libXcompshad.so $(DESTDIR)$(prefix)/lib/nx
++ $(INSTALL_DATA) *.a $(DESTDIR)$(prefix)/lib/nx
++ $(INSTALL_DATA) *.h $(DESTDIR)$(prefix)/include/nx
++ echo "Running ldconfig tool, this may take a while..." && ldconfig || true
++
+ install.man:
+
++uninstall: uninstall.bin uninstall.lib uninstall.man
++
++uninstall.bin:
++
++uninstall.lib:
++ $(RM_FILE) $(DESTDIR)$(prefix)/lib/nx/libXcompshad.so.3.*
++ $(RM_FILE) $(DESTDIR)$(prefix)/lib/nx/libXcompshad.so.3
++ $(RM_FILE) $(DESTDIR)$(prefix)/lib/nx/libXcompshad.so
++ $(RM_FILE) $(DESTDIR)$(prefix)/lib/nx/libXcompshad.a
++ for header in *.h; do $(RM_FILE) $(DESTDIR)$(prefix)/include/nx/$$header; done
++ $(RM_DIR) $(DESTDIR)$(prefix)/lib/nx/
++ $(RM_DIR) $(DESTDIR)$(prefix)/include/nx/
++ echo "Running ldconfig tool, this may take a while..." && ldconfig || true
++
++uninstall.man:
++
+ clean:
+ -rm -f *~ *.o *.gch *.bak st?????? core core.* *.out.* *.exe.stackdump \
+ $(LIBFULL) $(LIBLOAD) $(LIBSHARED) $(LIBARCHIVE) $(LIBDLL) $(LIBDLLSTATIC) $(PROGRAM) $(PROGRAM).exe