1
0

Makefile 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.6.3
  6. PKG_RELEASE:= 3
  7. PKG_EXTRAVER:= 1.6-0
  8. PKG_MD5SUM:= 641e8e999c017770da647f9b5b890906
  9. PKG_DESCR:= Thin graphic library for the Linux framebuffer devices
  10. PKG_SECTION:= libs
  11. PKG_DEPENDS:= libpng libjpeg-turbo libfreetype
  12. PKG_BUILDDEP:= libpng libjpeg-turbo freetype
  13. PKG_URL:= http://www.directfb.org/
  14. PKG_SITES:= http://directfb.org/downloads/Core/DirectFB-1.6/
  15. PKG_LIBNAME:= directfb
  16. PKG_OPTS:= dev
  17. include $(TOPDIR)/mk/package.mk
  18. $(eval $(call PKG_template,DIRECTFB,directfb,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  19. CONFIGURE_ARGS+= --with-inputdrivers=linuxinput,keyboard,ps2mouse \
  20. --with-gfxdrivers=none \
  21. --without-tools \
  22. --enable-fbdev \
  23. --disable-sdl \
  24. --disable-osx \
  25. --disable-x11 \
  26. --disable-gif \
  27. --enable-png \
  28. --disable-debug \
  29. --disable-trace \
  30. --enable-text \
  31. --enable-jpeg
  32. # This is to overcome libtool fuckup - when building without,
  33. # libtool calls (the correct) ld directly without parameters,
  34. # which then chooses the wrong default emulation (which is
  35. # probably the real problem here).
  36. ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y)
  37. XAKE_FLAGS+= LDFLAGS=$(ADK_TARGET_ABI_CFLAGS)
  38. endif
  39. directfb-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/*.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. include ${TOPDIR}/mk/pkg-bottom.mk