1
0

Makefile 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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:= 4
  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:= eglibc glibc musl
  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. --enable-mid \
  53. --enable-libmp3lame \
  54. --enable-libvorbisenc \
  55. --enable-samba \
  56. --enable-ssh \
  57. --enable-nfs \
  58. --enable-udev \
  59. --enable-libbluray \
  60. --enable-external-libraries \
  61. --enable-rtmp \
  62. --disable-libusb \
  63. --disable-libcap \
  64. --disable-sdl \
  65. --disable-joystick \
  66. --disable-dvdcss \
  67. --disable-debug
  68. ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y)
  69. CONFIGURE_ARGS+= --with-platform=raspberry-pi \
  70. --enable-player=omxplayer \
  71. --enable-gles \
  72. --disable-x11
  73. else
  74. CONFIGURE_ARGS+= --enable-x11
  75. endif
  76. pre-configure:
  77. (cd $(WRKBUILD)/lib/cpluff && env PATH=$(AUTOTOOL_PATH) ./autogen.sh)
  78. xbmc-install:
  79. $(INSTALL_DIR) $(IDIR_XBMC)/usr/lib/xbmc
  80. $(CP) $(WRKINST)/usr/lib/xbmc/* \
  81. $(IDIR_XBMC)/usr/lib/xbmc
  82. $(INSTALL_DIR) $(IDIR_XBMC)/usr/share/xbmc
  83. $(CP) $(WRKINST)/usr/share/xbmc/* \
  84. $(IDIR_XBMC)/usr/share/xbmc
  85. $(INSTALL_DIR) $(IDIR_XBMC)/usr/bin
  86. $(INSTALL_BIN) $(WRKINST)/usr/bin/xbmc \
  87. $(IDIR_XBMC)/usr/bin
  88. include ${TOPDIR}/mk/pkg-bottom.mk