summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-12-17 12:40:30 -0800
committerMatt Turner <[email protected]>2014-12-17 17:54:33 -0800
commited1ac1d57473335508e503d786ff1443c56f0bac (patch)
tree7abed10cb44fc7e7fab1ccea4cd70a1c5d2c495d
parentadc2922f9c9f0d9a74e06fb85d20a5bef54e0501 (diff)
targets/vdpau: Add uninstall hooks to handle megadriver hardlinks.
-rw-r--r--src/gallium/targets/vdpau/Makefile.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/targets/vdpau/Makefile.am b/src/gallium/targets/vdpau/Makefile.am
index 6ac4905de0a..32b34011b13 100644
--- a/src/gallium/targets/vdpau/Makefile.am
+++ b/src/gallium/targets/vdpau/Makefile.am
@@ -119,3 +119,8 @@ install-data-hook:
$${dest_dir}/$${k}; \
done; \
$(RM) -f $${dest_dir}/libvdpau_gallium.*
+
+uninstall-hook:
+ for i in $(TARGET_DRIVERS); do \
+ $(RM) $(DESTDIR)$(vdpaudir)/libvdpau_$${i}.so{,.$(VDPAU_MAJOR){,.$(VDPAU_MINOR){,.0}}}; \
+ done;