aboutsummaryrefslogtreecommitdiff
path: root/tools/EventClients
diff options
context:
space:
mode:
authoranssih <anssih@svn>2010-06-08 17:18:18 +0000
committeranssih <anssih@svn>2010-06-08 17:18:18 +0000
commit88b7293df23613bac453760848ba039d053964d8 (patch)
tree6e06c14fa0bd83996f11da331873bb168475d502 /tools/EventClients
parentc985ae28c54bf4ce2d23eded1aaed2e09f6f9d76 (diff)
fixed: do not hardcode python site-packages directory
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@30975 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools/EventClients')
-rw-r--r--tools/EventClients/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/EventClients/Makefile b/tools/EventClients/Makefile
index 38760d3970..d0212f083e 100644
--- a/tools/EventClients/Makefile
+++ b/tools/EventClients/Makefile
@@ -1,5 +1,6 @@
WII_EXTRA_OPTS=
CLEAN_FILES=Clients/WiiRemote/WiiRemote
+PYTHON_SITEDIR := $(shell python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
all: install
@@ -20,10 +21,10 @@ install: Clients/WiiRemote/WiiRemote
cp -a Clients/PS3\ BD\ Remote/ps3_remote.py $(DESTDIR)$(bindir)/xbmc-ps3remote
#cp -a Clients/PS3\ Sixaxis\ Controller/ps3d.py $(DESTDIR)$(bindir)/xbmc-ps3d
cp -a Clients/XBMC\ Send/xbmc-send.py $(DESTDIR)$(bindir)/xbmc-send
- mkdir -p $(DESTDIR)$(libdir)/python2.5/site-packages/xbmc
- echo 'ICON_PATH="$(datarootdir)/pixmaps/xbmc/"' > $(DESTDIR)$(libdir)/python2.5/site-packages/xbmc/defs.py
- cp -a lib/python/* $(DESTDIR)$(libdir)/python2.5/site-packages/xbmc/
- cp -a Clients/PS3\ BD\ Remote/ps3_remote.py $(DESTDIR)$(libdir)/python2.5/site-packages/xbmc/
+ mkdir -p $(DESTDIR)$(PYTHON_SITEDIR)/xbmc
+ echo 'ICON_PATH="$(datarootdir)/pixmaps/xbmc/"' > $(DESTDIR)$(PYTHON_SITEDIR)/xbmc/defs.py
+ cp -a lib/python/* $(DESTDIR)$(PYTHON_SITEDIR)/xbmc/
+ cp -a Clients/PS3\ BD\ Remote/ps3_remote.py $(DESTDIR)$(PYTHON_SITEDIR)/xbmc/
mkdir -p $(DESTDIR)$(includedir)/xbmc
cp -a lib/c++/* $(DESTDIR)$(includedir)/xbmc/
mkdir -p $(DESTDIR)$(datarootdir)/pixmaps/xbmc