summaryrefslogtreecommitdiff
path: root/package/kodi/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/kodi/Makefile')
-rw-r--r--package/kodi/Makefile69
1 files changed, 28 insertions, 41 deletions
diff --git a/package/kodi/Makefile b/package/kodi/Makefile
index 0c42c52a7..4e9a57a4c 100644
--- a/package/kodi/Makefile
+++ b/package/kodi/Makefile
@@ -4,36 +4,34 @@
include $(ADK_TOPDIR)/rules.mk
PKG_NAME:= kodi
-PKG_VERSION:= 17.6
+PKG_VERSION:= 18.0a1
PKG_RELEASE:= 1
-PKG_HASH:= c8312fe92e5bab1cdac1da93d60baed88fa1574146c50c44e3c86d01671c2b1d
+PKG_HASH:= 8892498d5248eea29c30db7c128a5910afc60d1b0b894aea472604bb879a0310
PKG_DESCR:= software media player
PKG_SECTION:= mm/video
-PKG_DEPENDS:= python2 libsquish libressl libxz
-PKG_DEPENDS+= libass libmpeg2 libmad
-PKG_DEPENDS+= libmodplug libcurl
+PKG_DEPENDS:= python2 libsquish libressl libxz libfmt rapidjson
+PKG_DEPENDS+= libass libmpeg2 libmad libmodplug libcurl
PKG_DEPENDS+= libflac libbz2 libtiff libnettle librtmp liblzo
-PKG_DEPENDS+= yajl tinyxml libsqlite libpcrecpp libncurses
+PKG_DEPENDS+= yajl tinyxml libsqlite libpcrecpp libncurses libpng
PKG_DEPENDS+= libpcre libcdio libfreetype libsamplerate libuuid
-PKG_DEPENDS+= taglib libjasper libmp3lame
-PKG_DEPENDS+= libgpg-error python2-mod-sqlite libffmpeg
-PKG_DEPENDS+= glib libdcadec bcm28xx-vc-gl-libs
+PKG_DEPENDS+= taglib libjasper libmp3lame libgpg-error python2-mod-sqlite
+PKG_DEPENDS+= glib libdcadec bcm28xx-vc-gl-libs libffmpeg libxvidcore
PKG_BUILDDEP:= python2 libass ffmpeg rtmpdump bcm28xx-vc
-PKG_BUILDDEP+= libmpeg2 libmad libjpeg-turbo
+PKG_BUILDDEP+= libmpeg2 libmad libjpeg-turbo fmt rapidjson
PKG_BUILDDEP+= curl flac bzip2 libtiff yajl cmake-host
-PKG_BUILDDEP+= tinyxml sqlite pcre libcdio freetype
+PKG_BUILDDEP+= tinyxml sqlite pcre libcdio freetype libpng
PKG_BUILDDEP+= libsamplerate taglib libjasper
-PKG_BUILDDEP+= glib libmodplug libgpg-error
+PKG_BUILDDEP+= glib libmodplug libgpg-error xvidcore
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
-PKG_NEEDS:= threads c++ data
+PKG_NEEDS:= threads c++ data iconv
PKG_URL:= http://kodi.tv/
PKG_SITES:= https://github.com/xbmc/xbmc/archive/
-DISTFILES:= $(PKG_VERSION)-Krypton.tar.gz
-WRKDIST= ${WRKDIR}/xbmc-$(PKG_VERSION)-Krypton
-WRKSRC= $(WRKDIR)/xbmc-$(PKG_VERSION)-Krypton/project/cmake
+DISTFILES:= $(PKG_VERSION)-Leia.tar.gz
+WRKDIST= ${WRKDIR}/xbmc-$(PKG_VERSION)-Leia
+WRKBUILD= $(WRKDIR)/$(PKG_NAME)-obj
PKG_SYSTEM_DEPENDS:= raspberry-pi raspberry-pi2 raspberry-pi3 raspberry-pi3p raspberry-pi3p-64
@@ -61,13 +59,11 @@ PKGFD_WITH_SSH:= enable ssh support
PKGFS_WITH_SSH:= libssh
PKGFB_WITH_SSH:= libssh
-
include $(ADK_TOPDIR)/mk/package.mk
$(eval $(call PKG_template,KODI,kodi,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-HOST_CXXFLAGS:= -DTARGET_POSIX -DTARGET_LINUX -D_LINUX -I$(WRKBUILD)/../../xbmc/linux
-
+HOST_CXXFLAGS:= -DTARGET_POSIX -DTARGET_LINUX -D_LINUX -I$(WRKSRC)/xbmc/linux
CONFIG_STYLE:= cmake
CMAKE_FLAGS+= -DENABLE_CCACHE=OFF \
-DCMAKE_BUILD_TYPE=Release \
@@ -79,7 +75,7 @@ CMAKE_FLAGS+= -DENABLE_CCACHE=OFF \
-DKODI_DEPENDSBUILD=OFF \
-DENABLE_OPENSSL=ON \
-DENABLE_MYSQLCLIENT=OFF \
- -DENABLE_NONFREE=OFF \
+ -DENABLE_NONFREE=ON \
-DENABLE_CAP=OFF \
-DENABLE_XSLT=OFF \
-DENABLE_BLUETOOTH=OFF \
@@ -98,14 +94,13 @@ CMAKE_FLAGS+= -DENABLE_CCACHE=OFF \
-DWITH_TEXTUREPACKER=$(STAGING_HOST_DIR)/usr/bin/TexturePacker
ifeq ($(ADK_TARGET_BOARD_BCM28XX),y)
-CMAKE_FLAGS+= -DCORE_SYSTEM_NAME=rbpi \
+CMAKE_FLAGS+= -DCORE_PLATFORM_NAME=rbpi \
-DWITH_ARCH=arm \
-DWITH_CPU=arm \
+ -DENABLE_NEON=ON \
-DENABLE_OPENGL=OFF \
-DENABLE_X11=OFF \
-DENABLE_OPENGLES=ON
-else
-CMAKE_FLAGS+= -DCORE_SYSTEM_NAME=linux
endif
ifeq ($(ADK_PACKAGE_KODI_WITH_ALSA),y)
@@ -144,27 +139,21 @@ else
CMAKE_FLAGS+= -DENABLE_SSH=OFF
endif
-ifeq ($(ADK_TARGET_LIB_UCLIBC_NG),y)
-TARGET_CXXFLAGS+= -liconv
-endif
+XAKE_FLAGS+= VERBOSE=1
pre-configure:
- (cd $(WRKBUILD)/../../tools/depends/native/JsonSchemaBuilder && PATH='$(HOST_PATH)' cmake .)
- PATH='$(HOST_PATH)' make -C $(WRKBUILD)/../../tools/depends/native/JsonSchemaBuilder
- cp $(WRKBUILD)/../../tools/depends/native/JsonSchemaBuilder/JsonSchemaBuilder \
+ (cd $(WRKSRC)/tools/depends/native/JsonSchemaBuilder && PATH='$(HOST_PATH)' cmake .)
+ PATH='$(HOST_PATH)' make -C $(WRKSRC)/tools/depends/native/JsonSchemaBuilder
+ cp $(WRKSRC)/tools/depends/native/JsonSchemaBuilder/JsonSchemaBuilder \
$(STAGING_HOST_DIR)/usr/bin
- (cd $(WRKBUILD)/../../tools/depends/native/TexturePacker && PATH='$(HOST_PATH)' \
- cmake -DCORE_SOURCE_DIR=$(WRKBUILD)/../.. \
- -DCMAKE_MODULE_PATH=$(WRKBUILD)/../../project/cmake/modules \
- -DCMAKE_CXX_FLAGS="$(HOST_CXXFLAGS)" .)
- PATH='$(HOST_PATH)' make -C $(WRKBUILD)/../../tools/depends/native/TexturePacker
- cp $(WRKBUILD)/../../tools/depends/native/TexturePacker/TexturePacker \
+ (cd $(WRKSRC)/tools/depends/native/TexturePacker && PATH='$(HOST_PATH)' cmake \
+ -DCORE_SOURCE_DIR=$(WRKSRC) \
+ -DCMAKE_MODULE_PATH=$(WRKSRC)/cmake/modules \
+ -DCMAKE_CXX_FLAGS="$(HOST_CXXFLAGS)" .)
+ PATH='$(HOST_PATH)' make -C $(WRKSRC)/tools/depends/native/TexturePacker
+ cp $(WRKSRC)/tools/depends/native/TexturePacker/TexturePacker \
$(STAGING_HOST_DIR)/usr/bin
-pre-build:
- $(TARGET_CC) -shared -fPIC -o $(WRKBUILD)/kodi-shim.so \
- ./files/kodi-shim.c
-
kodi-install:
$(INSTALL_DIR) $(STAGING_TARGET_DIR)/usr/share/kodi
$(CP) $(WRKINST)/usr/share/kodi/* \
@@ -182,7 +171,5 @@ kodi-install:
$(IDIR_KODI)/usr/bin
$(INSTALL_BIN) $(WRKINST)/usr/bin/kodi \
$(IDIR_KODI)/usr/bin
- $(CP) $(WRKBUILD)/kodi-shim.so \
- $(IDIR_KODI)/usr/lib/kodi
include ${ADK_TOPDIR}/mk/pkg-bottom.mk