-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[droid] - add pvr addons to the android depends
- Loading branch information
Showing
2 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,49 @@ | |||
include ../Makefile.include | |||
DEPS= ../Makefile.include Makefile | |||
|
|||
XBMC_ADDONSDIR=../../../../addons | |||
|
|||
# lib name, version | |||
LIBNAME=xbmc-pvr-addons | |||
VERSION=a6693d02b670a5f0a35c7e41d62250869a9e76b7 | |||
This comment has been minimized.
Sorry, something went wrong. |
|||
SOURCE=$(LIBNAME)-$(VERSION) | |||
ARCHIVE=$(SOURCE).tar.gz | |||
|
|||
# configuration settings | |||
CONFIGURE=./configure --prefix=$(PREFIX) --host=$(HOST) | |||
|
|||
LIBDYLIB=$(PLATFORM)/addons/pvr.demo/.libs/libpvrdemo-addon.dylib | |||
This comment has been minimized.
Sorry, something went wrong. |
|||
|
|||
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool :). I thought it would need some more changes at runtime too no?
this will need a bump cause of a minor api change