Makefile 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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:= DirectFB
  5. PKG_VERSION:= 1.4.11
  6. PKG_RELEASE:= 1
  7. PKG_EXTRAVER:= 1.4-5
  8. PKG_MD5SUM:= 94735ccec21120794adcce93a61445d2
  9. PKG_DESCR:= Thin graphic library for the Linux framebuffer devices
  10. PKG_SECTION:= libs
  11. PKG_DEPENDS:= libpng libjpeg
  12. PKG_BUILDDEP:= libpng jpeg
  13. PKG_URL:= http://www.directfb.org/
  14. PKG_SITES:= http://directfb.org/downloads/Core/DirectFB-1.4/
  15. PKG_SUBPKGS:= DIRECTFB DIRECTFB_DEV
  16. PKGSD_DIRECTFB_DEV:= development files for DirectFB
  17. PKGSC_DIRECTFB_DEV:= devel
  18. include $(TOPDIR)/mk/package.mk
  19. $(eval $(call PKG_template,DIRECTFB,directfb,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. $(eval $(call PKG_template,DIRECTFB_DEV,directfb-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_DIRECTFB_DEV},${PKGSC_DIRECTFB_DEV}))
  21. CONFIGURE_ARGS+= --with-inputdrivers=linuxinput,keyboard,ps2mouse \
  22. --with-gfxdrivers=none \
  23. --enable-fbdev \
  24. --disable-sdl \
  25. --disable-osx \
  26. --disable-x11 \
  27. --disable-gif \
  28. --enable-png \
  29. --enable-jpeg
  30. # This is to overcome libtool fuckup - when building without,
  31. # libtool calls (the correct) ld directly without parameters,
  32. # which then chooses the wrong default emulation (which is
  33. # probably the real problem here). LDEMULATION overrides ld's
  34. # wrong choice.
  35. ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y)
  36. XAKE_FLAGS+= LDEMULATION=elf64ltsmip
  37. endif
  38. post-install:
  39. ${INSTALL_DIR} ${IDIR_DIRECTFB}/etc
  40. ${INSTALL_DATA} ./files/directfbrc ${IDIR_DIRECTFB}/etc/
  41. $(INSTALL_DIR) $(IDIR_DIRECTFB)/usr/lib/directfb-${PKG_EXTRAVER}/{inputdrivers,systems,wm}
  42. ${CP} $(WRKINST)/usr/lib/lib{direct,fusion}*.so* \
  43. $(IDIR_DIRECTFB)/usr/lib/
  44. ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/inputdrivers/libdirectfb_linux_input.so \
  45. ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/inputdrivers/
  46. ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/systems/*.so \
  47. ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/systems/
  48. ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/wm/*.so \
  49. ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/wm/
  50. $(INSTALL_DIR) $(IDIR_DIRECTFB)/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFB{Font,ImageProvider,VideoProvider}
  51. ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBFont/*.so \
  52. ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBFont/
  53. ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBImageProvider/*.so \
  54. ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBImageProvider/
  55. ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBVideoProvider/*.so \
  56. ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBVideoProvider/
  57. directfb-dev-install:
  58. ${INSTALL_DIR} ${IDIR_DIRECTFB_DEV}/usr/include/
  59. ${CP} ${WRKINST}/usr/include/directfb ${IDIR_DIRECTFB_DEV}/usr/include
  60. include ${TOPDIR}/mk/pkg-bottom.mk