Makefile 960 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # $OpenBSD: Makefile,v 1.2 2017/05/06 11:14:50 fcambus Exp $
  2. COMMENT = bitmap fonts from SGI
  3. DISTNAME = sgi-fonts
  4. PKGNAME = ${DISTNAME}-1.0
  5. CATEGORIES = fonts
  6. HOMEPAGE = http://oss.sgi.com/projects/sgi_propack/
  7. MAINTAINER = Frederic Cambus <fcambus@openbsd.org>
  8. # MIT
  9. PERMIT_PACKAGE_CDROM = Yes
  10. MASTER_SITES = https://www.distfiles.pl/
  11. NO_TEST = Yes
  12. USE_X11 = Yes
  13. FONTDIR= ${PREFIX}/share/fonts/sgi-fonts
  14. WRKSRC = ${WRKDIST}/sgi
  15. do-build:
  16. cd ${WRKSRC}; \
  17. for file in *.bdf; do \
  18. font=`basename $$file .bdf`; \
  19. ${X11BASE}/bin/bdftopcf -t -o $$font.pcf $$font.bdf; \
  20. done
  21. ${GZIP_CMD} ${WRKSRC}/*.pcf
  22. ${X11BASE}/bin/mkfontdir ${WRKSRC}
  23. rm -f ${WRKSRC}/fonts.alias
  24. egrep '\.pcf\.gz' ${WRKSRC}/fonts.dir | \
  25. sed 's/\.pcf\.gz//g' > ${WRKSRC}/fonts.alias
  26. do-install:
  27. ${INSTALL_DATA_DIR} ${FONTDIR}
  28. ${INSTALL_DATA} ${WRKSRC}/*.pcf.gz ${FONTDIR}
  29. ${INSTALL_DATA} ${WRKSRC}/fonts.alias ${FONTDIR}/fonts.alias-sgi-fonts
  30. .include <bsd.port.mk>