$NetBSD: patch-ad,v 1.2 2010/06/25 20:21:47 joerg Exp $

--- Makefile.orig	2005-03-01 02:09:43.000000000 +0100
+++ Makefile	2005-03-01 02:10:42.000000000 +0100
@@ -1,6 +1,6 @@
 .PHONY: all install install-home uninstall uninstall-home clean
 
-INSTALL_DIR := /usr/lib/xmms/Input
+INSTALL_DIR := ${DESTDIR}`xmms-config --input-plugin-dir`
 INSTALL_DIR_HOME := ~/.xmms/Plugins/Input
 
 export PLUGIN_FILE := libwma.so
@@ -14,12 +14,9 @@
 	@cd ffmpeg-strip-wma; make; cd ..
 	@$(MAKE) --no-print-directory -f Makefile.inc
 	@strip $(PLUGIN_FILE)
-	@echo "The plug-in has been compiled. Run one of the following:"
-	@echo "make install      - for global (root) installation to $(INSTALL_DIR)"
-	@echo "make install-home - for installation to home directory $(INSTALL_DIR_HOME)"
 
 install: all
-	cp -f $(PLUGIN_FILE) $(INSTALL_DIR)
+	$(BSD_INSTALL_LIB) $(PLUGIN_FILE) $(INSTALL_DIR)
 	@echo "The plug-in has been installed."
 	@echo "Enjoy!"
 
