Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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:= font-util
  5. PKG_VERSION:= 1.1.1
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 171ebfd3733aeae3af91ad57d126d29d
  8. PKG_DESCR:= font util
  9. PKG_SECTION:= x11/apps
  10. PKG_URL:= http://www.x.org/
  11. PKG_SITES:= ${MASTER_SITE_XORG}
  12. PKG_SUBPKGS:= FONT_UTIL FONT_UTIL_DEV
  13. PKGSC_FONT_UTIL_DEV:= devel
  14. PKGSD_FONT_UTIL_DEV:= font util headers
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,FONT_UTIL,font-util,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  17. $(eval $(call PKG_template,FONT_UTIL_DEV,font-util-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_FONT_UTIL_DEV},${PKGSC_FONT_UTIL_DEV},${PKG_OPTS}))
  18. # XXX: Push the mapping files to a place where we can find them
  19. # again when compiling the actual fonts. This is ugly as hell,
  20. # especially as all font packages still need patching to avoid
  21. # calling pkg-config (which we don't provide) in order to
  22. # automatically find the mappings.
  23. fonts-hack:
  24. ${INSTALL_DIR} ${STAGING_DIR}/usr/share/fonts/X11/util
  25. ${CP} ${WRKINST}/usr/share/fonts/X11/util/* \
  26. ${STAGING_DIR}/usr/share/fonts/X11/util
  27. font-util-install: fonts-hack
  28. ${INSTALL_DIR} ${IDIR_FONT_UTIL}/usr/bin
  29. ${INSTALL_BIN} ${WRKINST}/usr/bin/ucs2any \
  30. ${IDIR_FONT_UTIL}/usr/bin
  31. ${INSTALL_BIN} ${WRKINST}/usr/bin/bdftruncate \
  32. ${IDIR_FONT_UTIL}/usr/bin
  33. ${INSTALL_DIR} ${IDIR_FONT_UTIL}/usr/share/fonts/X11/util
  34. ${CP} ${WRKINST}/usr/share/fonts/X11/util/* \
  35. ${IDIR_FONT_UTIL}/usr/share/fonts/X11/util
  36. font-util-dev-install:
  37. ${INSTALL_DIR} ${IDIR_FONT_UTIL_DEV}/usr/lib/pkgconfig
  38. ${INSTALL_DATA} ${WRKINST}/usr/lib/pkgconfig/fontutil.pc \
  39. ${IDIR_FONT_UTIL_DEV}/usr/lib/pkgconfig
  40. include ${TOPDIR}/mk/pkg-bottom.mk