Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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:= cairo
  5. PKG_VERSION:= 1.12.16
  6. PKG_RELEASE:= 4
  7. PKG_MD5SUM:= a1304edcdc99282f478b995ee5f8f854
  8. PKG_DESCR:= cairo graphics library
  9. PKG_SECTION:= libs/image
  10. PKG_DEPENDS:= fontconfig libfreetype libpng libx11 pixman
  11. PKG_DEPENDS+= libxrender
  12. PKG_BUILDDEP:= libpng pixman freetype fontconfig libX11 libXrender glib
  13. PKG_BUILDDEP+= libXext
  14. HOST_BUILDDEP:= libpng-host pixman-host freetype-host fontconfig-host
  15. PKG_URL:= http://cairographics.org/
  16. PKG_SITES:= http://cairographics.org/releases/
  17. PKG_OPTS:= dev
  18. include ${TOPDIR}/mk/host.mk
  19. include ${TOPDIR}/mk/package.mk
  20. $(eval $(call HOST_template,CAIRO,cairo,${PKG_VERSION}-${PKG_RELEASE}))
  21. $(eval $(call PKG_template,CAIRO,cairo,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  22. HOST_STYLE:= auto
  23. HOST_CONFIGURE_ARGS+= --enable-ft=yes \
  24. --enable-png=yes \
  25. --enable-fc=yes \
  26. --enable-tee=no \
  27. --enable-xlib=no \
  28. --enable-pdf=no \
  29. --enable-quartz=no \
  30. --disable-test-surfaces \
  31. --disable-full-testing
  32. ifeq (,$(filter arm,$(ADK_TARGET_ARCH)))
  33. TARGET_CFLAGS:= $(filter-out -Os,$(TARGET_CFLAGS))
  34. endif
  35. CONFIGURE_ARGS+= --enable-ft=yes \
  36. --enable-fc=yes \
  37. --enable-tee=yes \
  38. --enable-xlib=yes \
  39. --enable-pdf=yes \
  40. --enable-png=yes \
  41. --enable-quartz=no \
  42. --disable-test-surfaces \
  43. --disable-full-testing
  44. cairo-install:
  45. ${INSTALL_DIR} ${IDIR_CAIRO}/usr/lib/cairo
  46. ${CP} ${WRKINST}/usr/lib/libcairo*.so* ${IDIR_CAIRO}/usr/lib
  47. ${CP} ${WRKINST}/usr/lib/cairo/*.so* ${IDIR_CAIRO}/usr/lib/cairo
  48. include ${TOPDIR}/mk/host-bottom.mk
  49. include ${TOPDIR}/mk/pkg-bottom.mk