Makefile 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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:= 2
  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 freetype
  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. --without-tools \
  24. --enable-fbdev \
  25. --disable-sdl \
  26. --disable-osx \
  27. --disable-x11 \
  28. --disable-gif \
  29. --enable-png \
  30. --enable-jpeg
  31. # This is to overcome libtool fuckup - when building without,
  32. # libtool calls (the correct) ld directly without parameters,
  33. # which then chooses the wrong default emulation (which is
  34. # probably the real problem here). LDEMULATION overrides ld's
  35. # wrong choice.
  36. ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y)
  37. XAKE_FLAGS+= LDEMULATION=elf64ltsmip
  38. endif
  39. post-install:
  40. ${INSTALL_DIR} ${IDIR_DIRECTFB}/etc
  41. ${INSTALL_DATA} ./files/directfbrc ${IDIR_DIRECTFB}/etc
  42. $(INSTALL_DIR) $(IDIR_DIRECTFB)/usr/lib/directfb-${PKG_EXTRAVER}/{inputdrivers,systems,wm}
  43. ${CP} $(WRKINST)/usr/lib/lib{direct,fusion}*.so* \
  44. $(IDIR_DIRECTFB)/usr/lib
  45. ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/inputdrivers/libdirectfb_linux_input.so \
  46. ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/inputdrivers
  47. ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/systems/*.so \
  48. ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/systems
  49. ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/wm/*.so \
  50. ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/wm
  51. $(INSTALL_DIR) $(IDIR_DIRECTFB)/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFB{Font,ImageProvider,VideoProvider}
  52. ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBFont/*.so \
  53. ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBFont
  54. ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBImageProvider/*.so \
  55. ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBImageProvider
  56. ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBVideoProvider/*.so \
  57. ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBVideoProvider
  58. directfb-dev-install:
  59. ${INSTALL_DIR} ${IDIR_DIRECTFB_DEV}/usr/include
  60. ${CP} ${WRKINST}/usr/include/directfb ${IDIR_DIRECTFB_DEV}/usr/include
  61. ${INSTALL_DIR} ${IDIR_DIRECTFB_DEV}/usr/bin
  62. ${INSTALL_BIN} ${WRKINST}/usr/bin/directfb-config \
  63. ${IDIR_DIRECTFB_DEV}/usr/bin
  64. include ${TOPDIR}/mk/pkg-bottom.mk