openbsd-ports/audio/exaile/patches/patch-plugins_Makefile
giovanni 4d9317dbaa Update to 0.3.1.1
the db for 0.3.1 is not backwards compatible with 0.3.0, please make a backup
before upgrade
6 regression tests out of 115 are still failing
ok stephan@
2010-04-21 07:02:42 +00:00

44 lines
1.3 KiB
Plaintext

$OpenBSD: patch-plugins_Makefile,v 1.3 2010/04/21 07:02:42 giovanni Exp $
--- plugins/Makefile.orig Tue Mar 16 02:52:51 2010
+++ plugins/Makefile Wed Mar 17 19:05:05 2010
@@ -1,7 +1,6 @@
-PREFIX ?= /usr/local
-PLUGINSDIR = /share/exaile/plugins/
+PLUGINSDIR = /share/exaile/data/plugins/
-INSTALL_PLUGINS = `python list.py`
+INSTALL_PLUGINS = `${MODPY_BIN} list.py`
# EXTRA_PLUGINS = ipconsole \
# helloworld
@@ -12,22 +11,22 @@ all: compile
dist:
mkdir -p ../dist/plugins/
- python dist_plugin.py --output ../dist/plugins/ $(DIST_PLUGINS)
+ ${MODPY_BIN} dist_plugin.py --output ../dist/plugins/ $(DIST_PLUGINS)
compile:
- python -m compileall -q .
- -python -O -m compileall -q .
+ ${MODPY_BIN} -m compileall -q .
+ -${MODPY_BIN} -O -m compileall -q .
install:
- mkdir -p $(DESTDIR)$(PREFIX)$(PLUGINSDIR)
+ mkdir -p $(DESTDIR)${TRUEPREFIX}$(PLUGINSDIR)
for plugin in $(INSTALL_PLUGINS); do \
- cp -r $${plugin} $(DESTDIR)$(PREFIX)$(PLUGINSDIR) ; \
+ cp -r $${plugin} $(DESTDIR)${TRUEPREFIX}$(PLUGINSDIR) ; \
done ;
extra_install:
- mkdir -p $(DESTDIR)$(PREFIX)$(PLUGINSDIR)
+ mkdir -p $(DESTDIR)${TRUEPREFIX}$(PLUGINSDIR)
for plugin in $(EXTRA_PLUGINS); do \
- cp -r $${plugin} $(DESTDIR)$(PREFIX)$(PLUGINSDIR) ; \
+ cp -r $${plugin} $(DESTDIR)${TRUEPREFIX}$(PLUGINSDIR) ; \
done ;
uninstall: