Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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
  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. PKG_URL:= http://cairographics.org/
  15. PKG_SITES:= http://cairographics.org/releases/
  16. PKG_OPTS:= dev
  17. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.xz
  18. ifeq ($(ADK_STATIC),y)
  19. PKG_OPTS+= libonly
  20. endif
  21. include ${TOPDIR}/mk/package.mk
  22. $(eval $(call PKG_template,CAIRO,cairo,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  23. ifeq (,$(filter arm,$(TARGET_ARCH)))
  24. TARGET_CFLAGS:= $(filter-out -Os,$(TARGET_CFLAGS))
  25. endif
  26. CONFIGURE_ARGS+= --enable-ft=yes \
  27. --enable-fc=yes \
  28. --enable-tee=yes \
  29. --enable-xlib=yes \
  30. --enable-pdf=yes \
  31. --disable-test-surfaces \
  32. --disable-full-testing
  33. cairo-install:
  34. ${INSTALL_DIR} ${IDIR_CAIRO}/usr/lib/cairo
  35. ${CP} ${WRKINST}/usr/lib/libcairo*.so* ${IDIR_CAIRO}/usr/lib
  36. ${CP} ${WRKINST}/usr/lib/cairo/*.so* ${IDIR_CAIRO}/usr/lib/cairo
  37. include ${TOPDIR}/mk/pkg-bottom.mk