diff options
author | Memphiz <memphis@machzwo.de> | 2012-07-15 01:23:36 +0200 |
---|---|---|
committer | Cory Fields <theuni-nospam-@xbmc.org> | 2012-08-08 19:14:49 -0400 |
commit | 90726d0b30ff80f7181a6c91b47de529bcf04a09 (patch) | |
tree | 66bad35d6e1e31abc7dc09767538fe6fcba62e50 /Makefile.in | |
parent | e41dbc58173c3c6f89f648705a420090f3f47003 (diff) |
[droid] - fix make install on darwin (limited find again - we use the same approach like freebsd uses)
Diffstat (limited to 'Makefile.in')
-rwxr-xr-x | Makefile.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in index b05afc5fa4..6299196f0f 100755 --- a/Makefile.in +++ b/Makefile.in @@ -452,8 +452,17 @@ ifeq ($(findstring freebsd,@ARCH@), freebsd) -exec install "{}" $(DESTDIR)$(libdir)/xbmc/"{}" \; \ -exec printf " -- %-75.75s\r" "{}" \; else +ifeq ($(findstring Darwin,$(shell uname -s)),Darwin) + @find -E system addons -type f -not -iregex ".*svn.*" \ + -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs" \ + -exec sh -c "install -d \"$(DESTDIR)$(libdir)/xbmc/\`dirname '{}'\`\"" \; \ + -and \ + -exec install "{}" $(DESTDIR)$(libdir)/xbmc/"{}" \; \ + -exec printf " -- %-75.75s\r" "{}" \; +else @find system addons -regextype posix-extended -type f -not -iregex ".*svn.*" -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs" -exec install -D "{}" $(DESTDIR)$(libdir)/xbmc/"{}" \; -printf " -- %-75.75f\r" endif +endif install-scripts: @install -d $(DESTDIR)$(bindir) @@ -482,8 +491,17 @@ ifeq ($(findstring bsd,@ARCH@), bsd) -exec install -m 0644 "{}" $(DESTDIR)$(datarootdir)/xbmc/"{}" \; \ -exec printf " -- %-75.75s\r" "{}" \; else +ifeq ($(findstring Darwin,$(shell uname -s)),Darwin) + @find -E addons language media sounds userdata system -type f \ + -not -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs|.*svn.*|.*\.so|.*\.dll" \ + -exec sh -c "install -d \"$(DESTDIR)$(datarootdir)/xbmc/\`dirname '{}'\`\"" \; \ + -and \ + -exec install -m 0644 "{}" $(DESTDIR)$(datarootdir)/xbmc/"{}" \; \ + -exec printf " -- %-75.75s\r" "{}" \; +else @find addons language media sounds userdata system -regextype posix-extended -type f -not -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs|.*svn.*|.*\.so|.*\.dll" -exec install -D -m 0644 "{}" $(DESTDIR)$(datarootdir)/xbmc/"{}" \; -printf " -- %-75.75f\r" endif +endif @# Icons and links @install -d $(DESTDIR)$(datarootdir)/applications @install tools/Linux/xbmc.desktop $(DESTDIR)$(datarootdir)/applications/xbmc.desktop |