Makefile 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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.3
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 223e036da906ceb4bd44708026839ff1
  8. PKG_DESCR:= Thin library on top of the Linux framebuffer devices
  9. PKG_SECTION:= libs
  10. PKG_BUILDDEP:= libpng libX11 libXext
  11. PKG_DEPENDS:= libpng
  12. PKG_URL:= http://www.directfb.org/
  13. PKG_SITES:= http://directfb.org/downloads/Core/DirectFB-1.4/
  14. include $(TOPDIR)/mk/package.mk
  15. $(eval $(call PKG_template,DIRECTFB,directfb,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIGURE_ARGS+= --with-inputdrivers=linuxinput,keyboard,ps2mouse \
  17. --with-gfxdrivers=none \
  18. --disable-osx
  19. # This is to overcome libtool fuckup - when building without,
  20. # libtool calls (the correct) ld directly without parameters,
  21. # which then chooses the wrong default emulation (which is
  22. # probably the real problem here). LDEMULATION overrides ld's
  23. # wrong choice.
  24. ifeq (${ADK_LINUX_MIPS64_LEMOTE},y)
  25. XAKE_FLAGS+= LDEMULATION=elf64ltsmip
  26. endif
  27. post-install:
  28. ${INSTALL_DIR} ${IDIR_DIRECTFB}/etc
  29. ${INSTALL_DATA} ./files/directfbrc ${IDIR_DIRECTFB}/etc/
  30. $(INSTALL_DIR) $(IDIR_DIRECTFB)/usr/lib/directfb-1.4-0/{inputdrivers,systems,wm}
  31. ${CP} $(WRKINST)/usr/lib/lib{direct,fusion}*.so* \
  32. $(IDIR_DIRECTFB)/usr/lib/
  33. ${CP} ${WRKINST}/usr/lib/directfb-1.4-0/inputdrivers/libdirectfb_linux_input.so \
  34. ${IDIR_DIRECTFB}/usr/lib/directfb-1.4-0/inputdrivers/
  35. ${CP} ${WRKINST}/usr/lib/directfb-1.4-0/systems/*.so \
  36. ${IDIR_DIRECTFB}/usr/lib/directfb-1.4-0/systems/
  37. ${CP} ${WRKINST}/usr/lib/directfb-1.4-0/wm/*.so \
  38. ${IDIR_DIRECTFB}/usr/lib/directfb-1.4-0/wm/
  39. $(INSTALL_DIR) $(IDIR_DIRECTFB)/usr/lib/directfb-1.4-0/interfaces/IDirectFB{Font,ImageProvider,VideoProvider}
  40. ${CP} ${WRKINST}/usr/lib/directfb-1.4-0/interfaces/IDirectFBFont/*.so \
  41. ${IDIR_DIRECTFB}/usr/lib/directfb-1.4-0/interfaces/IDirectFBFont/
  42. ${CP} ${WRKINST}/usr/lib/directfb-1.4-0/interfaces/IDirectFBImageProvider/*.so \
  43. ${IDIR_DIRECTFB}/usr/lib/directfb-1.4-0/interfaces/IDirectFBImageProvider/
  44. ${CP} ${WRKINST}/usr/lib/directfb-1.4-0/interfaces/IDirectFBVideoProvider/*.so \
  45. ${IDIR_DIRECTFB}/usr/lib/directfb-1.4-0/interfaces/IDirectFBVideoProvider/
  46. include ${TOPDIR}/mk/pkg-bottom.mk