aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCory Fields <foss@atlastechnologiesinc.com>2012-10-15 13:26:20 -0700
committerCory Fields <foss@atlastechnologiesinc.com>2012-10-15 13:26:20 -0700
commit8fa9aef3887a6e88c7351cf710fad3678044c5cb (patch)
tree6af05cdbf22ab1431ff31e25b53581bbb30787f2 /tools
parente284c4bb44e59e19b97818f2fe19af0a8d3081fc (diff)
parentc2956cf19dbc960c001f1f6779af9de5c017916e (diff)
Merge pull request #1615 from theuni/android-pvr
Android PVR Depends
Diffstat (limited to 'tools')
-rw-r--r--tools/android/depends/Makefile.in2
-rw-r--r--tools/android/depends/xbmc-pvr-addons/Makefile50
-rw-r--r--tools/android/packaging/Makefile1
3 files changed, 52 insertions, 1 deletions
diff --git a/tools/android/depends/Makefile.in b/tools/android/depends/Makefile.in
index 3ccf49f53b..26b5f818f9 100644
--- a/tools/android/depends/Makefile.in
+++ b/tools/android/depends/Makefile.in
@@ -13,7 +13,7 @@ SUBDIRS = \
python26-native python26 samba alsa-lib libcdio afpfs-ng libshairport \
libplist libcec libbluray boost tinyxml dummy-libxbmc libsdl \
liblzo2-native libjpeg-turbo-native libpng-native tiff-native libsdl_image rpl \
- libamplayer libssh taglib swig-native pcre-native
+ libamplayer libssh taglib swig-native pcre-native xbmc-pvr-addons
.PHONY: buildtools $(BUILDTOOLS) subdirs $(SUBDIRS) arm
diff --git a/tools/android/depends/xbmc-pvr-addons/Makefile b/tools/android/depends/xbmc-pvr-addons/Makefile
new file mode 100644
index 0000000000..b66d209dac
--- /dev/null
+++ b/tools/android/depends/xbmc-pvr-addons/Makefile
@@ -0,0 +1,50 @@
+include ../Makefile.include
+DEPS= ../Makefile.include Makefile
+
+LIBNAME=xbmc-pvr-addons
+VERSION=46eb5b50bd145e1bae637213a5929384ac0fc13c
+GIT_DIR=$(TARBALLS_LOCATION)/$(LIBNAME).git
+BASE_URL=git://github.com/opdenkamp/$(LIBNAME).git
+DYLIB=$(PLATFORM)/addons/pvr.demo/.libs/libpvrdemo-addon.so
+#tell git to use the addons repo rather than xbmc's repo
+export GIT_DIR
+export GIT_WORK_TREE=$(PLATFORM)
+# configuration settings
+CONFIGURE=./configure --prefix=$(PREFIX) --host=$(HOST)
+
+all: .installed-$(PLATFORM)
+
+$(GIT_DIR)/HEAD:
+ cd $(TARBALLS_LOCATION); git clone --bare $(BASE_URL)
+
+$(GIT_DIR)/current/$(VERSION): $(GIT_DIR)/HEAD $(DEPS)
+ git rev-list -1 $(VERSION) >/dev/null || git fetch -a
+ git rev-list -1 $(VERSION) >/dev/null
+ rm -rf $(GIT_DIR)/current; mkdir -p $(GIT_DIR)/current
+ touch $@
+
+$(PLATFORM)/bootstrap: $(GIT_DIR)/current/$(VERSION)
+ rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
+ git checkout $(VERSION) -- .
+
+$(PLATFORM)/configure: $(PLATFORM)/bootstrap
+ cd $(PLATFORM); ./bootstrap
+
+$(PLATFORM)/Makefile: $(PLATFORM)/configure
+ cd $(PLATFORM); $(CONFIGURE)
+
+$(DYLIB): $(PLATFORM)/Makefile
+ make -C $(PLATFORM)
+
+.installed-$(PLATFORM): $(DYLIB)
+ $(MAKE) -C $(PLATFORM) install
+ touch $@
+
+clean:
+ -make -C $(PLATFORM) clean
+ rm -f .installed-$(PLATFORM)
+
+distclean::
+ rm -rf $(PLATFORM) .installed-$(PLATFORM)
+ rm -rf $(GIT_DIR)/current
+
diff --git a/tools/android/packaging/Makefile b/tools/android/packaging/Makefile
index fff2cfd284..4806843562 100644
--- a/tools/android/packaging/Makefile
+++ b/tools/android/packaging/Makefile
@@ -67,6 +67,7 @@ libs: $(PREFIX)/lib/xbmc/libxbmc.so
mkdir -p xbmc/lib/$(PLATFORM) images xbmc/assets/python2.6/lib/ xbmc/libs/$(PLATFORM) xbmc/obj/local/$(PLATFORM)
cp -fp $(SRCLIBS) xbmc/obj/local/$(PLATFORM)/
cp -fp $(PREFIX)/lib/xbmc/libxbmc.so xbmc/obj/local/$(PLATFORM)/
+ find $(PREFIX)/lib/xbmc/addons -name "*.so" -exec cp -fp {} xbmc/obj/local/$(PLATFORM)/ \;
find $(PREFIX)/lib/xbmc/system -name "*.so" -exec cp -fp {} xbmc/obj/local/$(PLATFORM)/ \;
cd xbmc/obj/local/$(PLATFORM)/; find . -name "*.so" -not -name "lib*.so" | sed "s/\.\///" | xargs -I@ mv @ lib@
cp -fp xbmc/obj/local/$(PLATFORM)/*.so xbmc/lib/$(PLATFORM)/