Makefile 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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:= 13.0rc1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= fabaf9485900647a557d33d0022674c2
  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 libdbus
  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+= libbluray libgpg-error libudev python2-mod-sqlite
  18. PKG_DEPENDS+= libssh libcec libnfs librtmp samba-lib libncurses
  19. PKG_DEPENDS+= libxslt libvorbisenc
  20. PKG_BUILDDEP:= autotool boost ffmpeg python2 MesaLib libglew libass
  21. PKG_BUILDDEP+= libmpeg2 libmad libjpeg-turbo libogg libvorbis libmodplug
  22. PKG_BUILDDEP+= curl flac openssl bzip2 libtiff liblzo yajl
  23. PKG_BUILDDEP+= tinyxml sqlite pcre libpng libcdio freetype
  24. PKG_BUILDDEP+= libsamplerate taglib libjasper lame libmicrohttpd
  25. PKG_BUILDDEP+= libssh libcec libnfs samba rtmpdump eudev
  26. PKG_BUILDDEP+= libgpg-error libbluray dbus libxslt libvorbis
  27. PKG_BUILDDEP+= swig-host sdl-host sdl-image-host liblzo-host
  28. PKG_URL:= http://xbmc.org/
  29. PKG_SITES:= http://mirrors.xbmc.org/releases/source/
  30. PKG_DEPENDS_RASPBERRY_PI:= bcm2835-vc omxplayer
  31. PKG_BUILDDEP_RASPBERRY_PI:= bcm2835-vc omxplayer
  32. PKG_BUILDDEP_IBM_X40:= nasm-host
  33. PKG_SYSTEM_DEPENDS:= raspberry-pi ibm-x40
  34. PKG_LIBC_DEPENDS:= glibc
  35. DIFF_IGNOREFILES:= configure missing depcomp install-sh INSTALL \
  36. aclocal.m4 config.h.in */Makefile.in
  37. include $(TOPDIR)/mk/package.mk
  38. $(eval $(call PKG_template,XBMC,xbmc,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  39. CXXFLAGS_FOR_BUILD+= $(CPPFLAGS_FOR_BUILD)
  40. XAKE_FLAGS+= V=1 TIXML_USE_STL=1
  41. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  42. TARGET_CPPFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/boost-1_55 \
  43. -DTIXML_USE_STL=1 -DHAS_SIMPLEPM=1 -DUSE_EXTERNAL_FFMPEG=1
  44. ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y)
  45. TARGET_CPPFLAGS+= -I$(STAGING_TARGET_DIR)/opt/vc/include \
  46. -I$(STAGING_TARGET_DIR)/opt/vc/include/interface/vcos/pthreads \
  47. -I$(STAGING_TARGET_DIR)/opt/vc/include/interface/vmcs_host/linux
  48. TARGET_LDFLAGS+= -L$(STAGING_TARGET_DIR)/opt/vc/lib -lkhrn_static
  49. endif
  50. AUTOTOOL_STYLE:= autoreconf
  51. CONFIGURE_ENV+= DESTDIR='${WRKINST}' \
  52. TEXTUREPACKER_NATIVE_ROOT='$(STAGING_HOST_DIR)/usr'
  53. CONFIGURE_ARGS+= --disable-optical-drive \
  54. --disable-mysql \
  55. --disable-avahi \
  56. --disable-rsxs \
  57. --enable-alsa \
  58. --enable-mid \
  59. --enable-libmp3lame \
  60. --enable-libvorbisenc \
  61. --enable-samba \
  62. --enable-ssh \
  63. --enable-nfs \
  64. --enable-udev \
  65. --enable-libbluray \
  66. --enable-external-libraries \
  67. --enable-rtmp \
  68. --enable-libcec \
  69. --disable-libusb \
  70. --disable-libcap \
  71. --disable-sdl \
  72. --disable-joystick \
  73. --disable-dvdcss \
  74. --disable-debug
  75. ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y)
  76. CONFIGURE_ARGS+= --with-platform=raspberry-pi \
  77. --enable-player=omxplayer \
  78. --enable-gles \
  79. --disable-x11
  80. else
  81. CONFIGURE_ARGS+= --enable-x11
  82. endif
  83. pre-configure:
  84. (cd $(WRKBUILD)/lib/cpluff && env PATH=$(AUTOTOOL_PATH) ./autogen.sh)
  85. xbmc-install:
  86. $(INSTALL_DIR) $(IDIR_XBMC)/usr/lib/xbmc
  87. $(CP) $(WRKINST)/usr/lib/xbmc/* \
  88. $(IDIR_XBMC)/usr/lib/xbmc
  89. $(INSTALL_DIR) $(IDIR_XBMC)/usr/share/xbmc
  90. $(CP) $(WRKINST)/usr/share/xbmc/* \
  91. $(IDIR_XBMC)/usr/share/xbmc
  92. $(INSTALL_DIR) $(IDIR_XBMC)/usr/bin
  93. $(INSTALL_BIN) $(WRKINST)/usr/bin/xbmc \
  94. $(IDIR_XBMC)/usr/bin
  95. include ${TOPDIR}/mk/pkg-bottom.mk