Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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.11.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 84278204cd7f36adbea7ad8094e039ac
  8. PKG_DESCR:= library for configuring and customizing font access
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= libxml2
  11. PKG_BUILDDEP:= freetype libxml2 libiconv-tiny
  12. PKG_URL:= http://fontconfig.org/
  13. PKG_SITES:= http://fontconfig.org/release/
  14. PKG_OPTS:= dev
  15. ifeq ($(ADK_STATIC),y)
  16. PKG_OPTS+= libonly
  17. endif
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,FONTCONFIG,fontconfig,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  20. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  21. TARGET_LDFLAGS+= -liconv
  22. CONFIGURE_ARGS+= --with-arch=${ARCH} \
  23. --enable-libxml2 \
  24. --disable-docs
  25. fontconfig-install:
  26. ${INSTALL_DIR} ${IDIR_FONTCONFIG}/usr/lib ${IDIR_FONTCONFIG}/etc/fonts
  27. ${CP} ${WRKINST}/usr/lib/libfontconfig.so* ${IDIR_FONTCONFIG}/usr/lib
  28. $(CP) ${WRKINST}/etc/fonts/* ${IDIR_FONTCONFIG}/etc/fonts
  29. include ${TOPDIR}/mk/pkg-bottom.mk