diff options
author | Cory Fields <theuni-nospam-@xbmc.org> | 2012-10-08 18:31:47 -0400 |
---|---|---|
committer | Cory Fields <theuni-nospam-@xbmc.org> | 2012-10-15 16:32:29 -0400 |
commit | 409f7c70ce9d27c31f1e87dc629ad0de260642a2 (patch) | |
tree | ecafbffb9a032f1fd2f9785467af6d1010ceb2f5 /tools | |
parent | 3a651b9e1b6ba2cfd6deff0636947334b2580770 (diff) |
[droid] add pvr-addons makefile
Diffstat (limited to 'tools')
-rw-r--r-- | tools/android/depends/xbmc-pvr-addons/Makefile | 50 |
1 files changed, 50 insertions, 0 deletions
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 + |