Makefile 980 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # $OpenBSD: Makefile,v 1.8 2015/09/25 12:50:08 sthen Exp $
  2. PKG_ARCH= *
  3. COMMENT= extra Korean fonts
  4. V= 2.0
  5. DISTNAME= baekmuk-${V}
  6. PKGNAME= ko-baekmuk-fonts-${V}
  7. REVISION= 5
  8. CATEGORIES= fonts korean x11
  9. MASTER_SITES= http://distcache.freebsd.org/ports-distfiles/ \
  10. ftp://ftp.mizi.com/pub/baekmuk/
  11. HOMEPAGE= http://www.mizi.co.kr
  12. MAINTAINER= Jung Lee <moorang@gmail.com>
  13. PERMIT_PACKAGE_CDROM= Yes
  14. # bdftopcf, mkfontdir
  15. FONTDIR=${PREFIX}/share/fonts/korean
  16. WRKDIST=${WRKDIR}
  17. USE_X11 = Yes
  18. do-build:
  19. cd ${WRKDIR}; \
  20. for file in *.bdf; do \
  21. font=`basename $$file .bdf`; \
  22. ${X11BASE}/bin/bdftopcf -t $$file | gzip > $$font.pcf.gz; \
  23. done
  24. ${X11BASE}/bin/mkfontdir ${WRKDIR}
  25. egrep '\.pcf\.gz' ${WRKSRC}/fonts.dir | \
  26. sed 's/\.pcf\.gz//g' > ${WRKSRC}/fonts.alias
  27. NO_TEST= Yes
  28. do-install:
  29. ${INSTALL_DATA_DIR} ${FONTDIR}
  30. ${INSTALL_DATA} ${WRKDIR}/*.pcf.gz ${FONTDIR}
  31. ${INSTALL_DATA} ${WRKDIR}/fonts.alias ${FONTDIR}/fonts.alias-baekmuk
  32. .include <bsd.port.mk>