Makefile 1.7 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:= fontconfig
  5. PKG_VERSION:= 2.8.0
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 77e15a92006ddc2adbb06f840d591c0e
  8. PKG_DESCR:= library for configuring and customizing font access
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= libxml2 libiconv
  11. PKG_BUILDDEP:= freetype libxml2 libiconv
  12. PKG_URL:= http://fontconfig.org/
  13. PKG_SITES:= http://fontconfig.org/release/
  14. PKG_SUBPKGS:= FONTCONFIG FONTCONFIG_DEV
  15. PKGSD_FONTCONFIG_DEV:= configuring and customizing font access headers
  16. PKGSC_FONTCONFIG_DEV:= devel
  17. ifeq ($(ADK_STATIC),y)
  18. PKG_OPTS:= libonly
  19. endif
  20. include ${TOPDIR}/mk/package.mk
  21. $(eval $(call PKG_template,FONTCONFIG,fontconfig,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  22. $(eval $(call PKG_template,FONTCONFIG_DEV,fontconfig-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_FONTCONFIG_DEV},${PKGSC_FONTCONFIG_DEV},${PKG_OPTS}))
  23. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  24. TARGET_LDFLAGS+= -liconv
  25. CONFIGURE_ARGS+= --with-arch=${ARCH} \
  26. --disable-docs
  27. fontconfig-install:
  28. ${INSTALL_DIR} ${IDIR_FONTCONFIG}/usr/lib ${IDIR_FONTCONFIG}/etc/fonts
  29. ${CP} ${WRKINST}/usr/lib/libfontconfig.so* ${IDIR_FONTCONFIG}/usr/lib
  30. $(CP) ${WRKINST}/etc/fonts/* ${IDIR_FONTCONFIG}/etc/fonts
  31. fontconfig-dev-install:
  32. ${INSTALL_DIR} ${IDIR_FONTCONFIG_DEV}/usr/lib/pkgconfig
  33. ${CP} ${WRKINST}/usr/lib/pkgconfig/fontconfig.pc \
  34. ${IDIR_FONTCONFIG_DEV}/usr/lib/pkgconfig
  35. ${INSTALL_DIR} ${IDIR_FONTCONFIG_DEV}/usr/include
  36. ${CP} ${WRKINST}/usr/include/* \
  37. ${IDIR_FONTCONFIG_DEV}/usr/include
  38. include ${TOPDIR}/mk/pkg-bottom.mk