summaryrefslogtreecommitdiff
path: root/audio/xmms-wma/patches/patch-ad
blob: 95cd9732ef26adf4018ceb5103c2217744ed1d46 (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
27
$NetBSD: patch-ad,v 1.3 2010/09/26 08:26:40 obache Exp $

--- Makefile.orig	2004-03-03 14:47:58.000000000 +0000
+++ Makefile
@@ -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,10 @@ all:
 	@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_DIR) $(INSTALL_DIR)
+	$(BSD_INSTALL_LIB) $(PLUGIN_FILE) $(INSTALL_DIR)
 	@echo "The plug-in has been installed."
 	@echo "Enjoy!"