Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[droid] - add pvr addons to the android depends

  • Loading branch information...
commit 26774ea209c2e31d593bc654b4eb77ffef1e03fe 1 parent 5e4b59d
@Memphiz authored
View
3  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
@@ -62,6 +62,7 @@ libssh: openssl cmake rpl
taglib: cmake
swig-native: buildtools pcre-native
pcre-native: buildtools
+xbmc-pvr-addons: buildtools
X86OVERRIDES=XBMC_OVERRIDE_HOST=i686-android-linux XBMC_OVERRIDE_TOOLCHAIN=$(XBMC_X86_TOOLCHAIN)
View
49 tools/android/depends/xbmc-pvr-addons/Makefile
@@ -0,0 +1,49 @@
+include ../Makefile.include
+DEPS= ../Makefile.include Makefile
+
+XBMC_ADDONSDIR=../../../../addons
+
+# lib name, version
+LIBNAME=xbmc-pvr-addons
+VERSION=a6693d02b670a5f0a35c7e41d62250869a9e76b7

this will need a bump cause of a minor api change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+SOURCE=$(LIBNAME)-$(VERSION)
+ARCHIVE=$(SOURCE).tar.gz
+
+# configuration settings
+CONFIGURE=./configure --prefix=$(PREFIX) --host=$(HOST)
+
+LIBDYLIB=$(PLATFORM)/addons/pvr.demo/.libs/libpvrdemo-addon.dylib

i can see it's based on the darwin deps ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+
+all: $(LIBDYLIB) .installed-$(PLATFORM)
+
+$(TARBALLS_LOCATION)/$(ARCHIVE):
+ git clone git://github.com/opdenkamp/xbmc-pvr-addons.git $(PLATFORM)
+ cd $(PLATFORM); git archive --format=tar --prefix=$(SOURCE)/ $(VERSION) | gzip -9 > $(TARBALLS_LOCATION)/$(ARCHIVE)
+
+$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS)
+ rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
+ $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
+ cd $(PLATFORM); ./bootstrap
+ cd $(PLATFORM); $(CONFIGURE)
+
+$(LIBDYLIB): $(PLATFORM)
+ make -C $(PLATFORM)
+
+.installed-$(PLATFORM): $(LIBDYLIB)
+ for ADDON in `find $(PLATFORM)/addons -type d -name "pvr.*"`; do \
+ ADDON=`basename $$ADDON` ; \
+ mkdir -p $(XBMC_ADDONSDIR)/$$ADDON ; \
+ cp -PRf $(PLATFORM)/addons/$$ADDON/addon/* $(XBMC_ADDONSDIR)/$$ADDON ; \
+ cp -Pf $(PLATFORM)/addons/$$ADDON/*.pvr $(XBMC_ADDONSDIR)/$$ADDON ; \
+ done
+ make -C $(PLATFORM) install
+ touch .installed-$(PLATFORM)
+
+clean:
+ make -C $(PLATFORM) clean
+ rm -f .installed-$(PLATFORM)
+
+distclean::
+ rm -rf $(PLATFORM) .installed-$(PLATFORM)
+ rm -f $(TARBALLS_LOCATION)/$(ARCHIVE)
+

2 comments on commit 26774ea

@theuni
Collaborator

This needs quite a few changes in order to not break parallel build. I'll push a patch in the next few hours when i can jump to my android tree.

@Memphiz
Owner

Cool :). I thought it would need some more changes at runtime too no?

Please sign in to comment.
Something went wrong with that request. Please try again.