diff options
author | Tobias Kortkamp <tobik@FreeBSD.org> | 2018-12-02 10:19:13 +0000 |
---|---|---|
committer | Tobias Kortkamp <tobik@FreeBSD.org> | 2018-12-02 10:19:13 +0000 |
commit | 5cebb69cd13b7fd4842bf224d2dab36a594f7aa8 (patch) | |
tree | 8b4a6922fe0083b15fd48ab83d9a2924148571ca /x11-fonts | |
parent | ffac12d15b76b5992df55cbae44741c49497c364 (diff) | |
download | ports-5cebb69cd13b7fd4842bf224d2dab36a594f7aa8.tar.gz ports-5cebb69cd13b7fd4842bf224d2dab36a594f7aa8.zip |
Notes
Diffstat (limited to 'x11-fonts')
-rw-r--r-- | x11-fonts/profont/Makefile | 47 | ||||
-rw-r--r-- | x11-fonts/profont/files/fonts.alias | 7 | ||||
-rw-r--r-- | x11-fonts/profont/pkg-plist | 22 |
3 files changed, 64 insertions, 12 deletions
diff --git a/x11-fonts/profont/Makefile b/x11-fonts/profont/Makefile index 6b2877a7dc46..c46ee8533df6 100644 --- a/x11-fonts/profont/Makefile +++ b/x11-fonts/profont/Makefile @@ -3,25 +3,62 @@ PORTNAME= profont PORTVERSION= 400 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= x11-fonts -MASTER_SITES= http://tobiasjung.name/downloadfile.php?file=profont-x11.zip?dummy/ +MASTER_SITES= LOCAL/tobik \ + http://tobiasjung.name/downloadfile.php?file=profont-x11.zip?dummy/ DISTNAME= ${PORTNAME}-x11 -MAINTAINER= ports@FreeBSD.org +MAINTAINER= tobik@FreeBSD.org COMMENT= Ultimate programming font LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -USES= fonts zip +USES= zip + NO_ARCH= yes +OPTIONS_DEFAULT= VT X11 +OPTIONS_MULTI= TYPE +OPTIONS_MULTI_TYPE= VT X11 +.if !exists(/usr/bin/vtfontcvt) +OPTIONS_EXCLUDE= VT +.endif +OPTIONS_SUB= yes + +TYPE_DESC= Font type +VT_DESC= Install vt(4) fonts +X11_DESC= Install Xorg bitmap fonts + +VT_BUILD_DEPENDS= pcf2bdf:x11-fonts/pcf2bdf + +X11_USES= fonts +X11_USES_OFF= fonts:none + do-build: + @${DO_NADA} + +do-build-VT-on: +.for h in 10 11 12 15 17 22 29 + pcf2bdf -o ${WRKSRC}/ProFont_r400-${h}.bdf \ + ${WRKSRC}/ProFont_r400-${h}.pcf + vtfontcvt -h ${h} -w $$(${AWK} '$$1 == "FONTBOUNDINGBOX" { print $$2 }' ${WRKSRC}/ProFont_r400-${h}.bdf) \ + ${WRKSRC}/ProFont_r400-${h}.bdf \ + ${WRKSRC}/ProFont_r400-${h}.fnt +.endfor + +do-build-X11-on: ${GZIP_CMD} ${WRKSRC}/*.pcf do-install: @${MKDIR} ${STAGEDIR}${FONTSDIR} - ${INSTALL_DATA} ${WRKSRC}/*.pcf.gz ${STAGEDIR}${FONTSDIR} + +do-install-VT-on: + ${INSTALL_DATA} ${WRKSRC}/*.fnt ${STAGEDIR}${FONTSDIR} + +do-install-X11-on: + ${INSTALL_DATA} ${FILESDIR}/fonts.alias ${WRKSRC}/*.pcf.gz \ + ${STAGEDIR}${FONTSDIR} .include <bsd.port.mk> diff --git a/x11-fonts/profont/files/fonts.alias b/x11-fonts/profont/files/fonts.alias new file mode 100644 index 000000000000..c63785267185 --- /dev/null +++ b/x11-fonts/profont/files/fonts.alias @@ -0,0 +1,7 @@ +profont-10 "-nil-ProFont-medium-r-normal--10-100-72-72-c-50-iso8859-1" +profont-11 "-nil-ProFont-medium-r-normal--11-110-72-72-c-60-iso8859-1" +profont-12 "-nil-ProFont-medium-r-normal--12-120-72-72-c-60-iso8859-1" +profont-15 "-nil-ProFont-medium-r-normal--15-150-72-72-c-70-iso8859-1" +profont-17 "-nil-ProFont-medium-r-normal--17-170-72-72-c-140-iso8859-1" +profont-22 "-nil-ProFont-medium-r-normal--22-220-72-72-c-120-iso8859-1" +profont-29 "-nil-ProFont-medium-r-normal--29-290-72-72-c-160-iso8859-1" diff --git a/x11-fonts/profont/pkg-plist b/x11-fonts/profont/pkg-plist index f1db16f7d153..bc1fd5ddb096 100644 --- a/x11-fonts/profont/pkg-plist +++ b/x11-fonts/profont/pkg-plist @@ -1,7 +1,15 @@ -%%FONTSDIR%%/ProFont_r400-10.pcf.gz -%%FONTSDIR%%/ProFont_r400-11.pcf.gz -%%FONTSDIR%%/ProFont_r400-12.pcf.gz -%%FONTSDIR%%/ProFont_r400-15.pcf.gz -%%FONTSDIR%%/ProFont_r400-17.pcf.gz -%%FONTSDIR%%/ProFont_r400-22.pcf.gz -%%FONTSDIR%%/ProFont_r400-29.pcf.gz +%%VT%%%%FONTSDIR%%/ProFont_r400-10.fnt +%%X11%%%%FONTSDIR%%/ProFont_r400-10.pcf.gz +%%VT%%%%FONTSDIR%%/ProFont_r400-11.fnt +%%X11%%%%FONTSDIR%%/ProFont_r400-11.pcf.gz +%%VT%%%%FONTSDIR%%/ProFont_r400-12.fnt +%%X11%%%%FONTSDIR%%/ProFont_r400-12.pcf.gz +%%VT%%%%FONTSDIR%%/ProFont_r400-15.fnt +%%X11%%%%FONTSDIR%%/ProFont_r400-15.pcf.gz +%%VT%%%%FONTSDIR%%/ProFont_r400-17.fnt +%%X11%%%%FONTSDIR%%/ProFont_r400-17.pcf.gz +%%VT%%%%FONTSDIR%%/ProFont_r400-22.fnt +%%X11%%%%FONTSDIR%%/ProFont_r400-22.pcf.gz +%%VT%%%%FONTSDIR%%/ProFont_r400-29.fnt +%%X11%%%%FONTSDIR%%/ProFont_r400-29.pcf.gz +%%X11%%%%FONTSDIR%%/fonts.alias |