summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2018-02-12 18:21:47 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2018-02-12 17:22:39 +0000
commit76c0b499fabbd435940376162010a4de344733c2 (patch)
treee0bf5e4aca5cc42920e2fba41fb044ed5d1e7bd2
parent676b06fddde564e3b4ade774bbbf2123a2362339 (diff)
kodi: add addons for audioencoders
-rw-r--r--package/kodi-audioencoder-lame/Makefile27
-rw-r--r--package/kodi-audioencoder-vorbis/Makefile27
-rw-r--r--package/kodi-audioencoder-wav/Makefile27
-rw-r--r--package/kodi/Makefile13
-rw-r--r--package/kodi/patches/patch-project_cmake_KodiConfig_cmake_in20
-rw-r--r--package/kodi/patches/patch-tools_depends_native_JsonSchemaBuilder_Makefile212
-rw-r--r--package/kodi/patches/patch-tools_depends_native_TexturePacker_Makefile359
-rw-r--r--scripts/toolchain.cmake.in1
8 files changed, 681 insertions, 5 deletions
diff --git a/package/kodi-audioencoder-lame/Makefile b/package/kodi-audioencoder-lame/Makefile
new file mode 100644
index 000000000..98d06befb
--- /dev/null
+++ b/package/kodi-audioencoder-lame/Makefile
@@ -0,0 +1,27 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= kodi-audioencoder-lame
+PKG_VERSION:= v1.2.0
+PKG_GIT:= tag
+PKG_RELEASE:= 1
+PKG_DESCR:= kodi lame audioencoder
+PKG_SECTION:= mm/video
+PKG_DEPENDS:= kodi lame
+PKG_BUILDDEP:= kodi lame
+PKG_SITES:= https://github.com/xbmc/audioencoder.lame.git
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,KODI_AUDIOENCODER_LAME,kodi-audioencoder-lame,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
+
+CONFIG_STYLE:= cmake
+
+kodi-audioencoder-lame-install:
+ $(INSTALL_DIR) $(IDIR_KODI_AUDIOENCODER_LAME)/usr/lib/kodi/addons
+ $(CP) $(WRKINST)/usr/lib/kodi/addons/* \
+ $(IDIR_KODI_AUDIOENCODER_LAME)/usr/lib/kodi/addons
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk
diff --git a/package/kodi-audioencoder-vorbis/Makefile b/package/kodi-audioencoder-vorbis/Makefile
new file mode 100644
index 000000000..5b715890a
--- /dev/null
+++ b/package/kodi-audioencoder-vorbis/Makefile
@@ -0,0 +1,27 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= kodi-audioencoder-vorbis
+PKG_VERSION:= v1.1.0
+PKG_GIT:= tag
+PKG_RELEASE:= 1
+PKG_DESCR:= kodi vorbis audioencoder
+PKG_SECTION:= mm/video
+PKG_DEPENDS:= kodi libogg libvorbis
+PKG_BUILDDEP:= kodi libogg libvorbis
+PKG_SITES:= https://github.com/xbmc/audioencoder.vorbis.git
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,KODI_AUDIOENCODER_VORBIS,kodi-audioencoder-vorbis,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
+
+CONFIG_STYLE:= cmake
+
+kodi-audioencoder-vorbis-install:
+ $(INSTALL_DIR) $(IDIR_KODI_AUDIOENCODER_VORBIS)/usr/lib/kodi/addons
+ $(CP) $(WRKINST)/usr/lib/kodi/addons/* \
+ $(IDIR_KODI_AUDIOENCODER_VORBIS)/usr/lib/kodi/addons
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk
diff --git a/package/kodi-audioencoder-wav/Makefile b/package/kodi-audioencoder-wav/Makefile
new file mode 100644
index 000000000..7615ba481
--- /dev/null
+++ b/package/kodi-audioencoder-wav/Makefile
@@ -0,0 +1,27 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= kodi-audioencoder-wav
+PKG_VERSION:= v1.1.0
+PKG_GIT:= tag
+PKG_RELEASE:= 1
+PKG_DESCR:= kodi wav audioencoder
+PKG_SECTION:= mm/video
+PKG_DEPENDS:= kodi
+PKG_BUILDDEP:= kodi
+PKG_SITES:= https://github.com/xbmc/audioencoder.wav.git
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,KODI_AUDIOENCODER_WAV,kodi-audioencoder-wav,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
+
+CONFIG_STYLE:= cmake
+
+kodi-audioencoder-wav-install:
+ $(INSTALL_DIR) $(IDIR_KODI_AUDIOENCODER_WAV)/usr/lib/kodi/addons
+ $(CP) $(WRKINST)/usr/lib/kodi/addons/* \
+ $(IDIR_KODI_AUDIOENCODER_WAV)/usr/lib/kodi/addons
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk
diff --git a/package/kodi/Makefile b/package/kodi/Makefile
index d4bd62361..7b60a3f5d 100644
--- a/package/kodi/Makefile
+++ b/package/kodi/Makefile
@@ -11,19 +11,19 @@ PKG_DESCR:= software media player
PKG_SECTION:= mm/video
PKG_DEPENDS:= python2 libsquish libressl libxz
PKG_DEPENDS+= libass libmpeg2 libmad
-PKG_DEPENDS+= libogg libvorbis libmodplug libcurl
+PKG_DEPENDS+= libmodplug libcurl
PKG_DEPENDS+= libflac libbz2 libtiff libnettle librtmp liblzo
PKG_DEPENDS+= yajl tinyxml libsqlite libpcrecpp libncurses
PKG_DEPENDS+= libpcre libcdio libfreetype libsamplerate libuuid
PKG_DEPENDS+= taglib libjasper libmp3lame
PKG_DEPENDS+= libgpg-error python2-mod-sqlite libffmpeg
-PKG_DEPENDS+= libvorbisenc glib libdcadec bcm28xx-vc-gl-libs
+PKG_DEPENDS+= glib libdcadec bcm28xx-vc-gl-libs
PKG_BUILDDEP:= python2 libass ffmpeg rtmpdump bcm28xx-vc
-PKG_BUILDDEP+= libmpeg2 libmad libjpeg-turbo libogg libvorbis
+PKG_BUILDDEP+= libmpeg2 libmad libjpeg-turbo
PKG_BUILDDEP+= curl flac bzip2 libtiff yajl cmake-host
PKG_BUILDDEP+= tinyxml sqlite pcre libcdio freetype
-PKG_BUILDDEP+= libsamplerate taglib libjasper lame
-PKG_BUILDDEP+= glib libmodplug libgpg-error libvorbis
+PKG_BUILDDEP+= libsamplerate taglib libjasper
+PKG_BUILDDEP+= glib libmodplug libgpg-error
PKG_BUILDDEP+= swig-host liblzo-host libpng-host libjpeg-turbo-host
PKG_BUILDDEP+= zip-host unzip-host giflib-host libsquish libdcadec
PKG_BUILDDEP+= libcrossguid libressl xz bzip2 liblzo
@@ -162,6 +162,9 @@ pre-configure:
$(STAGING_HOST_DIR)/usr/bin
kodi-install:
+ $(INSTALL_DIR) $(STAGING_TARGET_DIR)/usr/share/kodi
+ $(CP) $(WRKINST)/usr/share/kodi/* \
+ $(STAGING_TARGET_DIR)/usr/share/kodi
# we need a symlink to /data
cd $(IDIR_KODI)/ && ln -sf ../data/kodi .kodi
$(INSTALL_DIR) $(IDIR_KODI)/usr/lib/kodi/addons
diff --git a/package/kodi/patches/patch-project_cmake_KodiConfig_cmake_in b/package/kodi/patches/patch-project_cmake_KodiConfig_cmake_in
new file mode 100644
index 000000000..0a49fe627
--- /dev/null
+++ b/package/kodi/patches/patch-project_cmake_KodiConfig_cmake_in
@@ -0,0 +1,20 @@
+--- xbmc-17.6-Krypton.orig/project/cmake/KodiConfig.cmake.in 2017-11-14 17:55:01.000000000 +0100
++++ xbmc-17.6-Krypton/project/cmake/KodiConfig.cmake.in 2018-02-03 20:04:37.150894847 +0100
+@@ -7,7 +7,7 @@ if(NOT @APP_NAME_UC@_PREFIX)
+ set(@APP_NAME_UC@_PREFIX @APP_PREFIX@)
+ endif()
+ if(NOT @APP_NAME_UC@_INCLUDE_DIR)
+- set(@APP_NAME_UC@_INCLUDE_DIR @APP_INCLUDE_DIR@)
++ set(@APP_NAME_UC@_INCLUDE_DIR ${CMAKE_FIND_ROOT_PATH}/@APP_INCLUDE_DIR@)
+ endif()
+ if(NOT @APP_NAME_UC@_LIB_DIR)
+ set(@APP_NAME_UC@_LIB_DIR @APP_LIB_DIR@)
+@@ -18,7 +18,7 @@ endif()
+ if(NOT WIN32)
+ set(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} @CXX11_SWITCH@")
+ endif()
+-list(APPEND CMAKE_MODULE_PATH @APP_LIB_DIR@ @APP_DATA_DIR@/cmake)
++list(APPEND CMAKE_MODULE_PATH ${CMAKE_FIND_ROOT_PATH}/@APP_LIB_DIR@ ${CMAKE_FIND_ROOT_PATH}/@APP_DATA_DIR@/cmake)
+
+ string(REPLACE ";" " " ARCH_DEFINES "@ARCH_DEFINES@")
+ add_definitions(${ARCH_DEFINES} -DBUILD_KODI_ADDON)
diff --git a/package/kodi/patches/patch-tools_depends_native_JsonSchemaBuilder_Makefile b/package/kodi/patches/patch-tools_depends_native_JsonSchemaBuilder_Makefile
new file mode 100644
index 000000000..7bdacc6fa
--- /dev/null
+++ b/package/kodi/patches/patch-tools_depends_native_JsonSchemaBuilder_Makefile
@@ -0,0 +1,212 @@
+--- xbmc-17.6-Krypton.orig/tools/depends/native/JsonSchemaBuilder/Makefile 2017-11-14 17:55:01.000000000 +0100
++++ xbmc-17.6-Krypton/tools/depends/native/JsonSchemaBuilder/Makefile 2018-02-01 20:40:05.280091115 +0100
+@@ -1,44 +1,178 @@
+-ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
+--include ../../Makefile.include
++# CMAKE generated file: DO NOT EDIT!
++# Generated by "Unix Makefiles" Generator, CMake Version 3.8
+
+-ifeq ($(NATIVEPREFIX),)
+- PREFIX = $(ROOT_DIR)
+-else
+- PREFIX = $(NATIVEPREFIX)
+-endif
++# Default target executed when no arguments are given to make.
++default_target: all
+
+-ifeq ($(NATIVEPLATFORM),)
+- PLATFORM = native
+-else
+- PLATFORM = $(NATIVEPLATFORM)
+-endif
++.PHONY : default_target
+
+-SOURCE=$(ROOT_DIR)/src
++# Allow only one "make -f Makefile2" at a time, but pass parallelism.
++.NOTPARALLEL:
+
+-CONFIGURE=./configure --prefix=$(PREFIX)
+-APP=$(SOURCE)/JsonSchemaBuilder
+-APPBIN=$(PREFIX)/bin/JsonSchemaBuilder
+
+-all: .installed-$(PLATFORM)
++#=============================================================================
++# Special targets provided by cmake.
+
+-$(PLATFORM):
+- -rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
+- cd $(PLATFORM); cp -a $(SOURCE)/* .
+- cd $(PLATFORM); ./autogen.sh
+- cd $(PLATFORM); $(CONFIGURE)
++# Disable implicit rules so canonical targets will work.
++.SUFFIXES:
+
+
+-$(APP): $(PLATFORM)
+- $(MAKE) -C $(PLATFORM)
++# Remove some rules from gmake that .SUFFIXES does not remove.
++SUFFIXES =
+
++.SUFFIXES: .hpux_make_needs_suffix_list
+
+-.installed-$(PLATFORM): $(APP)
+- $(MAKE) -C $(PLATFORM) install
+- touch $@
+
++# Suppress display of executed commands.
++$(VERBOSE).SILENT:
++
++
++# A target that is always out of date.
++cmake_force:
++
++.PHONY : cmake_force
++
++#=============================================================================
++# Set environment variables for the build.
++
++# The shell in which to execute make rules.
++SHELL = /bin/sh
++
++# The CMake executable.
++CMAKE_COMMAND = /home/wbx/rpi2/host_x86_64-linux-gnu/usr/bin/cmake
++
++# The command to remove a file.
++RM = /home/wbx/rpi2/host_x86_64-linux-gnu/usr/bin/cmake -E remove -f
++
++# Escaping for special characters.
++EQUALS = =
++
++# The top-level source directory on which CMake was run.
++CMAKE_SOURCE_DIR = /home/wbx/rpi2/build_raspberry-pi2_uclibc-ng_cortex_a7_hard_eabihf/w-kodi-17.6-1/xbmc-17.6-Krypton/tools/depends/native/JsonSchemaBuilder
++
++# The top-level build directory on which CMake was run.
++CMAKE_BINARY_DIR = /home/wbx/rpi2/build_raspberry-pi2_uclibc-ng_cortex_a7_hard_eabihf/w-kodi-17.6-1/xbmc-17.6-Krypton/tools/depends/native/JsonSchemaBuilder
++
++#=============================================================================
++# Targets provided globally by CMake.
++
++# Special rule for the target rebuild_cache
++rebuild_cache:
++ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
++ /home/wbx/rpi2/host_x86_64-linux-gnu/usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
++.PHONY : rebuild_cache
++
++# Special rule for the target rebuild_cache
++rebuild_cache/fast: rebuild_cache
++
++.PHONY : rebuild_cache/fast
++
++# Special rule for the target edit_cache
++edit_cache:
++ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..."
++ /home/wbx/rpi2/host_x86_64-linux-gnu/usr/bin/ccmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
++.PHONY : edit_cache
++
++# Special rule for the target edit_cache
++edit_cache/fast: edit_cache
++
++.PHONY : edit_cache/fast
++
++# The main all target
++all: cmake_check_build_system
++ $(CMAKE_COMMAND) -E cmake_progress_start /home/wbx/rpi2/build_raspberry-pi2_uclibc-ng_cortex_a7_hard_eabihf/w-kodi-17.6-1/xbmc-17.6-Krypton/tools/depends/native/JsonSchemaBuilder/CMakeFiles /home/wbx/rpi2/build_raspberry-pi2_uclibc-ng_cortex_a7_hard_eabihf/w-kodi-17.6-1/xbmc-17.6-Krypton/tools/depends/native/JsonSchemaBuilder/CMakeFiles/progress.marks
++ $(MAKE) -f CMakeFiles/Makefile2 all
++ $(CMAKE_COMMAND) -E cmake_progress_start /home/wbx/rpi2/build_raspberry-pi2_uclibc-ng_cortex_a7_hard_eabihf/w-kodi-17.6-1/xbmc-17.6-Krypton/tools/depends/native/JsonSchemaBuilder/CMakeFiles 0
++.PHONY : all
++
++# The main clean target
+ clean:
+- $(MAKE) -C $(PLATFORM) clean
++ $(MAKE) -f CMakeFiles/Makefile2 clean
++.PHONY : clean
++
++# The main clean target
++clean/fast: clean
++
++.PHONY : clean/fast
++
++# Prepare targets for installation.
++preinstall: all
++ $(MAKE) -f CMakeFiles/Makefile2 preinstall
++.PHONY : preinstall
++
++# Prepare targets for installation.
++preinstall/fast:
++ $(MAKE) -f CMakeFiles/Makefile2 preinstall
++.PHONY : preinstall/fast
++
++# clear depends
++depend:
++ $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
++.PHONY : depend
++
++#=============================================================================
++# Target rules for targets named JsonSchemaBuilder
++
++# Build rule for target.
++JsonSchemaBuilder: cmake_check_build_system
++ $(MAKE) -f CMakeFiles/Makefile2 JsonSchemaBuilder
++.PHONY : JsonSchemaBuilder
++
++# fast build rule for target.
++JsonSchemaBuilder/fast:
++ $(MAKE) -f CMakeFiles/JsonSchemaBuilder.dir/build.make CMakeFiles/JsonSchemaBuilder.dir/build
++.PHONY : JsonSchemaBuilder/fast
++
++src/JsonSchemaBuilder.o: src/JsonSchemaBuilder.cpp.o
++
++.PHONY : src/JsonSchemaBuilder.o
++
++# target to build an object file
++src/JsonSchemaBuilder.cpp.o:
++ $(MAKE) -f CMakeFiles/JsonSchemaBuilder.dir/build.make CMakeFiles/JsonSchemaBuilder.dir/src/JsonSchemaBuilder.cpp.o
++.PHONY : src/JsonSchemaBuilder.cpp.o
++
++src/JsonSchemaBuilder.i: src/JsonSchemaBuilder.cpp.i
++
++.PHONY : src/JsonSchemaBuilder.i
++
++# target to preprocess a source file
++src/JsonSchemaBuilder.cpp.i:
++ $(MAKE) -f CMakeFiles/JsonSchemaBuilder.dir/build.make CMakeFiles/JsonSchemaBuilder.dir/src/JsonSchemaBuilder.cpp.i
++.PHONY : src/JsonSchemaBuilder.cpp.i
++
++src/JsonSchemaBuilder.s: src/JsonSchemaBuilder.cpp.s
++
++.PHONY : src/JsonSchemaBuilder.s
++
++# target to generate assembly for a file
++src/JsonSchemaBuilder.cpp.s:
++ $(MAKE) -f CMakeFiles/JsonSchemaBuilder.dir/build.make CMakeFiles/JsonSchemaBuilder.dir/src/JsonSchemaBuilder.cpp.s
++.PHONY : src/JsonSchemaBuilder.cpp.s
++
++# Help Target
++help:
++ @echo "The following are some of the valid targets for this Makefile:"
++ @echo "... all (the default if no target is provided)"
++ @echo "... clean"
++ @echo "... depend"
++ @echo "... rebuild_cache"
++ @echo "... edit_cache"
++ @echo "... JsonSchemaBuilder"
++ @echo "... src/JsonSchemaBuilder.o"
++ @echo "... src/JsonSchemaBuilder.i"
++ @echo "... src/JsonSchemaBuilder.s"
++.PHONY : help
++
++
++
++#=============================================================================
++# Special targets to cleanup operation of make.
++
++# Special rule to run CMake to check the build system integrity.
++# No rule that depends on this can have commands that come from listfiles
++# because they might be regenerated.
++cmake_check_build_system:
++ $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
++.PHONY : cmake_check_build_system
+
+-distclean::
+- rm -rf $(PLATFORM) .installed-$(PLATFORM)
+- -rm -rf bin
diff --git a/package/kodi/patches/patch-tools_depends_native_TexturePacker_Makefile b/package/kodi/patches/patch-tools_depends_native_TexturePacker_Makefile
new file mode 100644
index 000000000..e88a71542
--- /dev/null
+++ b/package/kodi/patches/patch-tools_depends_native_TexturePacker_Makefile
@@ -0,0 +1,359 @@
+--- xbmc-17.6-Krypton.orig/tools/depends/native/TexturePacker/Makefile 2017-11-14 17:55:01.000000000 +0100
++++ xbmc-17.6-Krypton/tools/depends/native/TexturePacker/Makefile 2018-02-01 20:40:08.806433242 +0100
+@@ -1,60 +1,310 @@
+-ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
+--include ../../Makefile.include
++# CMAKE generated file: DO NOT EDIT!
++# Generated by "Unix Makefiles" Generator, CMake Version 3.8
+
+-ifeq ($(NATIVEPREFIX),)
+- PREFIX = $(ROOT_DIR)
+-else
+- PREFIX = $(NATIVEPREFIX)
+-endif
++# Default target executed when no arguments are given to make.
++default_target: all
+
+-ifeq ($(NATIVEPLATFORM),)
+- PLATFORM = native
+- EXTRA_CONFIGURE = --enable-static
+-else
+- PLATFORM = $(NATIVEPLATFORM)
+-endif
++.PHONY : default_target
+
+-ifeq ($(NATIVE_OS), linux)
+- EXTRA_CONFIGURE = --enable-static
+-endif
+-ifeq ($(NATIVE_OS), android)
+- EXTRA_CONFIGURE = --enable-static
+-endif
++# Allow only one "make -f Makefile2" at a time, but pass parallelism.
++.NOTPARALLEL:
+
+-ifeq ($(CORE_SOURCE_DIR),)
+- CORE_SOURCE_DIR = $(ROOT_DIR)/../../../..
+-endif
+
+-SOURCE=$(ROOT_DIR)/src
++#=============================================================================
++# Special targets provided by cmake.
+
+-APP=$(PLATFORM)/TexturePacker
+-APPBIN=$(PREFIX)/bin/TexturePacker
++# Disable implicit rules so canonical targets will work.
++.SUFFIXES:
+
+-all: .installed-$(PLATFORM)
+
+-$(PLATFORM):
+- -rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
+- cd $(PLATFORM); cp -a $(SOURCE)/* .
+- cd $(PLATFORM); ./autogen.sh
+- cd $(PLATFORM); ./configure --prefix=$(PREFIX) $(EXTRA_CONFIGURE) EXTRA_DEFINES="$(NATIVE_ARCH_DEFINES)"
++# Remove some rules from gmake that .SUFFIXES does not remove.
++SUFFIXES =
+
++.SUFFIXES: .hpux_make_needs_suffix_list
+
+-$(APP): $(PLATFORM)
+- $(MAKE) -C $(PLATFORM)
+
+-.installed-$(PLATFORM): $(APP)
+- $(MAKE) -C $(PLATFORM) install
+- touch $@
+- #TEMP workaround for skins: create legacy link. Remove me when skins are fixed
+- @mkdir -p $(CORE_SOURCE_DIR)/tools/TexturePacker
+- @[ -f $(CORE_SOURCE_DIR)/tools/TexturePacker/TexturePacker ] && rm $(CORE_SOURCE_DIR)/tools/TexturePacker/TexturePacker || :
+- @ln -sf $(APPBIN) $(CORE_SOURCE_DIR)/tools/TexturePacker/TexturePacker
+- @echo "all:" > $(CORE_SOURCE_DIR)/tools/TexturePacker/Makefile
+- @echo "\t@echo "WARNING: use of tools/TexturePacker/TexturePacker is deprecated, please update your skins Makefile"" >> $(CORE_SOURCE_DIR)/tools/TexturePacker/Makefile
++# Suppress display of executed commands.
++$(VERBOSE).SILENT:
++
+
++# A target that is always out of date.
++cmake_force:
++
++.PHONY : cmake_force
++
++#=============================================================================
++# Set environment variables for the build.
++
++# The shell in which to execute make rules.
++SHELL = /bin/sh
++
++# The CMake executable.
++CMAKE_COMMAND = /home/wbx/rpi2/host_x86_64-linux-gnu/usr/bin/cmake
++
++# The command to remove a file.
++RM = /home/wbx/rpi2/host_x86_64-linux-gnu/usr/bin/cmake -E remove -f
++
++# Escaping for special characters.
++EQUALS = =
++
++# The top-level source directory on which CMake was run.
++CMAKE_SOURCE_DIR = /home/wbx/rpi2/build_raspberry-pi2_uclibc-ng_cortex_a7_hard_eabihf/w-kodi-17.6-1/xbmc-17.6-Krypton/tools/depends/native/TexturePacker
++
++# The top-level build directory on which CMake was run.
++CMAKE_BINARY_DIR = /home/wbx/rpi2/build_raspberry-pi2_uclibc-ng_cortex_a7_hard_eabihf/w-kodi-17.6-1/xbmc-17.6-Krypton/tools/depends/native/TexturePacker
++
++#=============================================================================
++# Targets provided globally by CMake.
++
++# Special rule for the target rebuild_cache
++rebuild_cache:
++ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
++ /home/wbx/rpi2/host_x86_64-linux-gnu/usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
++.PHONY : rebuild_cache
++
++# Special rule for the target rebuild_cache
++rebuild_cache/fast: rebuild_cache
++
++.PHONY : rebuild_cache/fast
++
++# Special rule for the target edit_cache
++edit_cache:
++ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..."
++ /home/wbx/rpi2/host_x86_64-linux-gnu/usr/bin/ccmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
++.PHONY : edit_cache
++
++# Special rule for the target edit_cache
++edit_cache/fast: edit_cache
++
++.PHONY : edit_cache/fast
++
++# The main all target
++all: cmake_check_build_system
++ $(CMAKE_COMMAND) -E cmake_progress_start /home/wbx/rpi2/build_raspberry-pi2_uclibc-ng_cortex_a7_hard_eabihf/w-kodi-17.6-1/xbmc-17.6-Krypton/tools/depends/native/TexturePacker/CMakeFiles /home/wbx/rpi2/build_raspberry-pi2_uclibc-ng_cortex_a7_hard_eabihf/w-kodi-17.6-1/xbmc-17.6-Krypton/tools/depends/native/TexturePacker/CMakeFiles/progress.marks
++ $(MAKE) -f CMakeFiles/Makefile2 all
++ $(CMAKE_COMMAND) -E cmake_progress_start /home/wbx/rpi2/build_raspberry-pi2_uclibc-ng_cortex_a7_hard_eabihf/w-kodi-17.6-1/xbmc-17.6-Krypton/tools/depends/native/TexturePacker/CMakeFiles 0
++.PHONY : all
++
++# The main clean target
+ clean:
+- $(MAKE) -C $(PLATFORM) clean
++ $(MAKE) -f CMakeFiles/Makefile2 clean
++.PHONY : clean
++
++# The main clean target
++clean/fast: clean
++
++.PHONY : clean/fast
++
++# Prepare targets for installation.
++preinstall: all
++ $(MAKE) -f CMakeFiles/Makefile2 preinstall
++.PHONY : preinstall
++
++# Prepare targets for installation.
++preinstall/fast:
++ $(MAKE) -f CMakeFiles/Makefile2 preinstall
++.PHONY : preinstall/fast
++
++# clear depends
++depend:
++ $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
++.PHONY : depend
++
++#=============================================================================
++# Target rules for targets named TexturePacker
++
++# Build rule for target.
++TexturePacker: cmake_check_build_system
++ $(MAKE) -f CMakeFiles/Makefile2 TexturePacker
++.PHONY : TexturePacker
++
++# fast build rule for target.
++TexturePacker/fast:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/build
++.PHONY : TexturePacker/fast
++
++# target to build an object file
++home/wbx/rpi2/build_raspberry-pi2_uclibc-ng_cortex_a7_hard_eabihf/w-kodi-17.6-1/xbmc-17.6-Krypton/xbmc/guilib/XBTF.o:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/home/wbx/rpi2/build_raspberry-pi2_uclibc-ng_cortex_a7_hard_eabihf/w-kodi-17.6-1/xbmc-17.6-Krypton/xbmc/guilib/XBTF.o
++.PHONY : home/wbx/rpi2/build_raspberry-pi2_uclibc-ng_cortex_a7_hard_eabihf/w-kodi-17.6-1/xbmc-17.6-Krypton/xbmc/guilib/XBTF.o
++
++# target to preprocess a source file
++home/wbx/rpi2/build_raspberry-pi2_uclibc-ng_cortex_a7_hard_eabihf/w-kodi-17.6-1/xbmc-17.6-Krypton/xbmc/guilib/XBTF.i:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/home/wbx/rpi2/build_raspberry-pi2_uclibc-ng_cortex_a7_hard_eabihf/w-kodi-17.6-1/xbmc-17.6-Krypton/xbmc/guilib/XBTF.i
++.PHONY : home/wbx/rpi2/build_raspberry-pi2_uclibc-ng_cortex_a7_hard_eabihf/w-kodi-17.6-1/xbmc-17.6-Krypton/xbmc/guilib/XBTF.i
++
++# target to generate assembly for a file
++home/wbx/rpi2/build_raspberry-pi2_uclibc-ng_cortex_a7_hard_eabihf/w-kodi-17.6-1/xbmc-17.6-Krypton/xbmc/guilib/XBTF.s:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/home/wbx/rpi2/build_raspberry-pi2_uclibc-ng_cortex_a7_hard_eabihf/w-kodi-17.6-1/xbmc-17.6-Krypton/xbmc/guilib/XBTF.s
++.PHONY : home/wbx/rpi2/build_raspberry-pi2_uclibc-ng_cortex_a7_hard_eabihf/w-kodi-17.6-1/xbmc-17.6-Krypton/xbmc/guilib/XBTF.s
++
++# target to build an object file
++src/DecoderManager.o:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/src/DecoderManager.o
++.PHONY : src/DecoderManager.o
++
++# target to preprocess a source file
++src/DecoderManager.i:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/src/DecoderManager.i
++.PHONY : src/DecoderManager.i
++
++# target to generate assembly for a file
++src/DecoderManager.s:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/src/DecoderManager.s
++.PHONY : src/DecoderManager.s
++
++# target to build an object file
++src/TexturePacker.o:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/src/TexturePacker.o
++.PHONY : src/TexturePacker.o
++
++# target to preprocess a source file
++src/TexturePacker.i:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/src/TexturePacker.i
++.PHONY : src/TexturePacker.i
++
++# target to generate assembly for a file
++src/TexturePacker.s:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/src/TexturePacker.s
++.PHONY : src/TexturePacker.s
++
++# target to build an object file
++src/XBTFWriter.o:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/src/XBTFWriter.o
++.PHONY : src/XBTFWriter.o
++
++# target to preprocess a source file
++src/XBTFWriter.i:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/src/XBTFWriter.i
++.PHONY : src/XBTFWriter.i
++
++# target to generate assembly for a file
++src/XBTFWriter.s:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/src/XBTFWriter.s
++.PHONY : src/XBTFWriter.s
++
++# target to build an object file
++src/decoder/GIFDecoder.o:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/src/decoder/GIFDecoder.o
++.PHONY : src/decoder/GIFDecoder.o
++
++# target to preprocess a source file
++src/decoder/GIFDecoder.i:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/src/decoder/GIFDecoder.i
++.PHONY : src/decoder/GIFDecoder.i
++
++# target to generate assembly for a file
++src/decoder/GIFDecoder.s:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/src/decoder/GIFDecoder.s
++.PHONY : src/decoder/GIFDecoder.s
++
++# target to build an object file
++src/decoder/GifHelper.o:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/src/decoder/GifHelper.o
++.PHONY : src/decoder/GifHelper.o
++
++# target to preprocess a source file
++src/decoder/GifHelper.i:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/src/decoder/GifHelper.i
++.PHONY : src/decoder/GifHelper.i
++
++# target to generate assembly for a file
++src/decoder/GifHelper.s:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/src/decoder/GifHelper.s
++.PHONY : src/decoder/GifHelper.s
++
++# target to build an object file
++src/decoder/JPGDecoder.o:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/src/decoder/JPGDecoder.o
++.PHONY : src/decoder/JPGDecoder.o
++
++# target to preprocess a source file
++src/decoder/JPGDecoder.i:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/src/decoder/JPGDecoder.i
++.PHONY : src/decoder/JPGDecoder.i
++
++# target to generate assembly for a file
++src/decoder/JPGDecoder.s:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/src/decoder/JPGDecoder.s
++.PHONY : src/decoder/JPGDecoder.s
++
++# target to build an object file
++src/decoder/PNGDecoder.o:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/src/decoder/PNGDecoder.o
++.PHONY : src/decoder/PNGDecoder.o
++
++# target to preprocess a source file
++src/decoder/PNGDecoder.i:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/src/decoder/PNGDecoder.i
++.PHONY : src/decoder/PNGDecoder.i
++
++# target to generate assembly for a file
++src/decoder/PNGDecoder.s:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/src/decoder/PNGDecoder.s
++.PHONY : src/decoder/PNGDecoder.s
++
++# target to build an object file
++src/md5.o:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/src/md5.o
++.PHONY : src/md5.o
++
++# target to preprocess a source file
++src/md5.i:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/src/md5.i
++.PHONY : src/md5.i
++
++# target to generate assembly for a file
++src/md5.s:
++ $(MAKE) -f CMakeFiles/TexturePacker.dir/build.make CMakeFiles/TexturePacker.dir/src/md5.s
++.PHONY : src/md5.s
++
++# Help Target
++help:
++ @echo "The following are some of the valid targets for this Makefile:"
++ @echo "... all (the default if no target is provided)"
++ @echo "... clean"
++ @echo "... depend"
++ @echo "... rebuild_cache"
++ @echo "... edit_cache"
++ @echo "... TexturePacker"
++ @echo "... home/wbx/rpi2/build_raspberry-pi2_uclibc-ng_cortex_a7_hard_eabihf/w-kodi-17.6-1/xbmc-17.6-Krypton/xbmc/guilib/XBTF.o"
++ @echo "... home/wbx/rpi2/build_raspberry-pi2_uclibc-ng_cortex_a7_hard_eabihf/w-kodi-17.6-1/xbmc-17.6-Krypton/xbmc/guilib/XBTF.i"
++ @echo "... home/wbx/rpi2/build_raspberry-pi2_uclibc-ng_cortex_a7_hard_eabihf/w-kodi-17.6-1/xbmc-17.6-Krypton/xbmc/guilib/XBTF.s"
++ @echo "... src/DecoderManager.o"
++ @echo "... src/DecoderManager.i"
++ @echo "... src/DecoderManager.s"
++ @echo "... src/TexturePacker.o"
++ @echo "... src/TexturePacker.i"
++ @echo "... src/TexturePacker.s"
++ @echo "... src/XBTFWriter.o"
++ @echo "... src/XBTFWriter.i"
++ @echo "... src/XBTFWriter.s"
++ @echo "... src/decoder/GIFDecoder.o"
++ @echo "... src/decoder/GIFDecoder.i"
++ @echo "... src/decoder/GIFDecoder.s"
++ @echo "... src/decoder/GifHelper.o"
++ @echo "... src/decoder/GifHelper.i"
++ @echo "... src/decoder/GifHelper.s"
++ @echo "... src/decoder/JPGDecoder.o"
++ @echo "... src/decoder/JPGDecoder.i"
++ @echo "... src/decoder/JPGDecoder.s"
++ @echo "... src/decoder/PNGDecoder.o"
++ @echo "... src/decoder/PNGDecoder.i"
++ @echo "... src/decoder/PNGDecoder.s"
++ @echo "... src/md5.o"
++ @echo "... src/md5.i"
++ @echo "... src/md5.s"
++.PHONY : help
++
++
++
++#=============================================================================
++# Special targets to cleanup operation of make.
++
++# Special rule to run CMake to check the build system integrity.
++# No rule that depends on this can have commands that come from listfiles
++# because they might be regenerated.
++cmake_check_build_system:
++ $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
++.PHONY : cmake_check_build_system
+
+-distclean::
+- rm -rf $(PLATFORM) .installed-$(PLATFORM)
+- -rm -rf bin
diff --git a/scripts/toolchain.cmake.in b/scripts/toolchain.cmake.in
index 941fbc534..dc9c1830d 100644
--- a/scripts/toolchain.cmake.in
+++ b/scripts/toolchain.cmake.in
@@ -5,6 +5,7 @@ set(CMAKE_CXX_COMPILER @@TARGET_CXX@@)
set(CMAKE_C_FLAGS "@@TARGET_CFLAGS@@" CACHE STRING "OpenADK CFLAGS" FORCE)
set(CMAKE_CXX_FLAGS "@@TARGET_CXXFLAGS@@" CACHE STRING "OpenADK CXXFLAGS" FORCE)
set(CMAKE_INSTALL_SO_NO_EXE 0)
+list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
set(CMAKE_PROGRAM_PATH "@@STAGING_HOST_DIR@@/usr/bin")
set(CMAKE_SYSROOT "@@STAGING_TARGET_DIR@@")
set(CMAKE_FIND_ROOT_PATH "@@STAGING_TARGET_DIR@@")