1
0

Makefile 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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.3
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 7ae385ebf8e5cfcb917393235e6efbdb
  8. PKG_DESCR:= software media player
  9. PKG_SECTION:= multimedia
  10. PKG_DEPENDS:= boost libffmpeg python2 libstdcxx bcm2835-vc
  11. PKG_DEPENDS+= libglew mesalib libass libmpeg2 libmad
  12. PKG_DEPENDS+= libjpeg-turbo 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 libbluray libgpg-error libudev
  18. PKG_DEPENDS+= libssh libcec libnfs librtmp samba-lib libncurses
  19. PKG_BUILDDEP:= autotool boost ffmpeg python2 MesaLib libglew libass
  20. PKG_BUILDDEP+= libmpeg2 libmad libjpeg-turbo 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 libbluray
  25. PKG_BUILDDEP+= libssh libcec libnfs samba rtmpdump systemd
  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. WRKDIST= $(WRKDIR)/$(PKG_NAME)-$(PKG_VERSION)-Frodo
  32. include $(TOPDIR)/mk/package.mk
  33. $(eval $(call PKG_template,XBMC,xbmc,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  34. XAKE_FLAGS+= V=1 TIXML_USE_STL=1
  35. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  36. TARGET_CPPFLAGS+= -I$(STAGING_DIR)/usr/include/boost-1_54 \
  37. -DTIXML_USE_STL=1 \
  38. -I$(STAGING_DIR)/opt/vc/include \
  39. -I$(STAGING_DIR)/opt/vc/include/interface/vcos/pthreads \
  40. -I$(STAGING_DIR)/opt/vc/include/interface/vmcs_host/linux
  41. TARGET_LDFLAGS+= -L$(STAGING_DIR)/opt/vc/lib -lkhrn_static \
  42. -L$(STAGING_DIR)/usr/lib/samba
  43. AUTOTOOL_STYLE:= autoreconf
  44. CONFIGURE_ENV+= DESTDIR='${WRKINST}' \
  45. TEXTUREPACKER_NATIVE_ROOT='$(STAGING_HOST_DIR)/usr'
  46. CONFIGURE_ARGS+= --disable-optical-drive \
  47. --disable-mysql \
  48. --enable-samba \
  49. --enable-ssh \
  50. --enable-nfs \
  51. --enable-udev \
  52. --enable-libbluray \
  53. --enable-external-libraries \
  54. --enable-player=omxplayer \
  55. --enable-gles \
  56. --enable-rtmp \
  57. --disable-libusb \
  58. --disable-libcap \
  59. --disable-sdl \
  60. --disable-joystick \
  61. --disable-dvdcss \
  62. --disable-x11 \
  63. --disable-debug \
  64. --with-platform=raspberry-pi
  65. pre-configure:
  66. (cd $(WRKBUILD)/lib/cpluff && ./autogen.sh)
  67. xbmc-install:
  68. $(INSTALL_DIR) $(IDIR_XBMC)/usr/lib/xbmc
  69. $(CP) $(WRKINST)/usr/lib/xbmc/* \
  70. $(IDIR_XBMC)/usr/lib/xbmc
  71. $(INSTALL_DIR) $(IDIR_XBMC)/usr/share/xbmc
  72. $(CP) $(WRKINST)/usr/share/xbmc/* \
  73. $(IDIR_XBMC)/usr/share/xbmc
  74. $(INSTALL_DIR) $(IDIR_XBMC)/usr/bin
  75. $(INSTALL_BIN) $(WRKINST)/usr/bin/xbmc \
  76. $(IDIR_XBMC)/usr/bin
  77. include ${TOPDIR}/mk/pkg-bottom.mk