Skip to content

Commit

Permalink
kodi: make adjustments to use TexturePacker from the host system
Browse files Browse the repository at this point in the history
(because it doesn't compile with glibc 2.26)
  • Loading branch information
escalade committed Sep 14, 2017
1 parent f93768b commit fb5abd6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/mediacenter/kodi/package.mk
Expand Up @@ -23,7 +23,7 @@ PKG_LICENSE="GPL"
PKG_SITE="http://www.kodi.tv"
PKG_URL="https://github.com/xbmc/xbmc/archive/$PKG_VERSION.tar.gz"
PKG_SOURCE_DIR="xbmc-$PKG_VERSION*"
PKG_DEPENDS_TARGET="toolchain JsonSchemaBuilder:host TexturePacker:host xmlstarlet:host Python zlib systemd pciutils lzo pcre swig:host libass curl fontconfig fribidi tinyxml libjpeg-turbo freetype libcdio taglib libxml2 libxslt yajl sqlite ffmpeg crossguid giflib libdvdnav libhdhomerun"
PKG_DEPENDS_TARGET="toolchain JsonSchemaBuilder:host xmlstarlet:host Python zlib systemd pciutils lzo pcre swig:host libass curl fontconfig fribidi tinyxml libjpeg-turbo freetype libcdio taglib libxml2 libxslt yajl sqlite ffmpeg crossguid giflib libdvdnav libhdhomerun"
PKG_SECTION="mediacenter"
PKG_SHORTDESC="kodi: Kodi Mediacenter"
PKG_LONGDESC="Kodi Media Center (which was formerly named Xbox Media Center or XBMC) is a free and open source cross-platform media player and home entertainment system software with a 10-foot user interface designed for the living-room TV. Its graphical user interface allows the user to easily manage video, photos, podcasts, and music from a computer, optical disk, local network, and the internet using a remote control."
Expand Down Expand Up @@ -210,6 +210,11 @@ if [ ! "$KODIPLAYER_DRIVER" = default ]; then
fi
fi

# Build TexturePacker for host only if there is no host binary
if [ ! -f /usr/bin/TexturePacker ]; then
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET TexturePacker:host"
fi

KODI_LIBDVD="$KODI_DVDCSS \
-DLIBDVDNAV_URL=$ROOT/$SOURCES/libdvdnav/libdvdnav-$(get_pkg_version libdvdnav).tar.gz \
-DLIBDVDREAD_URL=$ROOT/$SOURCES/libdvdread/libdvdread-$(get_pkg_version libdvdread).tar.gz"
Expand Down Expand Up @@ -261,6 +266,9 @@ pre_configure_target() {
if [ "$ARCH" = "arm" ]; then
export CXXFLAGS="`echo $CXXFLAGS | sed -e 's|-O2|-Os|'`"
fi

# This is needed to avoid using libraries from sysroot if we use TexturePacker from the host
unset LD_LIBRARY_PATH
}

post_makeinstall_target() {
Expand Down

0 comments on commit fb5abd6

Please sign in to comment.