summaryrefslogtreecommitdiff
path: root/audio/xmms-wma/patches/patch-ad
blob: e0da8752175cdcd9d79031b76c3d8ee9023e0c9f (plain)
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
$NetBSD: patch-ad,v 1.1.1.1 2005/03/01 01:17:01 xtraeme 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 := `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!"