Makefile 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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).
  35. ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y)
  36. XAKE_FLAGS+= LDFLAGS=$(ADK_TARGET_ABI_CFLAGS)
  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. ${INSTALL_DIR} ${IDIR_DIRECTFB_DEV}/usr/bin
  61. ${INSTALL_BIN} ${WRKINST}/usr/bin/directfb-config \
  62. ${IDIR_DIRECTFB_DEV}/usr/bin
  63. include ${TOPDIR}/mk/pkg-bottom.mk