[darwin] - rebrand packages and binaries to Kodi

This PR is not complete yet - but i want it to be open as a placeholder (and so that nobody doubles my work here). In general i used the @APP_NAME@ and CCompilerInfo::GetAppName where i could.

What is already done:

1. iOS rebrand is complete
 a. app id is changed to org.xbmc.kodi-ios (xbmc foundation, kodi product, ios platform)
 b. The postinstallation script of the debian package detects a side by side situation and copys the complete XBMC folder over to the Kodi folder. It also informs the user that this task my last some minutes.
 c. XBMC can live side by side with Kodi with complete seperated settings...
 d. All Binaries and Folders are either renamed to Kodi or to project agnostic strings (like XBMCHome -> AppHome)

2. OSX rebrand nearly complete
 a. The migration from XBMC data to Kodi data is implemented in the g_application.preflight (which runs a perl script) - though there is no visual feedback for the user yet (our window is not even up at that point) - and on a 4GB XBMC folder it lasts a couple of minutes on HDD. Anybody has an idea how to popup a messagebox during the copy from perl? (maybe some apple script or so?) - any input @amet or @jmarshallnz

3. ATV2 rebrand - this one is a bitch:
 a. app id is changed to org.xbmc.kodi-atv2 (xbmc foundation, kodi product, atv2 platform)
 b. The postinstallation script of the debian package detects a side by side situation and copys the complete XBMC folder over to the Kodi folder. It also informs the user that this task my last some minutes.
 c. All Binaries and Folders are either renamed to Kodi or to project agnostic strings (like XBMCHome -> AppHome)
 d. At the moment i didn't get the rebranded version to run. The problem is that all apps on ATV2 are plugins. It complains about a lot of classes which are already presented by our XBMC dylib (behaviour is undefined) - also it doesn't pick up the right principal class (so it just crashes in a loop)
e. I have no clue if we find a real solution for allowing side by side installation of XBMC and Kodi

@davilla feel free to jump in. 

Also as you can see this is not ment to be reviewed yet (needs a heap of squashing).

@topfs2 fyi ping
Standalone is used in xbmc desktop. So quite needed.
On 16 Oct 2014 20:34, "Wolfgang Schupp" <notifications@github.com> wrote:

> In Makefile.in:
>
> >  endif
> >  endif
> >
> >  install-scripts:
> >  	@install -d $(DESTDIR)$(bindir)
> > -	@install tools/Linux/xbmc.sh $(DESTDIR)$(bindir)/xbmc
> > -	@install tools/Linux/xbmc-standalone.sh $(DESTDIR)$(bindir)/xbmc-standalone
> > -	@install -d $(DESTDIR)$(datarootdir)/xbmc
> > -	@install -m 0644 tools/Linux/FEH.py $(DESTDIR)$(datarootdir)/xbmc/FEH.py
> > +	@install tools/Linux/@APP_NAME_LC@.sh $(DESTDIR)$(bindir)/@APP_NAME_LC@
> > +	@cd $(DESTDIR)$(bindir); [ -L xbmc ] || ln -s @APP_NAME_LC@ xbmc
>
> beh, nobody still uses xbmc-standalone, our recommended init scripts have
> xbmc --standalone ;)
> anyway. up to @Memphiz <https://github.com/Memphiz> if he wants to add
> it, I'm not going to do it. And I see even less need for desktop.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/xbmc/xbmc/pull/5216/files#r18976200>.
>