Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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.10.2
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= f101a9e88b783337b20b2e26dfd26d5f
  8. PKG_DESCR:= cairo graphics library
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= fontconfig libfreetype libpng libx11 pixman
  11. PKG_BUILDDEP:= libpng pixman freetype fontconfig libX11 libXrender glib
  12. PKG_URL:= http://cairographics.org/
  13. PKG_SITES:= http://cairographics.org/releases/
  14. PKG_SUBPKGS:= CAIRO CAIRO_DEV
  15. PKGSC_CAIRO_DEV:= devel
  16. PKGSD_CAIRO_DEV:= cairo headers
  17. ifeq ($(ADK_STATIC),y)
  18. PKG_OPTS:= libonly
  19. endif
  20. include ${TOPDIR}/mk/package.mk
  21. $(eval $(call PKG_template,CAIRO,cairo,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  22. $(eval $(call PKG_template,CAIRO_DEV,cairo-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_CAIRO_DEV},${PKGSC_CAIRO_DEV},${PKG_OPTS}))
  23. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  24. ifeq ($(TARGET_ARCH),arm)
  25. TARGET_CFLAGS:= $(filter-out -Os,$(TARGET_CFLAGS))
  26. endif
  27. CONFIGURE_ARGS+= --enable-ft=yes \
  28. --enable-tee=yes \
  29. --enable-xlib=yes
  30. cairo-install:
  31. ${INSTALL_DIR} ${IDIR_CAIRO}/usr/lib
  32. ${CP} ${WRKINST}/usr/lib/libcairo.so* ${IDIR_CAIRO}/usr/lib
  33. cairo-dev-install:
  34. ${INSTALL_DIR} ${IDIR_CAIRO_DEV}/usr/include
  35. ${CP} ${WRKINST}/usr/include/* ${IDIR_CAIRO_DEV}/usr/include
  36. ${INSTALL_DIR} ${IDIR_CAIRO_DEV}/usr/lib/pkgconfig
  37. ${CP} ${WRKINST}/usr/lib/pkgconfig/*.pc ${IDIR_CAIRO_DEV}/usr/lib/pkgconfig
  38. include ${TOPDIR}/mk/pkg-bottom.mk