mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
b5a0459025
Inspired by: knu [ports-jp 12275]
35 lines
745 B
Makefile
35 lines
745 B
Makefile
# $FreeBSD$
|
|
|
|
GZIP_CMD?= gzip
|
|
MKBOLD_CMD?= mkbold
|
|
MKITALIC_CMD?= mkitalic
|
|
|
|
DIST_ALL= 5x10B.bdf 5x10a.bdf 5x10rk.bdf knj10.bdf knj10B.bdf
|
|
|
|
DIST_NOBOLD= 5x10rk.bdf
|
|
MADE_BOLD= ${DIST_NOBOLD:S/.bdf/b.bdf/g}
|
|
|
|
DIST_NOITALIC= ${DIST_ALL} ${MADE_BOLD}
|
|
MADE_ITALIC= ${DIST_NOITALIC:S/.bdf/i.bdf/g}
|
|
|
|
BDF_ALL= ${DIST_ALL} ${MADE_BOLD} ${MADE_ITALIC}
|
|
PCF_ALL= ${BDF_ALL:S/.bdf/.pcf.gz/g}
|
|
|
|
all: ${PCF_ALL}
|
|
|
|
${MADE_BOLD}: ${.TARGET:S/b.bdf/.bdf/}
|
|
${MKBOLD_CMD} $> > $@
|
|
|
|
${MADE_ITALIC}: ${.TARGET:S/i.bdf/.bdf/}
|
|
${MKITALIC_CMD} $> > $@
|
|
|
|
${PCF_ALL}: ${.TARGET:S/.pcf.gz/.bdf/}
|
|
bdftopcf $> | ${GZIP_CMD} -c > $@
|
|
|
|
install:
|
|
mkdir -p ${PREFIX}/${FONTSDIR}
|
|
${BSD_INSTALL_DATA} ${PCF_ALL} ${PREFIX}/${FONTSDIR}
|
|
|
|
clean::
|
|
rm ${MADE_BOLD} ${MADE_ITALIC} ${PCF_ALL}
|