1 include ../Makefile.include
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)
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 \
20 ifeq ($(ENABLE_GPLV3),1)
21 DEPENDS+=samba-gplv3 libcdio-gplv3
23 DEPENDS+=samba libcdio
28 EXCLUDED_DEPENDS = libcec libcrystalhd libusb
32 DEPENDS += libGLEW libsdl libcrystalhd
33 EXCLUDED_DEPENDS = libusb
37 DEPENDS += mdnsresponder android-sources-ics
40 DEPENDS := $(filter-out $(EXCLUDED_DEPENDS),$(DEPENDS))
49 ifeq ($(NEED_LIBICONV),1)
62 all: .installed-$(PLATFORM)
65 libgcrypt: libgpg-error
66 fontconfig: freetype2 expat $(ICONV)
67 libssh2: libgcrypt openssl
72 libflac: libogg gettext
73 libass: fontconfig libpng freetype2 expat $(ICONV)
75 libmicrohttpd: openssl libgpg-error libgcrypt
76 python26: expat gettext libxml2 sqlite3 openssl libffi
78 afpfs-ng: libgcrypt $(ICONV)
79 libplist: libxml2 $(ZLIB)
80 libbluray: $(ICONV) libxml2
82 xbmc-pvr-addons: boost mysql
88 pythonmodule-pil: $(ZLIB) libjpeg-turbo libpng freetype2 python26
90 .installed-$(PLATFORM): $(DEPENDS)
92 @echo "Dependencies built successfully."
98 for d in $(DEPENDS); do $(MAKE) -C $$d clean; done
100 # Debug target, this will DELETE all data in staging!
102 ( for d in $(DEPENDS); do \
104 mkdir -p $(PREFIX)/include $(PREFIX)/share $(PREFIX)/bin; \
105 cp -f config.site Toolchain.cmake $(PREFIX)/share/; \
107 $(MAKE) $$d; done ) && echo "$@ built successfully"
111 for d in $(DEPENDS); do $(MAKE) -C $$d distclean; done