tce-load -i grilo-dev gupnp-av-dev intltool avahi-dev gnome-online-accounts-dev json-glib-dev itstool libdmapsharing-dev tracker-dev libgdata-dev libmediaart-dev

cd grilo-plugins-0.3.2

CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static --localstatedir=/var --libdir=/usr/local/lib

$PKG_CONFIG --exists --print-errors "lua >= 5.3.0

find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \;

make
sudo make install

Configuration
        Version             : 0.3.2
        Prefix              : /usr/local
        Compiler            : gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe

        Enable debug        : no
        Enable coverage     : no

        Enable GOA          : yes

Plugins
        bookmarks           : no
        chromaprint         : no
        dleyna              : yes
        dmap                : yes
        filesystem          : yes
        flickr              : yes
        freebox             : yes
        gravatar            : yes
        jamendo             : yes
        localmetadata       : yes
        lua_factory         : no
        magnatune           : yes
        metadata-store      : yes
        opensubtitles       : yes
        optical-media       : yes
        podcasts            : yes
        rai.tv              : yes
        shoutcast           : yes
        thetvdb             : no
        tmdb                : yes
        tracker             : yes
        vimeo               : yes
        youtube             : yes
