2010-04-21 03:02:42 -04:00
|
|
|
$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
|
2009-10-29 04:33:46 -04:00
|
|
|
@@ -1,7 +1,6 @@
|
2009-07-23 04:02:36 -04:00
|
|
|
-PREFIX ?= /usr/local
|
|
|
|
-PLUGINSDIR = /share/exaile/plugins/
|
|
|
|
+PLUGINSDIR = /share/exaile/data/plugins/
|
|
|
|
|
2009-10-29 04:33:46 -04:00
|
|
|
-INSTALL_PLUGINS = `python list.py`
|
|
|
|
+INSTALL_PLUGINS = `${MODPY_BIN} list.py`
|
|
|
|
|
|
|
|
# EXTRA_PLUGINS = ipconsole \
|
2010-04-21 03:02:42 -04:00
|
|
|
# helloworld
|
|
|
|
@@ -12,22 +11,22 @@ all: compile
|
2009-07-23 04:02:36 -04:00
|
|
|
|
|
|
|
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:
|
2010-04-21 03:02:42 -04:00
|
|
|
- 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:
|