Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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:= freetype
  5. PKG_VERSION:= 2.4.4
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 9273efacffb683483e58a9e113efae9f
  8. PKG_DESCR:= A free, high-quality and portable font engine
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= zlib
  11. PKG_BUILDDEP:= zlib
  12. PKG_URL:= http://www.freetype.org/
  13. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=freetype/}
  14. PKG_SUBPKGS:= LIBFREETYPE LIBFREETYPE_DEV
  15. PKGSD_LIBFREETYPE_DEV:= FreeType headers
  16. PKGSC_LIBFREETYPE_DEV:= devel
  17. ifeq ($(ADK_STATIC),y)
  18. PKG_OPTS:= libonly
  19. endif
  20. include ${TOPDIR}/mk/package.mk
  21. $(eval $(call PKG_template,LIBFREETYPE,libfreetype,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  22. $(eval $(call PKG_template,LIBFREETYPE_DEV,libfreetype-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBFREETYPE_DEV},${PKGSC_LIBFREETYPE_DEV},${PKG_OPTS}))
  23. libfreetype-install:
  24. ${INSTALL_DIR} ${IDIR_LIBFREETYPE}/usr/lib
  25. ${CP} ${WRKINST}/usr/lib/libfreetype.so* ${IDIR_LIBFREETYPE}/usr/lib
  26. libfreetype-dev-install:
  27. ${INSTALL_DIR} ${IDIR_LIBFREETYPE_DEV}/usr/include
  28. ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBFREETYPE_DEV}/usr/include
  29. ${INSTALL_DIR} ${IDIR_LIBFREETYPE_DEV}/usr/lib/pkgconfig
  30. ${INSTALL_DATA} ${WRKINST}/usr/lib/pkgconfig/freetype2.pc \
  31. ${IDIR_LIBFREETYPE_DEV}/usr/lib/pkgconfig
  32. ${INSTALL_DIR} ${IDIR_LIBFREETYPE_DEV}/usr/bin
  33. ${INSTALL_BIN} ${WRKINST}/usr/bin/freetype-config \
  34. ${IDIR_LIBFREETYPE_DEV}/usr/bin
  35. include ${TOPDIR}/mk/pkg-bottom.mk