Makefile 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  18. include $(TOPDIR)/mk/package.mk
  19. $(eval $(call PKG_template,DIRECTFB,directfb,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  20. CONFIGURE_ARGS+= --with-inputdrivers=linuxinput,keyboard,ps2mouse \
  21. --with-gfxdrivers=none \
  22. --without-tools \
  23. --enable-fbdev \
  24. --disable-sdl \
  25. --disable-osx \
  26. --disable-x11 \
  27. --disable-gif \
  28. --enable-png \
  29. --disable-debug \
  30. --disable-trace \
  31. --enable-text \
  32. --enable-jpeg
  33. # This is to overcome libtool fuckup - when building without,
  34. # libtool calls (the correct) ld directly without parameters,
  35. # which then chooses the wrong default emulation (which is
  36. # probably the real problem here).
  37. ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y)
  38. XAKE_FLAGS+= LDFLAGS=$(ADK_TARGET_ABI_CFLAGS)
  39. endif
  40. directfb-install:
  41. ${INSTALL_DIR} ${IDIR_DIRECTFB}/etc
  42. ${INSTALL_DATA} ./files/directfbrc ${IDIR_DIRECTFB}/etc
  43. $(INSTALL_DIR) $(IDIR_DIRECTFB)/usr/lib/directfb-${PKG_EXTRAVER}/{inputdrivers,systems,wm}
  44. ${CP} $(WRKINST)/usr/lib/lib{direct,fusion}*.so* \
  45. $(IDIR_DIRECTFB)/usr/lib
  46. ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/inputdrivers/*.so \
  47. ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/inputdrivers
  48. ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/systems/*.so \
  49. ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/systems
  50. ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/wm/*.so \
  51. ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/wm
  52. $(INSTALL_DIR) $(IDIR_DIRECTFB)/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFB{Font,ImageProvider,VideoProvider}
  53. ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBFont/*.so \
  54. ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBFont
  55. ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBImageProvider/*.so \
  56. ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBImageProvider
  57. ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBVideoProvider/*.so \
  58. ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBVideoProvider
  59. include ${TOPDIR}/mk/pkg-bottom.mk