changeset 2006:a56a26a5f233

Revised the plugindir logic.
author Eugene Paskevich <eugene@raptor.kiev.ua>
date Wed, 10 Oct 2007 01:40:13 +0300
parents e2904348f154
children 57ee341c180f
files buildsys.mk.in extra.mk.in src/CoreAudio/Makefile src/OSS/Makefile src/OSS4/Makefile src/aac/Makefile src/adplug/Makefile src/alac/Makefile src/alarm/Makefile src/alsa/Makefile src/amidi-plug/Makefile src/amidi-plug/backend-alsa/Makefile src/amidi-plug/backend-dummy/Makefile src/amidi-plug/backend-fluidsynth/Makefile src/aosd/Makefile src/arts/Makefile src/audiocompress/Makefile src/blur_scope/Makefile src/cdaudio-ng/Makefile src/console/Makefile src/cue/Makefile src/curl/Makefile src/dockalbumart/Makefile src/echo_plugin/Makefile src/esd/Makefile src/evdev-plug/Makefile src/filewriter/Makefile src/flacng/Makefile src/gnomeshortcuts/Makefile src/hotkey/Makefile src/jack/Makefile src/ladspa/Makefile src/lastfm/Makefile src/lirc/Makefile src/m3u/Makefile src/madplug/Makefile src/metronom/Makefile src/mms/Makefile src/modplug/Makefile src/mtp_up/Makefile src/musepack/Makefile src/neon/Makefile src/null/Makefile src/paranormal/Makefile src/pls/Makefile src/projectm-1.0/Makefile src/projectm/Makefile src/pulse_audio/Makefile src/rocklight/Makefile src/rootvis/Makefile src/scrobbler/Makefile src/sexypsf/Makefile src/sid/Makefile src/smb/Makefile src/sndstretch/Makefile src/song_change/Makefile src/spectrum/Makefile src/statusicon/Makefile src/stdio/Makefile src/stereo_plugin/Makefile src/sun/Makefile src/timidity/Makefile src/tonegen/Makefile src/tta/Makefile src/voice_removal/Makefile src/vorbis/Makefile src/vtx/Makefile src/wav/Makefile src/wavpack/Makefile src/wma/Makefile src/xspf/Makefile
diffstat 71 files changed, 147 insertions(+), 142 deletions(-) [+]
line wrap: on
line diff
--- a/buildsys.mk.in	Tue Oct 09 22:39:32 2007 +0300
+++ b/buildsys.mk.in	Wed Oct 10 01:40:13 2007 +0300
@@ -58,7 +58,7 @@
 exec_prefix = @exec_prefix@
 bindir = @bindir@
 libdir = @libdir@
-plugindir ?= ${PACKAGE}
+plugindir = @plugindir@
 datarootdir = @datarootdir@
 datadir = @datadir@
 includedir = @includedir@
@@ -220,7 +220,7 @@
 
 	for i in ${PLUGIN}; do \
 		${INSTALL_STATUS}; \
-		if ${MKDIR_P} ${DESTDIR}${libdir}/${plugindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/${plugindir}/$$i; then \
+		if ${MKDIR_P} ${DESTDIR}${plugindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${plugindir}/$$i; then \
 			${INSTALL_OK}; \
 		else \
 			${INSTALL_FAILED}; \
@@ -293,15 +293,15 @@
 	done
 
 	for i in ${PLUGIN}; do \
-		if test -f ${DESTDIR}${libdir}/${plugindir}/$$i; then \
-			if rm -f ${DESTDIR}${libdir}/${plugindir}/$$i; then \
+		if test -f ${DESTDIR}${plugindir}/$$i; then \
+			if rm -f ${DESTDIR}${plugindir}/$$i; then \
 				${DELETE_OK}; \
 			else \
 				${DELETE_FAILED}; \
 			fi \
 		fi \
 	done
-	-rmdir ${DESTDIR}${libdir}/${plugindir} >/dev/null 2>&1
+	-rmdir ${plugindir} >/dev/null 2>&1
 
 	for i in ${DATA}; do \
 		if test -f ${DESTDIR}${datadir}/${PACKAGE}/$$i; then \
--- a/extra.mk.in	Tue Oct 09 22:39:32 2007 +0300
+++ b/extra.mk.in	Wed Oct 10 01:40:13 2007 +0300
@@ -315,7 +315,6 @@
 mandir ?= @mandir@
 mkdir_p ?= @mkdir_p@
 oldincludedir ?= @oldincludedir@
-plugindir ?= @plugindir@
 pluginsubs ?= @pluginsubs@
 prefix ?= @prefix@
 program_transform_name ?= @program_transform_name@
--- a/src/CoreAudio/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/CoreAudio/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -8,11 +8,11 @@
        dbconvert.c	\
        mixer.c
 
-plugindir = audacious/${OUTPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${OUTPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} -I../../intl -I../.. ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS}
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/OSS/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/OSS/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -7,11 +7,11 @@
        init.c		\
        convert.c
 
-plugindir = audacious/${OUTPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${OUTPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${OSS_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I../../intl -I../.. -I.
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${OSS_LIBS} ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/OSS4/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/OSS4/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -6,11 +6,11 @@
        init.c		\
        convert.c
 
-plugindir = audacious/${OUTPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${OUTPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} -I/usr/lib/oss/include -I../../intl -I../.. ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS}
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${OSS_LIBS} ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/aac/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/aac/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -48,11 +48,11 @@
        mp4ff/mp4util.c		\
        mp4ff/mp4tagupdate.c
 
-plugindir = audacious/${INPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${INPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I../.. -I. -I./include -I./libfaad2 -I./mp4ff -DUSE_TAGGING=1
 CFLAGS += ${PLUGIN_CFLAGS} -fsigned-char
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} -lm
--- a/src/adplug/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/adplug/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -52,11 +52,11 @@
        core/adl.cxx		\
        core/jbm.cxx
 
-plugindir = audacious/${INPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${INPUT_PLUGIN_DIR}
+
 LD = ${CXX}
 
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${BINIO_CFLAGS} -I../../intl -I../.. -I./core -Dstricmp=strcasecmp
--- a/src/alac/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/alac/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -4,11 +4,11 @@
        plugin.c	\
        stream.c
 
-plugindir = audacious/${INPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${INPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ARCH_DEFINES} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/alarm/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/alarm/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -2,11 +2,11 @@
 SRCS = alarm.c	\
        interface.c
 
-plugindir = audacious/${GENERAL_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${GENERAL_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${BEEP_DEFINES} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/alsa/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/alsa/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -5,11 +5,11 @@
        configure.c	\
        init.c
 
-plugindir = audacious/${OUTPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${OUTPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ALSA_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} ${ALSA_LIBS}
--- a/src/amidi-plug/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/amidi-plug/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -9,8 +9,6 @@
                  amidi-plug-icon.xpm amidi-plug.logo.xpm \
                  amidi-plug.midiicon.xpm
 
-plugindir = audacious/$(INPUT_PLUGIN_DIR)
-
 SRCS = amidi-plug.c i_vfslayer.c i_midi.c i_backend.c \
           i_configure.c i_configure-ap.c i_configure-alsa.c \
           i_configure-fluidsynth.c i_configure-dummy.c \
@@ -25,6 +23,8 @@
 
 CFLAGS += $(PLUGIN_CFLAGS)
 CPPFLAGS += $(PLUGIN_CPPFLAGS) $(GTK_CFLAGS) $(GLIB_CFLAGS) $(PANGO_CFLAGS) $(GMODULE_CFLAGS) $(MOWGLI_CFLAGS) \
-	-DAMIDIPLUGBACKENDDIR=\"$(libdir)/audacious/$(AMIDIPLUG_BACKEND_DIR)\" -I../../intl -I../..
+	-DAMIDIPLUGBACKENDDIR=\"$(plugindir)/$(AMIDIPLUG_BACKEND_DIR)\" -I../../intl -I../..
 
 LIBS += $(GTK_LIBS) $(GLIB_LIBS) $(PANGO_LIBS) $(GMODULE_LIBS) -lpthread ./pcfg/libpcfg.a
+
+plugindir := $(plugindir)/$(INPUT_PLUGIN_DIR)
--- a/src/amidi-plug/backend-alsa/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/amidi-plug/backend-alsa/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,6 +1,4 @@
 PLUGIN = ap-alsa$(PLUGIN_SUFFIX)
-plugindir = audacious/$(AMIDIPLUG_BACKEND_DIR)
-
 noinst_HEADERS = b-alsa.h b-alsa-config.h backend-alsa-icon.xpm
 
 SRCS = b-alsa.c
@@ -8,6 +6,8 @@
 include ../../../buildsys.mk
 include ../../../extra.mk
 
+plugindir := $(plugindir)/$(AMIDIPLUG_BACKEND_DIR)
+
 CFLAGS += $(PLUGIN_CFLAGS) $(ALSA_CFLAGS)
 CPPFLAGS += $(PLUGIN_CPPFLAGS) $(ALSA_CFLAGS) $(GLIB_CFLAGS) -I../../..
 LIBS += $(ALSA_LIBS) ../pcfg/libpcfg.a
--- a/src/amidi-plug/backend-dummy/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/amidi-plug/backend-dummy/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,6 +1,4 @@
 PLUGIN = ap-dummy$(PLUGIN_SUFFIX)
-plugindir = audacious/$(AMIDIPLUG_BACKEND_DIR)
-
 noinst_HEADERS = b-dummy.h b-dummy-config.h backend-dummy-icon.xpm
 
 SRCS = b-dummy.c
@@ -8,6 +6,8 @@
 include ../../../buildsys.mk
 include ../../../extra.mk
 
+plugindir := $(plugindir)/$(AMIDIPLUG_BACKEND_DIR)
+
 CFLAGS += $(PLUGIN_CFLAGS)
 CPPFLAGS += $(PLUGIN_CPPFLAGS) $(GLIB_CFLAGS) -I../../..
 LIBS += ../pcfg/libpcfg.a
--- a/src/amidi-plug/backend-fluidsynth/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/amidi-plug/backend-fluidsynth/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,6 +1,4 @@
 PLUGIN = ap-fluidsynth$(PLUGIN_SUFFIX)
-plugindir = audacious/$(AMIDIPLUG_BACKEND_DIR)
-
 noinst_HEADERS = b-fluidsynth.h b-fluidsynth-config.h backend-fluidsynth-icon.xpm
 
 SRCS = b-fluidsynth.c
@@ -8,6 +6,8 @@
 include ../../../buildsys.mk
 include ../../../extra.mk
 
+plugindir := $(plugindir)/$(AMIDIPLUG_BACKEND_DIR)
+
 CFLAGS += $(PLUGIN_CFLAGS) $(FLUIDSYNTH_CFLAGS)
 CPPFLAGS += $(PLUGIN_CPPFLAGS) $(FLUIDSYNTH_CFLAGS) $(GLIB_CFLAGS) -I../../..
 LIBS += $(FLUIDSYNTH_LIBS) ../pcfg/libpcfg.a
--- a/src/aosd/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/aosd/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -8,11 +8,11 @@
        ghosd.c		\
        ghosd-main.c
 
-plugindir = audacious/${GENERAL_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${GENERAL_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${CAIRO_CFLAGS} ${PANGOCAIRO_CFLAGS} ${XRENDER_CFLAGS} ${XCOMPOSITE_CFLAGS} -I../../intl -I../.. -I..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} ${CAIRO_LIBS} ${PANGOCAIRO_LIBS} ${XRENDER_LIBS} ${XCOMPOSITE_LIBS}
--- a/src/arts/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/arts/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -6,11 +6,11 @@
        audio.c		\
        convert.c
 
-plugindir = audacious/${OUTPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${OUTPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ARTSC_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} ${ARTSC_LIBS} -lpthread
--- a/src/audiocompress/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/audiocompress/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -2,11 +2,11 @@
 SRCS = compress.c	\
        audacious-glue.c
 
-plugindir = audacious/${EFFECT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${EFFECT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/blur_scope/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/blur_scope/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -7,6 +7,8 @@
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${VISUALIZATION_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/cdaudio-ng/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/cdaudio-ng/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -2,11 +2,11 @@
 SRCS = cdaudio-ng.c	\
        configure.c
 
-plugindir = audacious/${INPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${INPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${CDIO_CFLAGS} ${CDDB_CFLAGS} -I../.. ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ARCH_DEFINES}
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} ${CDIO_LIBS} ${CDDB_LIBS}
--- a/src/console/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/console/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -50,11 +50,11 @@
        Ym2612_Emu.cxx          \
        Zlib_Inflater.cxx
 
-plugindir = audacious/${INPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${INPUT_PLUGIN_DIR}
+
 LD = ${CXX}
 
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ARCH_DEFINES} -I../../intl -I../..
--- a/src/cue/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/cue/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,11 +1,11 @@
 PLUGIN = cuesheet${PLUGIN_SUFFIX}
 SRCS = cuesheet.c
 
-plugindir = audacious/${INPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${INPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ARCH_DEFINES} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} ${DBUS_LIB}
--- a/src/curl/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/curl/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,11 +1,11 @@
 PLUGIN = curl${PLUGIN_SUFFIX}
 SRCS = curl.c
 
-plugindir = audacious/${TRANSPORT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${TRANSPORT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ARCH_DEFINES} ${XML_CPPFLAGS} ${CURL_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} ${XML_LIBS} ${CURL_LIBS}
--- a/src/dockalbumart/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/dockalbumart/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,11 +1,11 @@
 PLUGIN = dockalbumart${PLUGIN_SUFFIX}
 SRCS = dockalbumart.c
 
-plugindir = audacious/${GENERAL_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${GENERAL_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${BEEP_DEFINES} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/echo_plugin/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/echo_plugin/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -2,11 +2,11 @@
 SRCS = echo.c	\
        gui.c
 
-plugindir = audacious/${EFFECT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${EFFECT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/esd/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/esd/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -6,11 +6,11 @@
        audio.c		\
        init.c
 
-plugindir = audacious/${OUTPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${OUTPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ESD_CFLAGS} -I../../intl -I../.. -I..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} ${ESD_LIBS} ${OSS_LIBS}
--- a/src/evdev-plug/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/evdev-plug/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -4,11 +4,11 @@
        ed_internals.c		\
        ed_ui.c
 
-plugindir = audacious/${GENERAL_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${GENERAL_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${BEEP_DEFINES} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/filewriter/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/filewriter/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -5,11 +5,11 @@
        vorbis.c		\
        flac.c
 
-plugindir = audacious/${OUTPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${OUTPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${GLIB_CFLAGS} ${GTK_CFLAGS} ${PANGO_CFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${FILEWRITER_LIBS}
--- a/src/flacng/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/flacng/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -4,11 +4,11 @@
        seekable_stream_callbacks.c	\
        flac_compat112.c
 
-plugindir = audacious/${INPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${INPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I../../intl -I../.. ${LIBFLAC_CFLAGS}
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} ${LIBFLAC_LIBS}
--- a/src/gnomeshortcuts/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/gnomeshortcuts/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,11 +1,11 @@
 PLUGIN = gnomeshortcuts${PLUGIN_SUFFIX}
 SRCS = gnomeshortcuts.c
 
-plugindir = audacious/${GENERAL_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${GENERAL_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${GTK_CFLAGS} ${MOWGLI_CFLAGS} ${GLIB_CFLAGS} ${DBUS_CFLAGS} -I../../intl -I../.. -I..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GLIB_LIBS} ${DBUS_LIBS}
--- a/src/hotkey/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/hotkey/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,11 +1,12 @@
 PLUGIN = hotkey${PLUGIN_SUFFIX}
-plugindir = audacious/${GENERAL_PLUGIN_DIR}
 
 SRCS = plugin.c
 
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${GENERAL_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${GTK_CFLAGS} ${MOWGLI_CFLAGS} ${GLIB_CFLAGS} ${DBUS_CFLAGS} -I../../intl -I../.. -I..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GLIB_LIBS} ${DBUS_LIBS}
--- a/src/jack/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/jack/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -3,11 +3,11 @@
        configure.c	\
        bio2jack.c
 
-plugindir = audacious/${OUTPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${OUTPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${SAMPLERATE_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} ${JACK_LIBS} ${SAMPLERATE_LIBS} -pthread
--- a/src/ladspa/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/ladspa/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,11 +1,11 @@
 PLUGIN = ladspa${PLUGIN_SUFFIX}
 SRCS = ladspa.c
 
-plugindir = audacious/${EFFECT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${EFFECT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/lastfm/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/lastfm/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,11 +1,12 @@
 PLUGIN = lastfm${PLUGIN_SUFFIX}
-plugindir = audacious/${TRANSPORT_PLUGIN_DIR}
 
 SRCS = lastfm.c
 
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${TRANSPORT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ARCH_DEFINES} ${XML_CPPFLAGS} ${CURL_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} ${XML_LIBS} ${CURL_LIBS}
--- a/src/lirc/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/lirc/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,11 +1,12 @@
 PLUGIN = lirc$(PLUGIN_SUFFIX)
 
-plugindir = audacious/$(GENERAL_PLUGIN_DIR)
 SRCS = about.c lirc.c
 
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/$(GENERAL_PLUGIN_DIR)
+
 LIBS += -llirc_client $(GTK_LIBS) $(GLIB_LIBS) $(PANGO_LIBS)
 CFLAGS += $(PLUGIN_CFLAGS)
 CPPFLAGS += $(PLUGIN_CPPFLAGS) $(GTK_CFLAGS) $(MOWGLI_CFLAGS) $(PANGO_CFLAGS) $(DBUS_CFLAGS) -I../../intl -I../..
--- a/src/m3u/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/m3u/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,11 +1,12 @@
 PLUGIN = m3u${PLUGIN_SUFFIX}
+
 SRCS = m3u.c
 
-plugindir = audacious/${CONTAINER_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${CONTAINER_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ARCH_DEFINES} ${XML_CPPFLAGS} -I../../intl -I../.. -Wall
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} ${XML_LIBS}
--- a/src/madplug/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/madplug/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -8,11 +8,11 @@
        plugin.c		\
        xing.c
 
-plugindir = audacious/${INPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${INPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${MOWGLI_CFLAGS} ${ARCH_DEFINES} ${SIMD_CFLAGS} -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += -L${libdir} -laudid3tag -lmad ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/metronom/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/metronom/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,11 +1,12 @@
 PLUGIN = metronom${PLUGIN_SUFFIX}
+
 SRCS = metronom.c
 
-plugindir = audacious/${INPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${INPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ARCH_DEFINES} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/mms/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/mms/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,11 +1,12 @@
 PLUGIN = mms${PLUGIN_SUFFIX}
+
 SRCS = mms.c
 
-plugindir = audacious/${TRANSPORT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${TRANSPORT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ARCH_DEFINES} ${XML_CPPFLAGS} ${MMS_CFLAGS} -I../../intl -I../.. -Wall
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} ${XML_LIBS} ${MMS_LIBS}
--- a/src/modplug/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/modplug/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -45,11 +45,11 @@
        gui/interface.cxx	\
        gui/callbacks.cxx
 
-plugindir = audacious/${INPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${INPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I.. -I../.. -I../../intl
 CFLAGS += ${PLUGIN_CFLAGS}
 CXXFLAGS += ${PLUGIN_CFLAGS}
--- a/src/mtp_up/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/mtp_up/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,11 +1,11 @@
 PLUGIN = mtp_up${PLUGIN_SUFFIX}
 SRCS = mtp.c filetype.c
 
-plugindir = audacious/${GENERAL_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${GENERAL_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${BEEP_DEFINES} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I../../intl -I../.. ${MTP_CFLAGS}
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} ${MTP_LIBS}
--- a/src/musepack/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/musepack/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,11 +1,11 @@
 PLUGIN = musepack${PLUGIN_SUFFIX}
 SRCS = libmpc.cxx
 
-plugindir = audacious/${INPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${INPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${TAGLIB_CFLAGS} -I../../intl -I../..
 CXXFLAGS += ${PLUGIN_CFLAGS}
 LIBS += -lmpcdec ${TAGLIB_LIBS} ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/neon/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/neon/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -2,11 +2,11 @@
 SRCS = neon.c	\
        rb.c
 
-plugindir = audacious/${TRANSPORT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${TRANSPORT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ARCH_DEFINES} ${XML_CPPFLAGS} ${NEON_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} ${XML_LIBS} ${NEON_LIBS}
--- a/src/null/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/null/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,11 +1,11 @@
 PLUGIN = null${PLUGIN_SUFFIX}
 SRCS = null.c
 
-plugindir = audacious/${OUTPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${OUTPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${DBUS_CFLAGS} ${MOWGLI_CFLAGS} -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/paranormal/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/paranormal/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -22,11 +22,11 @@
        libcalc/parser.c		\
        libcalc/storage.c
 
-plugindir = audacious/${VISUALIZATION_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${VISUALIZATION_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ARCH_DEFINES} ${XML_CPPFLAGS} ${SDL_CFLAGS} -I../../intl -I../.. -I.
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} ${XML_LIBS} ${SDL_LIBS}
--- a/src/pls/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/pls/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,11 +1,11 @@
 PLUGIN = pls${PLUGIN_SUFFIX}
 SRCS = pls.c
 
-plugindir = audacious/${CONTAINER_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${CONTAINER_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ARCH_DEFINES} ${XML_CPPFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} ${XML_LIBS}
--- a/src/projectm-1.0/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/projectm-1.0/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -4,11 +4,11 @@
        ConfigFile.cxx   \
        main_visplugin.c
 
-plugindir = audacious/${VISUALIZATION_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${VISUALIZATION_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ARCH_DEFINES} ${XML_CPPFLAGS} ${SDL_CFLAGS} ${LIBPROJECTM1_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 CXXFLAGS += ${PLUGIN_CFLAGS}
--- a/src/projectm/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/projectm/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -2,11 +2,11 @@
 SRCS = main.c		\
        video_init.c
 
-plugindir = audacious/${VISUALIZATION_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${VISUALIZATION_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ARCH_DEFINES} ${XML_CPPFLAGS} ${SDL_CFLAGS} ${LIBPROJECTM_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} ${SDL_LIBS} ${LIBPROJECTM_LIBS} -lprojectM
--- a/src/pulse_audio/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/pulse_audio/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,11 +1,11 @@
 PLUGIN = pulse_audio${PLUGIN_SUFFIX}
 SRCS = pulse_audio.c
 
-plugindir = audacious/${OUTPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${OUTPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${BEEP_DEFINES} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += -lpulse ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/rocklight/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/rocklight/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -3,11 +3,11 @@
        sysled.c		\
        thinklight.c
 
-plugindir = audacious/${VISUALIZATION_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${VISUALIZATION_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/rootvis/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/rootvis/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -6,11 +6,11 @@
        getroot.c			\
        rootvis.c
 
-plugindir = audacious/${VISUALIZATION_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${VISUALIZATION_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} -I. ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${IMLIB2_CFLAGS}
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} ${IMLIB2_LIBS}
--- a/src/scrobbler/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/scrobbler/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -10,13 +10,13 @@
 DATA = images/audioscrobbler.png	\
        images/audioscrobbler_badge.png
 
-plugindir = audacious/${GENERAL_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
 PACKAGE = audacious
 
+plugindir := $(plugindir)/${GENERAL_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${BEEP_DEFINES} ${CURL_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} ${CURL_LIBS} ${MUSICBRAINZ_LIBS}
--- a/src/sexypsf/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/sexypsf/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -12,11 +12,11 @@
        spu/spu.c	\
        plugin.c
 
-plugindir = audacious/${INPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${INPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I../../intl -I../.. -Ispu/ -I.
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += -lz ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/sid/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/sid/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -17,11 +17,11 @@
        xs_slsup.c	\
        xmms-sid.c
 
-plugindir = audacious/${INPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${INPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} -D_REENTRANT -I../../intl -I../.. -DAUDACIOUS_PLUGIN ${MOWGLI_CFLAGS} ${SIDPLAY1_INCLUDES} ${SIDPLAY2_INCLUDES} ${BUILDERS_INCLUDES} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS}
 CFLAGS += ${PLUGIN_CFLAGS}
 CXXFLAGS += ${PLUGIN_CFLAGS}
--- a/src/smb/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/smb/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,11 +1,11 @@
 PLUGIN = smb${PLUGIN_SUFFIX}
 SRCS = smb.c
 
-plugindir = audacious/${TRANSPORT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${TRANSPORT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ARCH_DEFINES} ${XML_CPPFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} ${XML_LIBS} -lsmbclient
--- a/src/sndstretch/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/sndstretch/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,10 +1,10 @@
 PLUGIN = sndstretch${PLUGIN_SUFFIX}
 SRCS = sndstretch_xmms.c sndstretch.c
 
-plugindir = audacious/${EFFECT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${EFFECT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${MOWGLI_CFLAGS} ${PANGO_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
--- a/src/song_change/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/song_change/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,11 +1,11 @@
 PLUGIN = song_change${PLUGIN_SUFFIX}
 SRCS = song_change.c
 
-plugindir = audacious/${GENERAL_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${GENERAL_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${BEEP_DEFINES} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/spectrum/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/spectrum/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,11 +1,11 @@
 PLUGIN = spectrum${PLUGIN_SUFFIX}
 SRCS = spectrum.c
 
-plugindir = audacious/${VISUALIZATION_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${VISUALIZATION_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/statusicon/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/statusicon/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -4,11 +4,11 @@
        si_cfg.c			\
        si_ui.c
 
-plugindir = audacious/${GENERAL_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${GENERAL_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${BEEP_DEFINES} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/stdio/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/stdio/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,11 +1,11 @@
 PLUGIN = stdio${PLUGIN_SUFFIX}
 SRCS = stdio.c
 
-plugindir = audacious/${TRANSPORT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${TRANSPORT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ARCH_DEFINES} ${XML_CPPFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} ${XML_LIBS}
--- a/src/stereo_plugin/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/stereo_plugin/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,11 +1,11 @@
 PLUGIN = stereo${PLUGIN_SUFFIX}
 SRCS = stereo.c
 
-plugindir = audacious/${EFFECT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${EFFECT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/sun/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/sun/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,3 +1,4 @@
+PLUGIN = sun$(PLUGIN_SUFFIX)
 SRCS =	sun.c	    \
 	audio.c	    \
 	convert.c   \
@@ -5,13 +6,11 @@
 	configure.c \
 	about.c
 
-PLUGIN = sun$(PLUGIN_SUFFIX)
-plugindir = audacious/$(OUTPUT_PLUGIN_DIR)
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/$(OUTPUT_PLUGIN_DIR)
+
 CFLAGS += $(PLUGIN_CFLAGS)
 CPPFLAGS += $(PLUGIN_CPPFLAGS) $(MOWGLI_CFLAGS) $(DBUS_CFLAGS) $(GTK_CFLAGS) $(GLIB_CFLAGS) $(PANGO_CFLAGS) -I../../intl -I../..
 LIBS += $(GTK_LIBS) $(GLIB_LIBS) $(PANGO_LIBS)
-
--- a/src/timidity/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/timidity/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -14,11 +14,11 @@
        libtimidity/tables.c		\
        libtimidity/timidity.c
 
-plugindir = audacious/${INPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${INPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I../.. -I./libtimidity
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/tonegen/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/tonegen/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,11 +1,10 @@
 PLUGIN = tonegen${PLUGIN_SUFFIX}
 SRCS = tonegen.c
 
-plugindir = audacious/${INPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${INPUT_PLUGIN_DIR}
 
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I../..
 
--- a/src/tta/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/tta/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -2,11 +2,11 @@
 SRCS = libtta.c	\
        ttadec.c
 
-plugindir = audacious/${INPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${INPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += -L${libdir} -laudid3tag ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/voice_removal/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/voice_removal/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,11 +1,11 @@
 PLUGIN = voice_removal${PLUGIN_SUFFIX}
 SRCS = voice_removal.c
 
-plugindir = audacious/${EFFECT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${EFFECT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/vorbis/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/vorbis/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -4,11 +4,11 @@
        vcedit.c		\
        vorbis.c
 
-plugindir = audacious/${INPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${INPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${OGG_VORBIS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${OGG_VORBIS_LIBS} ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/vtx/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/vtx/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -7,11 +7,11 @@
        vtx.c		\
        vtxfile.c
 
-plugindir = audacious/${INPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${INPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ARCH_DEFINES} -I../../intl -I../.. -I.
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/wav/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/wav/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -3,9 +3,9 @@
 PLUGIN = wav${PLUGIN_SUFFIX}
 SRCS = wav${WAV_SNDFILE}.c
 
-plugindir = audacious/${INPUT_PLUGIN_DIR}
+include ../../buildsys.mk
 
-include ../../buildsys.mk
+plugindir := $(plugindir)/${INPUT_PLUGIN_DIR}
 
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${DBUS_CFLAGS} -I../../intl -I../.. 
 CFLAGS += ${PLUGIN_CFLAGS}
--- a/src/wavpack/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/wavpack/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -3,11 +3,11 @@
        ui.cxx		\
        libwavpack.cxx
 
-plugindir = audacious/${INPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${INPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${DBUS_CFLAGS} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${WAVPACK_CFLAGS} -I../../intl -I../..
 CXXFLAGS += ${PLUGIN_CFLAGS}
 LDFLAGS += -lstdc++
--- a/src/wma/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/wma/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -20,11 +20,11 @@
        libffwma/mem.c		\
        libffwma/uri.c
 
-plugindir = audacious/${INPUT_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${INPUT_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${SIMD_CFLAGS} -I../.. -I./libffwma -std=c99 ${GCC42_CFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/xspf/Makefile	Tue Oct 09 22:39:32 2007 +0300
+++ b/src/xspf/Makefile	Wed Oct 10 01:40:13 2007 +0300
@@ -1,11 +1,11 @@
 PLUGIN = xspf${PLUGIN_SUFFIX}
 SRCS = xspf.c
 
-plugindir = audacious/${CONTAINER_PLUGIN_DIR}
-
 include ../../buildsys.mk
 include ../../extra.mk
 
+plugindir := $(plugindir)/${CONTAINER_PLUGIN_DIR}
+
 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ARCH_DEFINES} ${XML_CPPFLAGS} -I../../intl -I../..
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} ${XML_LIBS}