openbsd-ports/audio/exaile/patches/patch-plugins_Makefile

34 lines
1.1 KiB
Plaintext
Raw Normal View History

$OpenBSD: patch-plugins_Makefile,v 1.5 2012/10/18 08:15:41 giovanni Exp $
--- plugins/Makefile.orig Thu Aug 30 23:58:21 2012
+++ plugins/Makefile Wed Sep 26 11:32:00 2012
@@ -1,6 +1,6 @@
-PYTHON2_CMD ?= python2
-PREFIX ?= /usr/local
-PLUGINSDIR = /share/exaile/plugins/
+PYTHON2_CMD ?= ${MODPY_BIN}
+PREFIX ?= ${TRUEPREFIX}
+PLUGINSDIR = /share/exaile/data/plugins/
INSTALL_PLUGINS = `${PYTHON2_CMD} list.py main`
EXTRA_PLUGINS = `${PYTHON2_CMD} list.py extra`
@@ -18,15 +18,15 @@ compile:
-${PYTHON2_CMD} -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: