Makefile 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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:= 5
  7. PKG_MD5SUM:= 7ae385ebf8e5cfcb917393235e6efbdb
  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_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+= libssh libcec libnfs samba rtmpdump eudev
  25. PKG_BUILDDEP+= libgpg-error libbluray dbus
  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_DEPENDS_RASPBERRY_PI:= bcm2835-vc omxplayer
  30. PKG_BUILDDEP_RASPBERRY_PI:= bcm2835-vc omxplayer
  31. PKG_BUILDDEP_IBM_X40:= nasm-host
  32. PKG_SYSTEM_DEPENDS:= raspberry-pi ibm-x40
  33. PKG_LIBC_DEPENDS:= glibc
  34. WRKDIST= $(WRKDIR)/$(PKG_NAME)-$(PKG_VERSION)-Frodo
  35. include $(TOPDIR)/mk/package.mk
  36. $(eval $(call PKG_template,XBMC,xbmc,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  37. XAKE_FLAGS+= V=1 TIXML_USE_STL=1
  38. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  39. TARGET_CPPFLAGS+= -I$(STAGING_DIR)/usr/include/boost-1_55 \
  40. -DTIXML_USE_STL=1 -DHAS_SIMPLEPM=1
  41. ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y)
  42. TARGET_CPPFLAGS+= -I$(STAGING_DIR)/opt/vc/include \
  43. -I$(STAGING_DIR)/opt/vc/include/interface/vcos/pthreads \
  44. -I$(STAGING_DIR)/opt/vc/include/interface/vmcs_host/linux
  45. TARGET_LDFLAGS+= -L$(STAGING_DIR)/opt/vc/lib -lkhrn_static
  46. endif
  47. AUTOTOOL_STYLE:= autoreconf
  48. CONFIGURE_ENV+= DESTDIR='${WRKINST}' \
  49. TEXTUREPACKER_NATIVE_ROOT='$(STAGING_HOST_DIR)/usr'
  50. CONFIGURE_ARGS+= --disable-optical-drive \
  51. --disable-mysql \
  52. --disable-avahi \
  53. --enable-mid \
  54. --enable-libmp3lame \
  55. --enable-libvorbisenc \
  56. --enable-samba \
  57. --enable-ssh \
  58. --enable-nfs \
  59. --enable-udev \
  60. --enable-libbluray \
  61. --enable-external-libraries \
  62. --enable-rtmp \
  63. --disable-libusb \
  64. --disable-libcap \
  65. --disable-sdl \
  66. --disable-joystick \
  67. --disable-dvdcss \
  68. --disable-debug
  69. ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y)
  70. CONFIGURE_ARGS+= --with-platform=raspberry-pi \
  71. --enable-player=omxplayer \
  72. --enable-gles \
  73. --disable-x11
  74. else
  75. CONFIGURE_ARGS+= --enable-x11
  76. endif
  77. pre-configure:
  78. (cd $(WRKBUILD)/lib/cpluff && env PATH=$(AUTOTOOL_PATH) ./autogen.sh)
  79. xbmc-install:
  80. $(INSTALL_DIR) $(IDIR_XBMC)/usr/lib/xbmc
  81. $(CP) $(WRKINST)/usr/lib/xbmc/* \
  82. $(IDIR_XBMC)/usr/lib/xbmc
  83. $(INSTALL_DIR) $(IDIR_XBMC)/usr/share/xbmc
  84. $(CP) $(WRKINST)/usr/share/xbmc/* \
  85. $(IDIR_XBMC)/usr/share/xbmc
  86. $(INSTALL_DIR) $(IDIR_XBMC)/usr/bin
  87. $(INSTALL_BIN) $(WRKINST)/usr/bin/xbmc \
  88. $(IDIR_XBMC)/usr/bin
  89. include ${TOPDIR}/mk/pkg-bottom.mk