diff options
author | kei <kei@pkgsrc.org> | 2002-12-31 05:44:43 +0000 |
---|---|---|
committer | kei <kei@pkgsrc.org> | 2002-12-31 05:44:43 +0000 |
commit | 749209902c078b92d578e67732f22aea5d8a1c6d (patch) | |
tree | 6b2b7d105b98825d0cfb9e7e2f41c77f168fc7e2 | |
parent | 8e14bac1541485ef5425b877943afa18e40c9739 (diff) | |
download | pkgsrc-749209902c078b92d578e67732f22aea5d8a1c6d.tar.gz |
first import of pcf2bdf-1.04, a bitmap font de-compiler to the NetBSD
Packages Collection.
Pcf2bdf is a font de-compiler. It converts X font from
Portable Compiled Format (PCF) to Bitmap Distribution For-
mat (BDF). It can also accept a compressed/gzipped PCF
file as input, but gzip must be found in your PATH.
FONTBOUNDINGBOX in a BDF file is not used by bdftopcf , so
pcf2bdf generate irresponsible values.
-rw-r--r-- | fonts/pcf2bdf/DESCR | 7 | ||||
-rw-r--r-- | fonts/pcf2bdf/Makefile | 21 | ||||
-rw-r--r-- | fonts/pcf2bdf/PLIST | 3 | ||||
-rw-r--r-- | fonts/pcf2bdf/distinfo | 5 | ||||
-rw-r--r-- | fonts/pcf2bdf/patches/patch-aa | 31 |
5 files changed, 67 insertions, 0 deletions
diff --git a/fonts/pcf2bdf/DESCR b/fonts/pcf2bdf/DESCR new file mode 100644 index 00000000000..d102eaa8319 --- /dev/null +++ b/fonts/pcf2bdf/DESCR @@ -0,0 +1,7 @@ + Pcf2bdf is a font de-compiler. It converts X font from + Portable Compiled Format (PCF) to Bitmap Distribution For- + mat (BDF). It can also accept a compressed/gzipped PCF + file as input, but gzip must be found in your PATH. + + FONTBOUNDINGBOX in a BDF file is not used by bdftopcf , so + pcf2bdf generate irresponsible values. diff --git a/fonts/pcf2bdf/Makefile b/fonts/pcf2bdf/Makefile new file mode 100644 index 00000000000..3df1b7c8f7e --- /dev/null +++ b/fonts/pcf2bdf/Makefile @@ -0,0 +1,21 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/12/31 05:44:43 kei Exp $ +# + +DISTNAME= pcf2bdf-1.04 +CATEGORIES= fonts graphics x11 +MASTER_SITES= http://www.tsg.ne.jp/GANA/S/pcf2bdf/ +EXTRACT_SUFX= .tgz + +MAINTAINER= tech-pkg-ja@jp.netbsd.org +HOMEPAGE= http://www.tsg.ne.jp/GANA/S/pcf2bdf/ +COMMENT= convert X font from PCF to BDF + +USE_GMAKE= YES +WRKSRC= ${WRKDIR} +MAKEFILE= Makefile.gcc + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/pcf2bdf ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/pcf2bdf.man ${PREFIX}/man/man1/pcf2bdf.1 + +.include "../../mk/bsd.pkg.mk" diff --git a/fonts/pcf2bdf/PLIST b/fonts/pcf2bdf/PLIST new file mode 100644 index 00000000000..ba1feb95955 --- /dev/null +++ b/fonts/pcf2bdf/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/12/31 05:44:43 kei Exp $ +bin/pcf2bdf +man/man1/pcf2bdf.1 diff --git a/fonts/pcf2bdf/distinfo b/fonts/pcf2bdf/distinfo new file mode 100644 index 00000000000..afbd1edec37 --- /dev/null +++ b/fonts/pcf2bdf/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/12/31 05:44:43 kei Exp $ + +SHA1 (pcf2bdf-1.04.tgz) = 6fdcc10132e27d3c26ff7e4be541332ee5d4e927 +Size (pcf2bdf-1.04.tgz) = 9686 bytes +SHA1 (patch-aa) = d750333e3ac74db0666a40a6902af02d85d02ba0 diff --git a/fonts/pcf2bdf/patches/patch-aa b/fonts/pcf2bdf/patches/patch-aa new file mode 100644 index 00000000000..037f6997bd6 --- /dev/null +++ b/fonts/pcf2bdf/patches/patch-aa @@ -0,0 +1,31 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/12/31 05:44:43 kei Exp $ + +--- pcf2bdf.cc.orig Mon Oct 21 01:35:29 2002 ++++ pcf2bdf.cc Tue Dec 31 14:36:08 2002 +@@ -577,7 +577,7 @@ + } + if (ifilename) + { +- ifp = fopen(ifilename, "rb"); ++ ifp = fopen(ifilename, "r"); + if (!ifp) + return error_exit("failed to open input pcf file"); + } +@@ -595,7 +595,7 @@ + fclose(ifp); + char buf[1024]; + sprintf(buf, "gzip -dc %s", ifilename); // TODO +- ifp = popen(buf, "rb"); ++ ifp = popen(buf, "r"); + _setmode(fileno(ifp), O_BINARY); + read_bytes = 0; + if (!ifp) +@@ -604,7 +604,7 @@ + + if (ofilename) + { +- ofp = fopen(ofilename, "wb"); ++ ofp = fopen(ofilename, "w"); + if (!ofp) + return error_exit("failed to open output bdf file"); + } |