123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- # 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
- PKG_VERSION:= 17.6
- PKG_RELEASE:= 1
- PKG_HASH:= c8312fe92e5bab1cdac1da93d60baed88fa1574146c50c44e3c86d01671c2b1d
- 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+= 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+= glib libdcadec bcm28xx-vc-gl-libs
- PKG_BUILDDEP:= python2 libass ffmpeg rtmpdump bcm28xx-vc
- 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
- 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
- PKG_NEEDS:= threads c++ data
- 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
- PKG_SYSTEM_DEPENDS:= raspberry-pi raspberry-pi2 raspberry-pi3 raspberry-pi3p raspberry-pi3p-64
- PKG_FLAVOURS_KODI:= WITH_ALSA WITH_CEC WITH_PULSEAUDIO WITH_SMB
- PKG_FLAVOURS_KODI+= WITH_MICROHTTPD WITH_SSH WITH_AVAHI
- PKGFD_WITH_ALSA:= enable alsa support
- PKGFS_WITH_ALSA:= alsa-lib
- PKGFB_WITH_ALSA:= alsa-lib
- PKGFD_WITH_AVAHI:= enable avahi support
- PKGFS_WITH_AVAHI:= libavahi
- PKGFB_WITH_AVAHI:= avahi
- PKGFD_WITH_CEC:= enable cec support
- PKGFS_WITH_CEC:= libcec
- PKGFB_WITH_CEC:= libcec
- PKGFD_WITH_MICROHTTPD:= enable microhttpd support
- PKGFS_WITH_MICROHTTPD:= libmicrohttpd
- PKGFB_WITH_MICROHTTPD:= libmicrohttpd
- PKGFD_WITH_PULSEAUDIO:= enable pulseaudio support
- PKGFS_WITH_PULSEAUDIO:= pulseaudio
- PKGFB_WITH_PULSEAUDIO:= pulseaudio
- PKGFD_WITH_SMB:= enable smb support
- PKGFS_WITH_SMB:= samba
- PKGFB_WITH_SMB:= samba
- 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
- CONFIG_STYLE:= cmake
- CMAKE_FLAGS+= -DENABLE_CCACHE=OFF \
- -DCMAKE_BUILD_TYPE=Release \
- -DVERBOSE=ON \
- -DENABLE_DVDCSS=ON \
- -DENABLE_INTERNAL_CROSSGUID=OFF \
- -DENABLE_INTERNAL_FFMPEG=OFF \
- -DWITH_FFMPEG=$(STAGING_TARGET_DIR)/usr \
- -DKODI_DEPENDSBUILD=OFF \
- -DENABLE_OPENSSL=ON \
- -DENABLE_MYSQLCLIENT=OFF \
- -DENABLE_NONFREE=OFF \
- -DENABLE_CAP=OFF \
- -DENABLE_XSLT=OFF \
- -DENABLE_BLUETOOTH=OFF \
- -DENABLE_BLURAY=OFF \
- -DENABLE_AIRTUNES=OFF \
- -DENABLE_LCMS2=OFF \
- -DENABLE_LIRC=OFF \
- -DENABLE_UPNP=OFF \
- -DENABLE_OPTICAL=OFF \
- -DENABLE_DBUS=OFF \
- -DENABLE_EVENTCLIENTS=OFF \
- -DENABLE_UDEV=OFF \
- -DENABLE_PLIST=OFF \
- -DNATIVEPREFIX=$(STAGING_HOST_DIR)/usr \
- -DDEPENDS_PATH=$(STAGING_HOST_DIR) \
- -DWITH_TEXTUREPACKER=$(STAGING_HOST_DIR)/usr/bin/TexturePacker
- ifeq ($(ADK_TARGET_BOARD_BCM28XX),y)
- CMAKE_FLAGS+= -DCORE_SYSTEM_NAME=rbpi \
- -DWITH_ARCH=arm \
- -DWITH_CPU=arm \
- -DENABLE_OPENGL=OFF \
- -DENABLE_X11=OFF \
- -DENABLE_OPENGLES=ON
- else
- CMAKE_FLAGS+= -DCORE_SYSTEM_NAME=linux
- endif
- ifeq ($(ADK_PACKAGE_KODI_WITH_ALSA),y)
- CMAKE_FLAGS+= -DENABLE_ALSA=ON
- else
- CMAKE_FLAGS+= -DENABLE_ALSA=OFF
- endif
- ifeq ($(ADK_PACKAGE_KODI_WITH_AVAHI),y)
- CMAKE_FLAGS+= -DENABLE_AVAHI=ON
- else
- CMAKE_FLAGS+= -DENABLE_AVAHI=OFF
- endif
- ifeq ($(ADK_PACKAGE_KODI_WITH_CEC),y)
- CMAKE_FLAGS+= -DENABLE_CEC=ON
- else
- CMAKE_FLAGS+= -DENABLE_CEC=OFF
- endif
- ifeq ($(ADK_PACKAGE_KODI_WITH_MICROHTTPD),y)
- CMAKE_FLAGS+= -DENABLE_MICROHTTPD=ON
- else
- CMAKE_FLAGS+= -DENABLE_MICROHTTPD=OFF
- endif
- ifeq ($(ADK_PACKAGE_KODI_WITH_PULSEAUDIO),y)
- CMAKE_FLAGS+= -DENABLE_PULSEAUDIO=ON
- else
- CMAKE_FLAGS+= -DENABLE_PULSEAUDIO=OFF
- endif
- ifeq ($(ADK_PACKAGE_KODI_WITH_SMB),y)
- CMAKE_FLAGS+= -DENABLE_SMBCLIENT=ON
- else
- CMAKE_FLAGS+= -DENABLE_SMBCLIENT=OFF
- endif
- ifeq ($(ADK_PACKAGE_KODI_WITH_SSH),y)
- CMAKE_FLAGS+= -DENABLE_SSH=ON
- else
- CMAKE_FLAGS+= -DENABLE_SSH=OFF
- endif
- ifeq ($(ADK_TARGET_LIB_UCLIBC_NG),y)
- TARGET_CXXFLAGS+= -liconv
- endif
- 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 \
- $(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 \
- $(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/* \
- $(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
- $(CP) $(WRKINST)/usr/lib/kodi/* \
- $(IDIR_KODI)/usr/lib/kodi
- $(INSTALL_DIR) $(IDIR_KODI)/usr/share/kodi
- $(CP) $(WRKINST)/usr/share/kodi/* \
- $(IDIR_KODI)/usr/share/kodi
- $(INSTALL_DIR) $(IDIR_KODI)/usr/bin
- $(INSTALL_BIN) $(WRKINST)/usr/bin/kodi-standalone \
- $(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
|