blob: 0a549069650d5dcc82610100d1a2d3e37fdfeb3e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
include ../Makefile.include
DEPS= ../Makefile.include Makefile
LIBNAME=xbmc-pvr-addons
VERSION=a9780e023c8b7728017851bfd12d4df9e5c26993
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)
#mysql_config is remarkably useless. Help configure find the right one.
export MYSQL_CONFIG=$(PREFIX)/bin/mysql_config
# configuration settings
CONFIGURE=./configure --prefix=$(PREFIX) --host=$(HOST) --enable-addons-with-dependencies
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 origin "+refs/heads/*:refs/remotes/origin/*"
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
|