1
0

Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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_LDFLAGS+= -liconv
  24. CONFIGURE_ARGS+= --with-arch=${ARCH} \
  25. --disable-docs
  26. fontconfig-install:
  27. ${INSTALL_DIR} ${IDIR_FONTCONFIG}/usr/lib ${IDIR_FONTCONFIG}/etc/fonts
  28. ${CP} ${WRKINST}/usr/lib/libfontconfig.so* ${IDIR_FONTCONFIG}/usr/lib
  29. $(CP) ${WRKINST}/etc/fonts/* ${IDIR_FONTCONFIG}/etc/fonts
  30. fontconfig-dev-install:
  31. ${INSTALL_DIR} ${IDIR_FONTCONFIG_DEV}/usr/lib/pkgconfig
  32. ${CP} ${WRKINST}/usr/lib/pkgconfig/fontconfig.pc \
  33. ${IDIR_FONTCONFIG_DEV}/usr/lib/pkgconfig
  34. ${INSTALL_DIR} ${IDIR_FONTCONFIG_DEV}/usr/include
  35. ${CP} ${WRKINST}/usr/include/* \
  36. ${IDIR_FONTCONFIG_DEV}/usr/include
  37. include ${TOPDIR}/mk/pkg-bottom.mk