Makefile 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= xbmc-imx6
  5. PKG_VERSION:= 13.2
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 1998e1c767e358e4df8b6a578f54a8d2
  8. PKG_DESCR:= software media player (imx6 flavour)
  9. PKG_SECTION:= mm/video
  10. PKG_DEPENDS:= boost python2 libstdcxx glibc-gconv
  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 libncurses
  15. PKG_DEPENDS+= libpcre libcdio libfreetype libsamplerate
  16. PKG_DEPENDS+= taglib libjasper libmp3lame libmicrohttpd
  17. PKG_DEPENDS+= libgpg-error libudev python2-mod-sqlite ffmpeg
  18. PKG_DEPENDS+= libxslt libvorbisenc alsa-lib glib libglu librt
  19. PKG_BUILDDEP:= boost python2 mesalib libglew libass
  20. PKG_BUILDDEP+= libmpeg2 libmad libjpeg-turbo libogg libvorbis
  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+= eudev alsa-lib glib glu libmodplug
  25. PKG_BUILDDEP+= libgpg-error dbus libxslt libvorbis
  26. PKG_BUILDDEP+= swig-host sdl-host sdl-image-host liblzo-host
  27. PKG_BUILDDEP+= zip-host unzip-host ffmpeg
  28. PKG_DEPENDS+= libfslvpuwrap gpu-viv-bin-mx6q
  29. PKG_BUILDDEP+= libfslvpuwrap gpu-viv-bin-mx6q
  30. PKG_URL:= http://xbmc.org/
  31. PKG_SITES:= http://www.openadk.org/distfiles/
  32. PKG_FLAVOURS_XBMC_IMX6:= WITH_SMB WITH_NFS WITH_SSH WITH_AVAHI WITH_CEC
  33. PKG_FLAVOURS_XBMC_IMX6+= WITH_AFP WITH_WEBSERVER WITH_RTMP WITH_BLURAY
  34. PKGFD_WITH_SMB:= enable samba support
  35. PKGFB_WITH_SMB:= samba
  36. PKGFS_WITH_SMB:= samba-lib
  37. PKGFD_WITH_NFS:= enable nfs support
  38. PKGFB_WITH_NFS:= libnfs
  39. PKGFS_WITH_NFS:= libnfs
  40. PKGFD_WITH_SSH:= enable ssh support
  41. PKGFB_WITH_SSH:= libssh
  42. PKGFS_WITH_SSH:= libssh
  43. PKGFD_WITH_AVAHI:= enable avahi support
  44. PKGFB_WITH_AVAHI:= avahi
  45. PKGFS_WITH_AVAHI:= libavahi
  46. PKGFD_WITH_CEC:= enable cec support
  47. PKGFB_WITH_CEC:= libcec
  48. PKGFS_WITH_CEC:= libcec
  49. PKGFD_WITH_AFP:= enable afp support
  50. PKGFB_WITH_AFP:= afpfs-ng
  51. PKGFS_WITH_AFP:= libafpclient
  52. PKGFD_WITH_RTMP:= enable rtmp support
  53. PKGFB_WITH_RTMP:= rtmpdump
  54. PKGFS_WITH_RTMP:= librtmp
  55. PKGFD_WITH_BLURAY:= enable bluray support
  56. PKGFB_WITH_BLURAY:= libbluray
  57. PKGFS_WITH_BLURAY:= libbluray
  58. PKGFD_WITH_WEBSERVER:= enable internal webserver support
  59. PKG_SYSTEM_DEPENDS:= solidrun-imx6
  60. DIFF_IGNOREFILES:= configure missing depcomp install-sh INSTALL \
  61. aclocal.m4 config.h.in
  62. include $(ADK_TOPDIR)/mk/package.mk
  63. $(eval $(call PKG_template,XBMC_IMX6,xbmc-imx6,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  64. HOST_CXXFLAGS+= $(HOST_CPPFLAGS)
  65. XAKE_FLAGS+= V=1 TIXML_USE_STL=1 GCC_HONOUR_COPTS=s
  66. TARGET_CPPFLAGS+= -I. -I./utils \
  67. -I$(STAGING_TARGET_DIR)/usr/include/afpfs-ng \
  68. -DTIXML_USE_STL=1 -DHAS_SIMPLEPM=1 -DLINUX
  69. AUTOTOOL_STYLE:= autoreconf
  70. CONFIGURE_ENV+= DESTDIR='${WRKINST}' \
  71. TEXTUREPACKER_NATIVE_ROOT='$(STAGING_HOST_DIR)/usr'
  72. CONFIGURE_ARGS+= --disable-optical-drive \
  73. --disable-optimizations \
  74. --disable-mysql \
  75. --disable-rsxs \
  76. --disable-projectm \
  77. --disable-crystalhd \
  78. --disable-mdnsembedded \
  79. --disable-libusb \
  80. --disable-libcap \
  81. --disable-joystick \
  82. --disable-dvdcss \
  83. --disable-debug \
  84. --disable-gtest \
  85. --disable-ccache \
  86. --disable-wayland \
  87. --disable-pulse \
  88. --disable-mid \
  89. --enable-alsa \
  90. --enable-libmp3lame \
  91. --enable-libvorbisenc \
  92. --enable-udev \
  93. --enable-external-libraries
  94. ifneq ($(ADK_PACKAGE_XBMC_IMX6_WITH_BLURAY),)
  95. CONFIGURE_ARGS+= --enable-libbluray
  96. else
  97. CONFIGURE_ARGS+= --disable-libbluray
  98. endif
  99. ifneq ($(ADK_PACKAGE_XBMC_IMX6_WITH_AFP),)
  100. CONFIGURE_ARGS+= --enable-afpclient
  101. else
  102. CONFIGURE_ARGS+= --disable-afpclient
  103. endif
  104. ifneq ($(ADK_PACKAGE_XBMC_IMX6_WITH_SMB),)
  105. CONFIGURE_ARGS+= --enable-samba
  106. else
  107. CONFIGURE_ARGS+= --disable-samba
  108. endif
  109. ifneq ($(ADK_PACKAGE_XBMC_IMX6_WITH_SSH),)
  110. CONFIGURE_ARGS+= --enable-ssh
  111. else
  112. CONFIGURE_ARGS+= --disable-ssh
  113. endif
  114. ifneq ($(ADK_PACKAGE_XBMC_IMX6_WITH_NFS),)
  115. CONFIGURE_ARGS+= --enable-nfs
  116. else
  117. CONFIGURE_ARGS+= --disable-nfs
  118. endif
  119. ifneq ($(ADK_PACKAGE_XBMC_IMX6_WITH_CEC),)
  120. CONFIGURE_ARGS+= --enable-libcec
  121. else
  122. CONFIGURE_ARGS+= --disable-libcec
  123. endif
  124. ifneq ($(ADK_PACKAGE_XBMC_IMX6_WITH_RTMP),)
  125. CONFIGURE_ARGS+= --enable-rtmp
  126. else
  127. CONFIGURE_ARGS+= --disable-rtmp
  128. endif
  129. ifneq ($(ADK_PACKAGE_XBMC_IMX6_WITH_AVAHI),)
  130. CONFIGURE_ARGS+= --enable-avahi
  131. else
  132. CONFIGURE_ARGS+= --disable-avahi
  133. endif
  134. ifneq ($(ADK_PACKAGE_XBMC_IMX6_WITH_WEBSERVER),)
  135. CONFIGURE_ARGS+= --enable-webserver
  136. else
  137. CONFIGURE_ARGS+= --disable-webserver
  138. endif
  139. CONFIGURE_ARGS+= --disable-x11 \
  140. --disable-sdl \
  141. --disable-external-ffmpeg \
  142. --enable-debug \
  143. --enable-gles \
  144. --enable-neon \
  145. --enable-codec=imxvpu
  146. pre-configure:
  147. (cd $(WRKBUILD)/lib/cpluff && env PATH=$(AUTOTOOL_PATH) ./autogen.sh)
  148. xbmc-imx6-install:
  149. $(INSTALL_DIR) $(IDIR_XBMC_IMX6)/usr/lib/xbmc/addons
  150. $(CP) $(WRKINST)/usr/lib/xbmc/* \
  151. $(IDIR_XBMC_IMX6)/usr/lib/xbmc
  152. $(INSTALL_DIR) $(IDIR_XBMC_IMX6)/usr/share/xbmc
  153. $(CP) $(WRKINST)/usr/share/xbmc/* \
  154. $(IDIR_XBMC_IMX6)/usr/share/xbmc
  155. $(INSTALL_DIR) $(IDIR_XBMC_IMX6)/usr/bin
  156. $(INSTALL_BIN) $(WRKINST)/usr/bin/xbmc \
  157. $(IDIR_XBMC_IMX6)/usr/bin
  158. include ${ADK_TOPDIR}/mk/pkg-bottom.mk