Makefile 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= xbmc
  5. PKG_VERSION:= 12.2
  6. PKG_RELEASE:= 3
  7. PKG_MD5SUM:= 489f3877decae4e265ece54f9eaef0ba
  8. PKG_DESCR:= software media player
  9. PKG_SECTION:= multimedia
  10. PKG_DEPENDS:= boost libffmpeg python2 libstdcxx
  11. PKG_DEPENDS+= libglew mesalib libass libmpeg2 libmad dbus
  12. PKG_DEPENDS+= libjpeg libogg libvorbis libmodplug libcurl
  13. PKG_DEPENDS+= libflac libopenssl libbz2 libtiff liblzo
  14. PKG_DEPENDS+= yajl tinyxml libsqlite libpcrecpp libpng
  15. PKG_DEPENDS+= libpcre libcdio libfreetype libsamplerate
  16. PKG_DEPENDS+= taglib libjasper libmp3lame libmicrohttpd
  17. PKG_DEPENDS+= omxplayer libusb-compat libbluray libgpg-error
  18. PKG_DEPENDS+= libssh libcec libnfs librtmp
  19. PKG_BUILDDEP:= autotool boost ffmpeg python2 MesaLib libglew libass
  20. PKG_BUILDDEP+= libmpeg2 libmad jpeg libogg libvorbis libmodplug
  21. PKG_BUILDDEP+= curl flac openssl bzip2 libtiff liblzo yajl
  22. PKG_BUILDDEP+= tinyxml sqlite pcre libpng libcdio freetype
  23. PKG_BUILDDEP+= libsamplerate taglib libjasper lame libmicrohttpd
  24. PKG_BUILDDEP+= bcm2835-vc libgpg-error dbus libusb-compat libbluray
  25. PKG_BUILDDEP+= libssh libcec libnfs samba rtmpdump
  26. PKG_BUILDDEP+= swig-host sdl-host sdl-image-host liblzo-host
  27. PKG_URL:= http://xbmc.org/
  28. PKG_SITES:= http://mirrors.xbmc.org/releases/source/
  29. PKG_SYSTEM_DEPENDS:= raspberry-pi
  30. PKG_LIBC_DEPENDS:= eglibc glibc musl
  31. include $(TOPDIR)/mk/package.mk
  32. $(eval $(call PKG_template,XBMC,xbmc,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  33. XAKE_FLAGS+= V=1 TIXML_USE_STL=1
  34. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  35. TARGET_CPPFLAGS+= -I$(STAGING_DIR)/usr/include/boost-1_54 \
  36. -DTIXML_USE_STL=1 \
  37. -I$(STAGING_DIR)/opt/vc/include \
  38. -I$(STAGING_DIR)/opt/vc/include/interface/vcos/pthreads \
  39. -I$(STAGING_DIR)/opt/vc/include/interface/vmcs_host/linux
  40. TARGET_LDFLAGS+= -L$(STAGING_DIR)/opt/vc/lib -lkhrn_static \
  41. -L$(STAGING_DIR)/usr/lib/samba
  42. AUTOTOOL_STYLE:= autoreconf
  43. CONFIGURE_ENV+= DESTDIR='${WRKINST}' \
  44. TEXTUREPACKER_NATIVE_ROOT='$(STAGING_HOST_DIR)/usr'
  45. CONFIGURE_ARGS+= --disable-optical-drive \
  46. --disable-mysql \
  47. --enable-samba \
  48. --enable-ssh \
  49. --enable-nfs \
  50. --enable-libusb \
  51. --enable-libbluray \
  52. --enable-external-libraries \
  53. --enable-player=omxplayer \
  54. --enable-gles \
  55. --enable-rtmp \
  56. --disable-sdl \
  57. --disable-joystick \
  58. --disable-dvdcss \
  59. --disable-x11 \
  60. --with-platform=raspberry-pi
  61. post-extract:
  62. (cd $(WRKDIR) && ${BASH} $(TOPDIR)/scripts/xbmc-fix.sh)
  63. xbmc-install:
  64. $(INSTALL_DIR) $(IDIR_XBMC)/usr/lib/xbmc
  65. $(CP) $(WRKINST)/usr/lib/xbmc/* \
  66. $(IDIR_XBMC)/usr/lib/xbmc
  67. $(INSTALL_DIR) $(IDIR_XBMC)/usr/share/xbmc
  68. $(CP) $(WRKINST)/usr/share/xbmc/* \
  69. $(IDIR_XBMC)/usr/share/xbmc
  70. $(INSTALL_DIR) $(IDIR_XBMC)/usr/bin
  71. $(INSTALL_BIN) $(WRKINST)/usr/bin/xbmc \
  72. $(IDIR_XBMC)/usr/bin
  73. include ${TOPDIR}/mk/pkg-bottom.mk