[pydocs] addon id is optional for the Addon() class as it's retrieved automaticly...
[vuplus_xbmc] / tools / depends / target / Makefile
1 include ../Makefile.include
2
3 ifneq ($(shell test -f $(PREFIX)/share/config.site && echo 1),1)
4   $(error Error: $(PREFIX)/share/config.site  is missing. Please reconfigure depends to generate it)
5 endif
6
7 DEPENDS = \
8         pcre expat gettext sqlite3 libgpg-error \
9         libgcrypt bzip2 liblzo2 libzip freetype2 fontconfig \
10         openssl libssh2 curl \
11         libjpeg-turbo tiff jasper libpng \
12         libogg libvorbis libflac libmad fribidi libmpeg2 \
13         libass libsamplerate \
14         libmodplug librtmp libxml2 yajl libmicrohttpd mysql libffi \
15         python26 afpfs-ng libshairplay \
16         libplist libcec libbluray boost tinyxml dummy-libxbmc \
17         libamplayer libssh taglib xbmc-pvr-addons libusb libnfs libmp3lame \
18         pythonmodule-pil
19
20 ifeq ($(ENABLE_GPLV3),1)
21   DEPENDS+=samba-gplv3 libcdio-gplv3
22 else
23   DEPENDS+=samba libcdio
24 endif
25
26 ifeq ($(OS),ios)
27   DEPENDS += Backrow
28   EXCLUDED_DEPENDS = libcec libcrystalhd libusb
29 endif
30
31 ifeq ($(OS),osx)
32   DEPENDS += libGLEW libsdl libcrystalhd
33   EXCLUDED_DEPENDS = libusb
34 endif
35
36 ifeq ($(OS),android)
37   DEPENDS += mdnsresponder android-sources-ics
38 endif
39
40 DEPENDS := $(filter-out $(EXCLUDED_DEPENDS),$(DEPENDS))
41
42 ZLIB=
43 ifneq ($(HAS_ZLIB),1)
44   DEPENDS += zlib
45   ZLIB = zlib
46 endif
47
48 ICONV=
49 ifeq ($(NEED_LIBICONV),1)
50   DEPENDS += libiconv
51   ICONV = libiconv
52 endif
53
54 ALSA_LIB=
55 ifeq ($(OS),linux)
56   DEPENDS += alsa-lib
57   ALSA_LIB = alsa-lib
58 endif
59
60 .PHONY: $(DEPENDS)
61
62 all: .installed-$(PLATFORM)
63
64 gettext: $(ICONV)
65 libgcrypt: libgpg-error
66 fontconfig: freetype2 expat $(ICONV)
67 libssh2: libgcrypt openssl
68 curl: openssl libssh2
69 tiff: libjpeg-turbo
70 jasper: libjpeg-turbo
71 libvorbis: libogg
72 libflac: libogg gettext
73 libass: fontconfig libpng freetype2 expat $(ICONV)
74 librtmp: openssl
75 libmicrohttpd: openssl libgpg-error libgcrypt
76 python26: expat gettext libxml2 sqlite3 openssl libffi
77 libcdio: $(ICONV)
78 afpfs-ng: libgcrypt $(ICONV)
79 libplist: libxml2 $(ZLIB)
80 libbluray: $(ICONV) libxml2
81 libssh: openssl
82 xbmc-pvr-addons: boost mysql
83 mysql: openssl
84 libzip: $(ZLIB)
85 libmp3lame: $(ICONV)
86 libpng: $(ZLIB)
87 openssl: $(ZLIB)
88 pythonmodule-pil: $(ZLIB) libjpeg-turbo libpng freetype2 python26
89
90 .installed-$(PLATFORM): $(DEPENDS)
91         touch $@
92         @echo "Dependencies built successfully."
93
94 $(DEPENDS):
95         $(MAKE) -C $@
96
97 clean:
98         for d in $(DEPENDS); do $(MAKE) -C $$d clean; done
99
100 # Debug target, this will DELETE all data in staging!
101 test-dependencies:
102         ( for d in $(DEPENDS); do \
103         rm -rf $(PREFIX); \
104         mkdir -p $(PREFIX)/include $(PREFIX)/share $(PREFIX)/bin; \
105         cp -f config.site Toolchain.cmake $(PREFIX)/share/; \
106         $(MAKE) distclean; \
107         $(MAKE) $$d; done ) && echo "$@ built successfully"
108
109
110 distclean::
111         for d in $(DEPENDS); do $(MAKE) -C $$d distclean; done
112