2013-09-26 17:14:40 +02:00

28 lines
951 B
Plaintext

$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!"